@tiledesk/tiledesk-server 2.2.3 → 2.2.10
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 +15 -1
- package/channels/chat21/nativeauth.js +1 -0
- package/package.json +4 -4
- package/services/emailService.js +41 -41
- package/services/faqService.js +1 -2
- package/test/requestRoute.js +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# 2.2.9
|
2
|
+
- Native mqtt auth fix
|
3
|
+
|
4
|
+
# 2.2.8
|
5
|
+
- Public trigger module
|
6
|
+
|
7
|
+
# 2.2.6
|
8
|
+
- Quota license fix
|
9
|
+
|
10
|
+
# 2.2.4
|
11
|
+
- email invitation fix
|
12
|
+
|
1
13
|
# 2.2.3
|
2
14
|
- Email inboud fix (others disabled and inboudDomain variable fix and token query string encode fix)
|
3
15
|
|
@@ -86,8 +98,10 @@
|
|
86
98
|
- Added email notification for new message and new request for email and form channel (ticket)
|
87
99
|
- Added microLanguageTransformationInterceptor enabled when message.attributes.microlanguage==true
|
88
100
|
|
101
|
+
# 2.1.40.35
|
102
|
+
- Quota license fix
|
89
103
|
|
90
|
-
# 2.1.40.34
|
104
|
+
# 2.1.40.34
|
91
105
|
- logfix
|
92
106
|
|
93
107
|
# 2.1.40.33
|
@@ -42,6 +42,7 @@ router.post('/createCustomToken', function (req, res) {
|
|
42
42
|
const scope = [
|
43
43
|
`rabbitmq.read:*/*/apps.${appid}.users.${userid}.*`,
|
44
44
|
`rabbitmq.write:*/*/apps.${appid}.users.${userid}.*`,
|
45
|
+
`rabbitmq.write:*/*/apps.${appid}.outgoing.users.${userid}.*`,
|
45
46
|
'rabbitmq.configure:*/*/*'
|
46
47
|
]
|
47
48
|
|
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.2.
|
4
|
+
"version": "2.2.10",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -37,14 +37,14 @@
|
|
37
37
|
"@tiledesk-ent/tiledesk-server-dialogflow": "^1.1.6",
|
38
38
|
"@tiledesk-ent/tiledesk-server-groups": "^1.1.2",
|
39
39
|
"@tiledesk-ent/tiledesk-server-jwthistory": "^1.1.9",
|
40
|
-
"@tiledesk-ent/tiledesk-server-mt": "^1.1.
|
40
|
+
"@tiledesk-ent/tiledesk-server-mt": "^1.1.7",
|
41
41
|
"@tiledesk-ent/tiledesk-server-payments": "^1.1.5",
|
42
42
|
"@tiledesk-ent/tiledesk-server-queue": "^1.1.10",
|
43
43
|
"@tiledesk-ent/tiledesk-server-request-history": "^1.1.5",
|
44
|
-
"@tiledesk-ent/tiledesk-server-resthook": "^1.1.
|
44
|
+
"@tiledesk-ent/tiledesk-server-resthook": "^1.1.51",
|
45
45
|
"@tiledesk-ent/tiledesk-server-routing-queue": "^1.1.11",
|
46
46
|
"@tiledesk-ent/tiledesk-server-tags": "^1.1.1",
|
47
|
-
"@tiledesk-ent/tiledesk-server-triggers": "^1.1.
|
47
|
+
"@tiledesk-ent/tiledesk-server-triggers": "^1.1.78",
|
48
48
|
"@tiledesk-ent/tiledesk-server-visitorcounter": "^1.1.1"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
package/services/emailService.js
CHANGED
@@ -519,13 +519,13 @@ class EmailService {
|
|
519
519
|
|
520
520
|
let inReplyTo;
|
521
521
|
let references;
|
522
|
-
if (message.attributes) {
|
523
|
-
if (message.attributes.email_messageId) {
|
524
|
-
inReplyTo = message.attributes.email_messageId;
|
525
|
-
|
526
|
-
|
527
|
-
references = message.attributes.email_references;
|
528
|
-
|
522
|
+
if (message.request.attributes) {
|
523
|
+
if (message.request.attributes.email_messageId) {
|
524
|
+
inReplyTo = message.request.attributes.email_messageId;
|
525
|
+
}
|
526
|
+
if (message.request.attributes.email_references) {
|
527
|
+
references = message.request.attributes.email_references;
|
528
|
+
}
|
529
529
|
}
|
530
530
|
winston.verbose("sendNewAssignedAgentMessageEmailNotification email inReplyTo: "+ inReplyTo);
|
531
531
|
winston.verbose("sendNewAssignedAgentMessageEmailNotification email references: "+ references);
|
@@ -804,13 +804,13 @@ class EmailService {
|
|
804
804
|
|
805
805
|
let inReplyTo;
|
806
806
|
let references;
|
807
|
-
if (message.attributes) {
|
808
|
-
if (message.attributes.email_messageId) {
|
809
|
-
inReplyTo = message.attributes.email_messageId;
|
810
|
-
|
811
|
-
|
812
|
-
references = message.attributes.email_references;
|
813
|
-
|
807
|
+
if (message.request.attributes) {
|
808
|
+
if (message.request.attributes.email_messageId) {
|
809
|
+
inReplyTo = message.request.attributes.email_messageId;
|
810
|
+
}
|
811
|
+
if (message.request.attributes.email_references) {
|
812
|
+
references = message.request.attributes.email_references;
|
813
|
+
}
|
814
814
|
}
|
815
815
|
winston.verbose("sendNewPooledMessageEmailNotification email inReplyTo: "+ inReplyTo);
|
816
816
|
winston.verbose("sendNewPooledMessageEmailNotification email references: "+ references);
|
@@ -947,13 +947,13 @@ class EmailService {
|
|
947
947
|
|
948
948
|
let inReplyTo;
|
949
949
|
let references;
|
950
|
-
if (message.attributes) {
|
951
|
-
if (message.attributes.email_messageId) {
|
952
|
-
inReplyTo = message.attributes.email_messageId;
|
953
|
-
|
954
|
-
|
955
|
-
references = message.attributes.email_references;
|
956
|
-
|
950
|
+
if (message.request.attributes) {
|
951
|
+
if (message.request.attributes.email_messageId) {
|
952
|
+
inReplyTo = message.request.attributes.email_messageId;
|
953
|
+
}
|
954
|
+
if (message.attributes.email_references) {
|
955
|
+
references = message.request.attributes.email_references;
|
956
|
+
}
|
957
957
|
}
|
958
958
|
winston.verbose("email inReplyTo: "+ inReplyTo);
|
959
959
|
winston.verbose("email references: "+ references);
|
@@ -1086,24 +1086,24 @@ class EmailService {
|
|
1086
1086
|
let cc;
|
1087
1087
|
let ccString;
|
1088
1088
|
|
1089
|
-
if (message.attributes) {
|
1089
|
+
if (message.request && message.request.attributes) {
|
1090
|
+
winston.debug("email message.request.attributes: ", message.request.attributes);
|
1090
1091
|
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
}
|
1092
|
+
if (message.request.attributes.email_messageId) {
|
1093
|
+
inReplyTo = message.request.attributes.email_messageId;
|
1094
|
+
}
|
1095
|
+
if (message.request.attributes.email_references) {
|
1096
|
+
references = message.request.attributes.email_references;
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
if (message.request.attributes.email_cc) {
|
1100
|
+
cc = message.request.attributes.email_cc;
|
1101
|
+
}
|
1102
|
+
winston.debug("email message.request.attributes.email_ccStr: "+ message.request.attributes.email_ccStr);
|
1103
|
+
if (message.request.attributes.email_ccStr!=undefined) {
|
1104
|
+
ccString = message.request.attributes.email_ccStr;
|
1105
|
+
winston.debug("email set ccString");
|
1106
|
+
}
|
1107
1107
|
}
|
1108
1108
|
winston.verbose("email inReplyTo: "+ inReplyTo);
|
1109
1109
|
winston.verbose("email references: "+ references);
|
@@ -1217,7 +1217,7 @@ class EmailService {
|
|
1217
1217
|
|
1218
1218
|
var that = this;
|
1219
1219
|
|
1220
|
-
var html = await this.readTemplate('resetPassword.html'
|
1220
|
+
var html = await this.readTemplate('resetPassword.html');
|
1221
1221
|
|
1222
1222
|
|
1223
1223
|
var envTemplate = process.env.EMAIL_RESET_PASSWORD_HTML_TEMPLATE;
|
@@ -1299,7 +1299,7 @@ class EmailService {
|
|
1299
1299
|
|
1300
1300
|
var that = this;
|
1301
1301
|
|
1302
|
-
var html = await this.readTemplateFile('
|
1302
|
+
var html = await this.readTemplateFile('beenInvitedExistingUser.html');
|
1303
1303
|
|
1304
1304
|
var envTemplate = process.env.EMAIL_EXUSER_INVITED_HTML_TEMPLATE;
|
1305
1305
|
winston.debug("envTemplate: " + envTemplate);
|
@@ -1345,7 +1345,7 @@ class EmailService {
|
|
1345
1345
|
|
1346
1346
|
var that = this;
|
1347
1347
|
|
1348
|
-
var html = await this.readTemplateFile('
|
1348
|
+
var html = await this.readTemplateFile('beenInvitedNewUser.html');
|
1349
1349
|
|
1350
1350
|
var envTemplate = process.env.EMAIL_NEWUSER_INVITED_HTML_TEMPLATE;
|
1351
1351
|
winston.debug("envTemplate: " + envTemplate);
|
package/services/faqService.js
CHANGED
@@ -62,13 +62,12 @@ class FaqService {
|
|
62
62
|
{ 'question': '👨🏻🦰 I want an agent', 'answer': 'We are looking for an operator.. '+ActionsConstants.CHAT_ACTION_MESSAGE.AGENT, 'intent_display_name': 'agent_handoff', 'topic': 'internal' },
|
63
63
|
{ 'question': 'Close\nResolved', 'answer': ActionsConstants.CHAT_ACTION_MESSAGE.CLOSE, 'topic': 'internal' },
|
64
64
|
{ 'question': '\\start', 'answer': 'Hello 👋. I\'m a bot 🤖.\n\nChoose one of the options below or write a message to reach our staff.\n* Who are you?\n* Where are you?\n* What can you do?\n* 👨🏻🦰 I want an agent', 'intent_display_name': 'start', 'topic': 'internal' },
|
65
|
-
// { 'question': 'Menu', 'answer': 'Choose one of the options below or write a message to reach our staff.\n* Who are you?\n* Where are you?\n* What can you do?\n* 👨🏻🦰 I want an agent','topic': 'internal' },
|
66
65
|
{ 'question': 'defaultFallback', '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', 'topic': 'internal' }, //TODO se metto spazio n * nn va
|
67
66
|
{ 'question': 'What can you do?', 'answer': 'Using natural language processing, I\'m able to find the best answer for your users. I also support images, videos etc.. Let\'s try:\n* Sample Image\n* Sample Video\n* Sample Action tdAction:action1\n* Sample Frame\n* Back to start tdAction:start', 'topic': 'sample' },
|
68
67
|
{ 'question': 'Sample Image', 'answer': 'tdImage:https://tiledesk.com/tiledesk-logo-x1.png\n* What can you do?\n* Back to start tdAction:start', 'topic': 'sample' },
|
69
68
|
{ 'question': 'Sample Frame', 'answer': 'tdFrame:https://www.emanueleferonato.com/wp-content/uploads/2019/02/runner/\n* What can you do?\n* Back to start tdAction:start', 'topic': 'sample' },
|
70
69
|
{ 'question': 'Sample Video', 'answer': 'tdVideo:https://www.youtube.com/embed/EngW7tLk6R8\n* What can you do?\n* Back to start tdAction:start', 'topic': 'sample' },
|
71
|
-
{ 'question': 'Where are you', 'answer': 'We are here ❤️\ntdFrame:https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6087916.923447935!2d8.234804542117423!3d41.836572992140624!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x12d4fe82448dd203%3A0xe22cf55c24635e6f!2sItaly!5e0!3m2!1sen!2sit!4v1613657475377!5m2!1sen!2sit\n* Back to start tdAction:start', 'topic': 'sample' },
|
70
|
+
{ 'question': 'Where are you?', 'answer': 'We are here ❤️\ntdFrame:https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6087916.923447935!2d8.234804542117423!3d41.836572992140624!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x12d4fe82448dd203%3A0xe22cf55c24635e6f!2sItaly!5e0!3m2!1sen!2sit!4v1613657475377!5m2!1sen!2sit\n* Back to start tdAction:start', 'topic': 'sample' },
|
72
71
|
|
73
72
|
// { 'question': 'Sample Webhook', 'answer': 'tdWebhook:https://tiledesk-bot-webhook.tiledesk.repl.co', 'topic': 'sample' },
|
74
73
|
{ 'question': 'Sample Action', 'answer': 'Hello 👋 Would you like to take a closer look at our offer?\n* Yes, please tdAction:yes_action\n* No tdAction:no_action','intent_display_name': 'action1', 'topic': 'sample' },
|
package/test/requestRoute.js
CHANGED