-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (40 loc) · 1.74 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
/*
* Copyright (c) 2016-2019 senti-iot contributors.
* Copyright (c) 2016-2019 Christian Broberg.
*
* See LICENSE for more information
*/
// Import modules
const api = require('./lib/api')
const authenticate = require('./lib/authenticate')
const encrypt = require('./lib/encryption').encrypt
const decrypt = require('./lib/encryption').decrypt
const loadenv = require('./lib/loadenv')
const verifyapiversion = require('./lib/verifyapiversion')
const sentiData = require('./lib/core/sentiData')
const sentiToken = require('./lib/core/sentiToken')
const sentiMail = require('./lib/core/sentiMail')
const sentiSmtpMail = require('./lib/core/sentiSmtpMail')
const secureMqttHandler = require('./lib/mqtt/secureMqttHandler')
const sentiAuthClient = require('./lib/authentication/sentiAuthClient')
const sentiAclClient = require('./lib/acl/aclClient')
const sentiAclBackend = require('./lib/acl/aclBackendPHP')
const sentiAclPriviledge = require('./lib/acl/dataClasses/Privilege')
const sentiAclResourceType = require('./lib/acl/dataClasses/ResourceType')
// Expose senti-apicore modules
module.exports.api = api
module.exports.authenticate = authenticate
module.exports.encrypt = encrypt
module.exports.decrypt = decrypt
module.exports.loadenv = loadenv
module.exports.verifyapiversion = verifyapiversion
module.exports.sentiData = sentiData
module.exports.sentiToken = sentiToken
module.exports.sentiMail = sentiMail
module.exports.sentiSmtpMail = sentiSmtpMail
module.exports.secureMqttHandler = secureMqttHandler
module.exports.sentiAuthClient = sentiAuthClient
module.exports.sentiAclBackend = sentiAclBackend
module.exports.sentiAclClient = sentiAclClient
module.exports.sentiAclPriviledge = sentiAclPriviledge
module.exports.sentiAclResourceType = sentiAclResourceType