@tiledesk/tiledesk-server 2.9.21 → 2.9.22
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -0
- package/package.json +2 -2
- package/routes/project.js +4 -0
- package/services/requestService.js +6 -1
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.9.22
|
9
|
+
- Added support for chatbots_attribute_hidden parameter in project update
|
10
|
+
- Exclude from count voice conversation
|
11
|
+
- Updated: vxml-connector to 0.1.43
|
12
|
+
|
8
13
|
# 2.9.21
|
9
14
|
- Updated: tybot-connector to 0.2.96
|
10
15
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tiledesk/tiledesk-server",
|
3
3
|
"description": "The Tiledesk server module",
|
4
|
-
"version": "2.9.
|
4
|
+
"version": "2.9.22",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.72",
|
53
53
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.8",
|
54
54
|
"@tiledesk/tiledesk-sms-connector": "^0.1.10",
|
55
|
-
"@tiledesk/tiledesk-vxml-connector": "^0.1.
|
55
|
+
"@tiledesk/tiledesk-vxml-connector": "^0.1.43",
|
56
56
|
"amqplib": "^0.5.5",
|
57
57
|
"app-root-path": "^3.0.0",
|
58
58
|
"bcrypt-nodejs": "0.0.3",
|
package/routes/project.js
CHANGED
@@ -430,6 +430,10 @@ router.put('/:projectid', [passport.authenticate(['basic', 'jwt'], { session: fa
|
|
430
430
|
if (req.body["settings.current_agent_my_chats_only"]!=undefined) {
|
431
431
|
update["settings.current_agent_my_chats_only"] = req.body["settings.current_agent_my_chats_only"];
|
432
432
|
}
|
433
|
+
|
434
|
+
if (req.body["settings.chatbots_attributes_hidden"]!=undefined) {
|
435
|
+
update["settings.chatbots_attributes_hidden"] = req.body["settings.chatbots_attributes_hidden"];
|
436
|
+
}
|
433
437
|
|
434
438
|
if (req.body.widget!=undefined) {
|
435
439
|
update.widget = req.body.widget;
|
@@ -526,6 +526,7 @@ class RequestService {
|
|
526
526
|
}
|
527
527
|
|
528
528
|
let isTestConversation = false;
|
529
|
+
let isVoiceConversation = false;
|
529
530
|
|
530
531
|
var that = this;
|
531
532
|
|
@@ -554,6 +555,10 @@ class RequestService {
|
|
554
555
|
winston.verbose("is a test conversation --> skip quote availability check")
|
555
556
|
isTestConversation = true;
|
556
557
|
}
|
558
|
+
else if (channel && (channel.name === 'voice-vxml')) {
|
559
|
+
winston.verbose("is a voice conversation --> skip quote availability check")
|
560
|
+
isVoiceConversation = true;
|
561
|
+
}
|
557
562
|
else {
|
558
563
|
let available = await qm.checkQuote(p, request, 'requests');
|
559
564
|
if (available === false) {
|
@@ -730,7 +735,7 @@ class RequestService {
|
|
730
735
|
|
731
736
|
requestEvent.emit('request.create.simple', savedRequest);
|
732
737
|
|
733
|
-
if (!isTestConversation) {
|
738
|
+
if (!isTestConversation && !isVoiceConversation) {
|
734
739
|
requestEvent.emit('request.create.quote', payload);;
|
735
740
|
}
|
736
741
|
|