-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinmedic.js
More file actions
98 lines (85 loc) · 2.58 KB
/
inmedic.js
File metadata and controls
98 lines (85 loc) · 2.58 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const site = require('../isite')({
port: [80, 40015],
lang: 'Ar',
language: { id: 'Ar', dir: 'rtl', text: 'right' },
version: '2023.03.07.2',
name: 'inmedic',
theme: 'theme_paper',
upload_dir: __dirname + "/../uploads",
download_dir: __dirname + "/../downloads",
backup_dir: __dirname + "/../backups",
require: {
features: [],
permissions: [],
},
https: {
enabled: false,
port: 5050,
},
mongodb: {
db: 'smart_code_medical',
limit: 100000,
identity: {
enabled: !0,
},
},
security: {
users: [{ email: 'admin', password: 'admin' }],
keys: ['e698f2679be5ba5c9c0b0031cb5b057c', '9705a3a85c1b21118532fefcee840f99'],
},
});
site.ready = false;
site.get({ name: '/', path: __dirname + '/site_files' });
site.addFeature('inmedic');
site.addFeature('atm');
site.addFeature('medical');
site.importApp(__dirname + '/apps_innovalz/in-medic', 'inmedic');
site.loadLocalApp('client-side');
site.loadLocalApp('ui-print');
site.importApp(__dirname + '/apps_private/cloud_security', 'security');
site.importApp(__dirname + '/apps_private/ui-help');
site.importApp(__dirname + '/apps_private/notifications');
site.importApps(__dirname + '/apps_accounting');
site.importApps(__dirname + '/apps_inventories');
site.importApps(__dirname + '/apps_reports');
site.importApps(__dirname + '/apps_medical');
site.importApps(__dirname + '/apps_innovalz_store');
site.importApps(__dirname + '/apps_agora');
site.importApps(__dirname + '/apps_hr');
site.importApps(__dirname + '/apps_medic');
site.importApps(__dirname + '/apps_core');
setTimeout(() => {
site.importApp(__dirname + '/apps_private/companies');
// site.importApp(__dirname + '/apps_private/zk-reader');
}, 1000);
setTimeout(() => {
site.ready = true;
}, 1000 * 2);
// site.onWS('/notification', (client) => {
// client.onMessage = function (message) {
// if (message.type === 'info') {
// client.info = message.content
// }
// }
// })
// setInterval(() => {
// site.ws.clientList.forEach(client => {
// if (client.path === '/notification') {
// if (client.info && client.info.type === 'doctor') {
// client.send({ type: 'you are a doctor' })
// } else {
// client.send({ type: 'you are Not a doctor' })
// }
// }
// });
// }, 1000 * 5);
// site.sendEmail({
// from : 'amr@egytag.com',
// to : 'a.yousry2122@gmail.com',
// subject : 'test mail server 1',
// message : 'test message 1'
// })
site.run();
// add sa sasa keys
site.security.addKey('c12e01f2a13ff5587e1e9e4aedb8242d');
site.security.addKey('f45731e3d39a1b2330bbf93e9b3de59e');