-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
31 lines (26 loc) · 931 Bytes
/
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
module.exports = (function() {
var apiBase = process.env['API_BASE'];
var connect = {
apiKey: process.env['CONNECT_API_KEY'],
apiSecret: process.env['CONNECT_API_SECRET'],
redirectUri: process.env['CONNECT_REDIRECT_URI'],
oauthScope: process.env['CONNECT_OAUTH_SCOPE']
};
var exchangeApiKey = process.env['MC_EXCHANGE_KEY'];
var exchangeApiSecret = process.env['MC_EXCHANGE_SECRET'];
var mobileConnect = {
apiKey: process.env['MC_API_KEY'],
exchangeBasicAuth: new Buffer(exchangeApiKey + ":" + exchangeApiSecret).toString('base64'),
redirectUri: process.env['MC_REDIRECT_URI'],
oauthScope: process.env['MC_OAUTH_SCOPE']
};
var firebase = {
uri: process.env['FIREBASE_URI']
};
return {
apiBase: apiBase,
connect: connect,
mobileConnect: mobileConnect,
firebase: firebase
};
})();