@tiledesk/tiledesk-server 2.10.91 → 2.10.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/models/kbConstants.js +12 -0
- package/models/kb_setting.js +1 -0
- package/package.json +2 -2
- package/routes/admin.js +1 -2
- package/routes/kb.js +242 -3
- package/services/Scheduler.js +7 -6
- package/test/faqRoute.js +3 -3
- package/test/faqkbRoute.js +6 -6
- package/test/fileRoute.js +2 -2
- package/test/fixtures/exported_namespace.json +62 -0
- package/test/imageRoute.js +11 -11
- package/test/kbRoute.js +601 -562
- package/test/quoteManager.js +1 -1
- package/test/webhookRoute.js +1 -1
- /package/test/{TooManykbUrlsList.txt → fixtures/TooManykbUrlsList.txt} +0 -0
- /package/test/{example-faqs.csv → fixtures/example-faqs.csv} +0 -0
- /package/test/{example-json-intents.txt → fixtures/example-json-intents.txt} +0 -0
- /package/test/{example-json-multiple-operation-mock.js → fixtures/example-json-multiple-operation-mock.js} +0 -0
- /package/test/{example-json-rules.txt → fixtures/example-json-rules.txt} +0 -0
- /package/test/{example-json.txt → fixtures/example-json.txt} +0 -0
- /package/test/{example-kb-faqs.csv → fixtures/example-kb-faqs.csv} +0 -0
- /package/test/{example-webhook-json.txt → fixtures/example-webhook-json.txt} +0 -0
- /package/test/{example.json → fixtures/example.json} +0 -0
- /package/test/{kbUrlsList.txt → fixtures/kbUrlsList.txt} +0 -0
- /package/test/{sample.pdf → fixtures/sample.pdf} +0 -0
- /package/test/{test-image.png → fixtures/test-image.png} +0 -0
- /package/test/{chatbot-mock.js → mock/chatbotMock.js} +0 -0
- /package/test/mock/{MockTdCache.js → tdCacheMock.js} +0 -0
package/test/quoteManager.js
CHANGED
@@ -22,7 +22,7 @@ const projectMock = require('./mock/projectMock');
|
|
22
22
|
const requestMock = require('./mock/requestMock');
|
23
23
|
const messageMock = require('./mock/messageMock');
|
24
24
|
const emailMock = require('./mock/emailMock');
|
25
|
-
const { MockTdCache } = require('./mock/
|
25
|
+
const { MockTdCache } = require('./mock/tdCacheMock');
|
26
26
|
const mockTdCache = new MockTdCache();
|
27
27
|
|
28
28
|
let log = false;
|
package/test/webhookRoute.js
CHANGED
@@ -4,7 +4,7 @@ process.env.LOG_LEVEL = 'error';
|
|
4
4
|
|
5
5
|
var projectService = require('../services/projectService');
|
6
6
|
var userService = require('../services/userService');
|
7
|
-
let chatbot_mock = require('./
|
7
|
+
let chatbot_mock = require('./mock/chatbotMock');
|
8
8
|
let log = false;
|
9
9
|
|
10
10
|
//Require the dev-dependencies
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|