-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobals.js
35 lines (34 loc) · 892 Bytes
/
globals.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
var devices = [];
var profiles = [];
var activities = [];
var config = {};
let modules = {};
let scheduledFunctions = [];
let DeviceModules = [];
let PluginModules = [];
exports.devices = devices;
exports.getDevices = function() {
return devices;
}
exports.setDevices = function(newDevices) {
devices = newDevices;
}
exports.profiles = profiles;
exports.getProfiles = function() {
return profiles;
}
exports.setProfiles = function(newProfiles) {
profiles = newProfiles;
}
exports.activities = activities;
exports.config = config;
exports.getConfig = function() {
return config;
}
exports.setConfig = function(newConfig) {
config = newConfig;
}
exports.modules = modules;
exports.scheduledFunctions = scheduledFunctions;
exports.DeviceModules = DeviceModules;
exports.PluginModules = PluginModules;