-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
37 lines (32 loc) · 960 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const path = require("path");
const API_PROTOCOL = process.env.API_PROTOCOL || 'http' ;
const API_HOST = process.env.API_HOST || 'localhost' ;
const API_PORT = process.env.API_PORT || '8080' ;
/** Folders */
const CONFIG_FOLDER = () => 'configs';
const TMP_AKN_FOLDER = () => path.join(".", "tmp");
const API_SERVER_BASE = () =>
API_PROTOCOL + '://' + API_HOST + ":" + API_PORT + '/exist/restxq';
const PROCESS_NAME = "GAWATI-PORTAL-QPROCESSOR";
// see http://schema.akomantoso.com/index.html?type=element&item=akomaNtoso
const AKN_DOC_TYPES = [
"amendmentList",
"officialGazette",
"documentCollection",
"act",
"bill",
"debateReport",
"debate",
"statement",
"amendment",
"judgment",
"portion",
"doc"
];
module.exports = {
CONFIG_FOLDER: CONFIG_FOLDER,
TMP_AKN_FOLDER: TMP_AKN_FOLDER,
API_SERVER_BASE: API_SERVER_BASE,
AKN_DOC_TYPES: AKN_DOC_TYPES,
PROCESS_NAME: PROCESS_NAME
};