@tiledesk/tiledesk-server 2.9.21 → 2.9.23

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.9.23
9
+ - Updated whatsapp-connector to 0.1.73
10
+
11
+ # 2.9.22
12
+ - Added support for chatbots_attribute_hidden parameter in project update
13
+ - Exclude from count voice conversation
14
+ - Updated: vxml-connector to 0.1.43
15
+
8
16
  # 2.9.21
9
17
  - Updated: tybot-connector to 0.2.96
10
18
 
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.21",
4
+ "version": "2.9.23",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -49,10 +49,10 @@
49
49
  "@tiledesk/tiledesk-telegram-connector": "^0.1.14",
50
50
  "@tiledesk/tiledesk-train-jobworker": "^0.0.11",
51
51
  "@tiledesk/tiledesk-tybot-connector": "^0.2.96",
52
- "@tiledesk/tiledesk-whatsapp-connector": "^0.1.72",
52
+ "@tiledesk/tiledesk-whatsapp-connector": "^0.1.73",
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.39",
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