@tiledesk/tiledesk-server 2.10.14 → 2.10.16
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 +9 -0
- package/app.js +2 -1
- package/models/request.js +8 -0
- package/package.json +4 -3
- package/pubmodules/activities/test/activityRoute.js +6 -2
- package/pubmodules/events/test/eventRoute.js +7 -3
- package/pubmodules/pubModulesManager.js +24 -0
- package/pubmodules/voice-twilio/index.js +6 -0
- package/pubmodules/voice-twilio/listener.js +59 -0
- package/routes/campaigns.js +1 -1
- package/routes/files.js +6 -4
- package/routes/images.js +0 -2
- package/routes/kb.js +7 -1
- package/routes/request.js +10 -0
- package/routes/users.js +2 -2
- package/services/fileGridFsService.js +12 -10
- package/services/requestService.js +2 -1
- package/test/app-test.js +36 -1
- package/test/authentication.js +662 -796
- package/test/authenticationJwt.js +213 -315
- package/test/authorization.js +53 -72
- package/test/campaignsRoute.js +42 -47
- package/test/cannedRoute.js +30 -16
- package/test/departmentService.js +222 -274
- package/test/example.json +31 -1
- package/test/faqRoute.js +713 -622
- package/test/faqService.js +124 -159
- package/test/faqkbRoute.js +128 -100
- package/test/fileRoute.js +50 -46
- package/test/imageRoute.js +263 -254
- package/test/jwtRoute.js +128 -153
- package/test/kbRoute.js +40 -17
- package/test/kbsettingsRoute.js +78 -54
- package/test/keysRoute.js +6 -7
- package/test/labelRoute.js +591 -696
- package/test/labelService.js +40 -47
- package/test/leadService.js +100 -115
- package/test/logsRoute.js +13 -7
- package/test/messageRootRoute.js +112 -102
- package/test/messageRoute.js +1171 -1419
- package/test/messageService.js +41 -43
- package/test/openaiRoute.js +5 -1
- package/test/projectRoute.js +23 -4
- package/test/projectService.js +3 -1
- package/test/quoteManager.js +36 -13
- package/test/requestRoute.js +103 -72
- package/test/requestService.js +51 -51
- package/test/userRoute.js +37 -8
- package/test/userService.js +34 -31
- package/utils/promiseUtil.js +1 -1
package/test/example.json
CHANGED
@@ -1 +1,31 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"webhook_enabled": false,
|
3
|
+
"language": "en",
|
4
|
+
"name": "examplebot",
|
5
|
+
"intents": [
|
6
|
+
{
|
7
|
+
"webhook_enabled": false,
|
8
|
+
"enabled": true,
|
9
|
+
"question": "\\start",
|
10
|
+
"answer": "Hi",
|
11
|
+
"intent_display_name": "start",
|
12
|
+
"language": "en"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"webhook_enabled": false,
|
16
|
+
"enabled": true,
|
17
|
+
"question": "question1",
|
18
|
+
"answer": "question1",
|
19
|
+
"intent_display_name": "question1",
|
20
|
+
"language": "en"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"webhook_enabled": false,
|
24
|
+
"enabled": true,
|
25
|
+
"question": "defaultFallback",
|
26
|
+
"answer": "I can not provide an adequate answer. Write a new question or talk to a human agent.\n* Back to start tdAction:start\n* See the docs https://docs.tiledesk.com/\n* 👨🏻🦰 I want an agent",
|
27
|
+
"intent_display_name": "defaultFallback",
|
28
|
+
"language": "en"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|