1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const fs = require("fs");
|
4 | const configFilePath = `bot-tester.json`;
|
5 | const configFileExists = fs.existsSync(configFilePath);
|
6 |
|
7 |
|
8 |
|
9 | exports.NO_TIMEOUT = -1;
|
10 | let configInternal = {
|
11 | timeout: exports.NO_TIMEOUT,
|
12 | defaultAddress: {
|
13 | channelId: 'console',
|
14 | user: { id: 'user1', name: 'user1' },
|
15 | bot: { id: 'bot', name: 'Bot' },
|
16 | conversation: { id: 'user1Conversation' }
|
17 | }
|
18 | };
|
19 | if (configFileExists) {
|
20 | configInternal = JSON.parse(fs.readFileSync(configFilePath, { encoding: 'utf8' }));
|
21 | }
|
22 | exports.config = configInternal;
|
23 |
|
\ | No newline at end of file |