-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy pathconfig.js
54 lines (48 loc) · 1.3 KB
/
config.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
/*eslint strict:off */
(function() {
'use strict';
var CREDS = {
appId: 72448,
authKey: 'f4HYBYdeqTZ7KNb',
authSecret: 'ZC7dK39bOjVc-Z8',
accountKey: 'C4_z7nuaANnBYmsG_k98',
sessionToken: '000'
};
var QBUser1 = {
'id': 55754625,
'login': "webrtctest1",
'password': "x6Bt0VDy5",
'email': "webrtctest1@test.com"
};
var QBUser2 = {
'id': 55754637,
'login': "webrtctest2",
'password': "x6Bt0VDy5",
'email': "webrtctest2@test.com"
};
var CONFIG = {
endpoints: {
api: "api.quickblox.com",
chat: "chat.quickblox.com"
},
chatProtocol: {
active: 2 // set 1 to use BOSH, set 2 to use WebSockets (default)
},
pingTimeout: 3,
debug: {
'mode': 1,
'file': null
}
};
/**
* Check Node env.
* If we use Node env. export variables
* or window as global variable for browser env.
*/
var isNodeEnv = typeof window == 'undefined' && typeof exports == 'object',
customExport = isNodeEnv ? exports : window;
customExport.CREDS = CREDS;
customExport.QBUser1 = QBUser1;
customExport.QBUser2 = QBUser2;
customExport.CONFIG = CONFIG;
}());