@tiledesk/tiledesk-server 2.5.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/channels/chat21/chat21Handler.js +23 -2
- package/channels/chat21/package-lock.json +3666 -19
- package/channels/chat21/package.json +2 -2
- package/deploy.sh +1 -1
- package/middleware/passport.js +3 -3
- package/models/kb_setting.js +6 -11
- package/package.json +4 -4
- package/pubmodules/queue/reconnect.js +35 -1
- package/pubmodules/routing-queue/listenerQueued.js +6 -2
- package/routes/kb.js +97 -10
- package/routes/request.js +19 -1
- package/test/kbRoute.js +92 -0
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,16 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.5.2
|
9
|
+
- Updated messenger-connector to 0.1.18
|
10
|
+
- Bug fix: kbs createdAt wrongly generated
|
11
|
+
- Added advanced search for kbs
|
12
|
+
|
13
|
+
# 2.5.1
|
14
|
+
- Bug fix: reset busy status for agents when smart assignment is enabled
|
15
|
+
- Added possibility to delete chat21 conversation
|
16
|
+
- Updated tybot-connector to 0.2.56
|
17
|
+
|
8
18
|
# 2.5.0
|
9
19
|
- Added new pricing modules
|
10
20
|
- Added integrations route
|
@@ -666,7 +666,7 @@ class Chat21Handler {
|
|
666
666
|
});
|
667
667
|
});
|
668
668
|
|
669
|
-
|
669
|
+
// archive: function(recipient_id, user_id){
|
670
670
|
chat21.conversations.archive(request.request_id, "system")
|
671
671
|
.then(function(data){
|
672
672
|
winston.verbose("Chat21 archived for system"+ JSON.stringify(data));
|
@@ -699,7 +699,28 @@ class Chat21Handler {
|
|
699
699
|
});
|
700
700
|
});
|
701
701
|
|
702
|
-
|
702
|
+
requestEvent.on('request.delete', function(request) {
|
703
|
+
|
704
|
+
winston.debug("chat21Handler requestEvent request.delete called" , request);
|
705
|
+
|
706
|
+
setImmediate(() => {
|
707
|
+
if (request.channelOutbound.name === ChannelConstants.CHAT21) {
|
708
|
+
|
709
|
+
chat21.auth.setAdminToken(adminToken);
|
710
|
+
|
711
|
+
winston.debug("Chat21Sender deleting conversations for ",request.participants);
|
712
|
+
|
713
|
+
chat21.conversations.delete(request.request_id).then((data) => {
|
714
|
+
winston.verbose("Chat21 conversation archived result "+ JSON.stringify(data));
|
715
|
+
chat21Event.emit('conversation.deleted', data);
|
716
|
+
}).catch((err) => {
|
717
|
+
winston.error("Chat21 deleted err", err);
|
718
|
+
chat21Event.emit('conversation.deleted.error', err);
|
719
|
+
})
|
720
|
+
}
|
721
|
+
})
|
722
|
+
|
723
|
+
});
|
703
724
|
|
704
725
|
requestEvent.on('request.participants.update', function(data) {
|
705
726
|
|