-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
66 lines (63 loc) · 2.29 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const openDSU = require("opendsu");
const resolver = openDSU.loadApi("resolver");
const GtinDSUFactory = require("./lib/GTIN_DSU_Factory");
resolver.registerDSUFactory("gtin", new GtinDSUFactory(resolver));
const {createGTIN_SSI, parseGTIN_SSI} = require("./lib/GTIN_SSI");
const DSUFabricFeatureManager = require("./lib/DSUFabricFeatureManager");
const LeafletFeatureManager = require("./lib/LeafletFeatureManager");
const LeafletInfoService = require("./lib/services/LeafletInfoService");
const DSUFabricUtils = require("./lib/utils/DSUFabricUtils");
const Languages = require("./lib/utils/Languages");
const UploadTypes = require("./lib/utils/UploadTypes");
const XMLDisplayService = require("./lib/services/XMLDisplayService/XMLDisplayService");
const utils = require("./lib/utils/CommonUtils");
const logUtils = require("./lib/utils/LogUtils");
const validationUtils = require("./lib/utils/ValidationUtils");
const versionTransformer = require("./lib/EpiVersionTransformer")
const constants = require("./lib/constants/constants");
module.exports = {
createGTIN_SSI,
parseGTIN_SSI,
DSUFabricFeatureManager,
LeafletFeatureManager,
LeafletInfoService,
DSUFabricUtils,
UploadTypes,
Languages,
utils,
logUtils,
validationUtils,
versionTransformer,
constants,
XMLDisplayService,
loadApi: function (apiName) {
switch (apiName) {
case "mappings":
return require("./lib/mappings");
case "services":
return require("./lib/services");
}
},
getEPIMappingEngineForAPIHUB: function (server) {
return require("./lib/apihubMappingEngine").getEPIMappingEngineForAPIHUB(server);
},
getEPIMappingEngineMessageResults: function (server) {
return require("./lib/apihubMappingEngineMessageResults").getEPIMappingEngineMessageResults(server);
},
getWebLeaflet: function (server) {
return require("./lib/leaflet-web-api").getWebLeaflet(server);
},
getGTINOwner: function (server){
return require("./lib/gtinOwner").getGTINOwner(server);
},
getMessagesPipe: function () {
const opendsu = require("opendsu");
return opendsu.loadApi("m2dsu").getMessagesPipe();
},
getErrorsMap: function () {
return require("opendsu").loadApi("m2dsu").getErrorsMap();
},
getMappingsUtils: function () {
return require("./lib/utils/CommonUtils");
}
}