2017-12-14 20:12:14 +02:00
|
|
|
const Setting = require('lib/models/Setting.js');
|
2017-07-08 00:25:03 +02:00
|
|
|
|
|
|
|
const parameters_ = {};
|
|
|
|
|
|
|
|
parameters_.dev = {
|
|
|
|
oneDrive: {
|
|
|
|
id: 'cbabb902-d276-4ea4-aa88-062a5889d6dc',
|
|
|
|
secret: 'YSvrgQMqw9NzVqgiLfuEky1',
|
|
|
|
},
|
2017-10-30 23:29:36 +02:00
|
|
|
oneDriveDemo: {
|
|
|
|
id: '606fd4d7-4dfb-4310-b8b7-a47d96aa22b6',
|
|
|
|
secret: 'qabchuPYL7931$ePDEQ3~_$',
|
|
|
|
},
|
2018-03-26 19:33:55 +02:00
|
|
|
dropbox: {
|
|
|
|
id: 'cx9li9ur8taq1z7',
|
|
|
|
secret: 'i8f9a1mvx3bijrt',
|
|
|
|
},
|
2017-07-08 00:25:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
parameters_.prod = {
|
|
|
|
oneDrive: {
|
|
|
|
id: 'e09fc0de-c958-424f-83a2-e56a721d331b',
|
|
|
|
secret: 'JA3cwsqSGHFtjMwd5XoF5L5',
|
|
|
|
},
|
2017-10-30 23:29:36 +02:00
|
|
|
oneDriveDemo: {
|
|
|
|
id: '606fd4d7-4dfb-4310-b8b7-a47d96aa22b6',
|
|
|
|
secret: 'qabchuPYL7931$ePDEQ3~_$',
|
|
|
|
},
|
2018-03-26 19:33:55 +02:00
|
|
|
dropbox: {
|
|
|
|
id: 'm044w3cvmxhzvop',
|
|
|
|
secret: 'r298deqisz0od56',
|
|
|
|
},
|
2017-07-08 00:25:03 +02:00
|
|
|
};
|
|
|
|
|
2017-11-24 21:47:24 +02:00
|
|
|
function parameters(env = null) {
|
|
|
|
if (env === null) env = Setting.value('env');
|
2020-03-14 01:46:14 +02:00
|
|
|
const output = parameters_[env];
|
2017-10-30 23:29:36 +02:00
|
|
|
if (Setting.value('isDemo')) {
|
|
|
|
output.oneDrive = output.oneDriveDemo;
|
|
|
|
}
|
|
|
|
return output;
|
2017-07-08 00:25:03 +02:00
|
|
|
}
|
|
|
|
|
2019-07-29 15:43:53 +02:00
|
|
|
module.exports = { parameters };
|