@tiledesk/tiledesk-server 2.10.26 → 2.10.27
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 +7 -2
- package/models/kb_setting.js +2 -0
- package/models/request.js +8 -2
- package/package.json +3 -3
- package/services/emailService.js +4 -4
package/CHANGELOG.md
CHANGED
@@ -5,15 +5,20 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.10.27
|
9
|
+
- updated tybot-connector to 0.2.133
|
10
|
+
- updated vxml-connector to 0.2.65
|
11
|
+
- updated EmailService methods
|
12
|
+
|
8
13
|
# 2.10.26
|
9
14
|
- Added missing catch blocks
|
10
15
|
|
11
16
|
# 2.10.25
|
12
|
-
- updated tybot-connector to 0.2.
|
17
|
+
- updated tybot-connector to 0.2.132
|
13
18
|
- updated twilio-voice--connector to 0.1.10
|
14
19
|
|
15
20
|
# 2.10.24
|
16
|
-
- updated tybot-connector to 0.2.
|
21
|
+
- updated tybot-connector to 0.2.132-rc1
|
17
22
|
- updated vxml-connector to 0.2.64
|
18
23
|
- updated twilio-voice--connector to 0.1.9
|
19
24
|
|
package/models/kb_setting.js
CHANGED
@@ -141,6 +141,8 @@ var KBSettingSchema = new Schema({
|
|
141
141
|
|
142
142
|
|
143
143
|
KBSchema.index({ createdAt: -1, updatedAt: -1 })
|
144
|
+
KBSchema.index({ id_project: 1, namespace: 1, updatedAt: -1 })
|
145
|
+
|
144
146
|
|
145
147
|
// DEPRECATED
|
146
148
|
const KBSettings = mongoose.model('KBSettings', KBSettingSchema);
|
package/models/request.js
CHANGED
@@ -492,14 +492,20 @@ RequestSchema.index({ id_project: 1, createdAt: 1, preflight: 1});
|
|
492
492
|
//suggested by atlas profiler. Used by auto closing requests
|
493
493
|
RequestSchema.index({ hasBot: 1, status: 1, createdAt: 1});
|
494
494
|
|
495
|
-
//
|
495
|
+
// suggested by atlas
|
496
496
|
RequestSchema.index({ "channel.name": 1, id_project: 1, preflight: 1, "snapshot.requester.uuid_user": 1, createdAt: - 1, status: 1 })
|
497
497
|
RequestSchema.index({ id_project: 1, preflight: 1, "snapshot.agents.id_user": 1, updatedAt: -1, draft: 1, status: 1 })
|
498
498
|
RequestSchema.index({ id_project: 1, participants: 1, preflight: 1, updatedAt: -1, draft: 1, status: 1 })
|
499
499
|
RequestSchema.index({ id_project: 1, preflight: 1, updatedAt: -1, draft: 1, status: 1 })
|
500
500
|
RequestSchema.index({ id_project: 1, preflight: 1, "snapshot.requester.uuid_user": 1, createdAt: -1, status: 1 })
|
501
501
|
RequestSchema.index({ department: 1, id_project: 1, participants: 1, preflight: 1, createdAt: -1, status: 1 })
|
502
|
-
|
502
|
+
RequestSchema.index({ id_project: 1, preflight: 1, createdAt: -1, status: 1 });
|
503
|
+
RequestSchema.index({ id_project: 1, preflight: 1, createdAt: 1 })
|
504
|
+
RequestSchema.index({ participants: 1, id_project: 1, createdAt: -1, status: 1 })
|
505
|
+
RequestSchema.index({ id_project: 1, "snapshot.lead.email": 1, createdAt: -1, status: 1 })
|
506
|
+
RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })
|
507
|
+
RequestSchema.index({ id_project: 1, createdAt: -1, status: 1 })
|
508
|
+
RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })
|
503
509
|
|
504
510
|
// cannot index parallel arrays [agents] [participants] {"driv
|
505
511
|
// RequestSchema.index({ id_project: 1, status: 1, preflight:1, participants:1, "agents.id_user":1, updatedAt: -1 }); //NN LO APPLICA
|
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.10.
|
4
|
+
"version": "2.10.27",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -48,11 +48,11 @@
|
|
48
48
|
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
49
49
|
"@tiledesk/tiledesk-telegram-connector": "^0.1.14",
|
50
50
|
"@tiledesk/tiledesk-train-jobworker": "^0.0.11",
|
51
|
-
"@tiledesk/tiledesk-tybot-connector": "^0.2.
|
51
|
+
"@tiledesk/tiledesk-tybot-connector": "^0.2.133",
|
52
52
|
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.75",
|
53
53
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.10",
|
54
54
|
"@tiledesk/tiledesk-sms-connector": "^0.1.10",
|
55
|
-
"@tiledesk/tiledesk-vxml-connector": "^0.1.
|
55
|
+
"@tiledesk/tiledesk-vxml-connector": "^0.1.65",
|
56
56
|
"@tiledesk/tiledesk-voice-twilio-connector": "^0.1.10",
|
57
57
|
"amqplib": "^0.5.5",
|
58
58
|
"app-root-path": "^3.0.0",
|
package/services/emailService.js
CHANGED
@@ -1582,7 +1582,7 @@ class EmailService {
|
|
1582
1582
|
|
1583
1583
|
var that = this;
|
1584
1584
|
|
1585
|
-
var html = await this.
|
1585
|
+
var html = await this.readTemplate('passwordChanged.html', undefined, "EMAIL_PASSWORD_CHANGED_HTML_TEMPLATE");
|
1586
1586
|
|
1587
1587
|
winston.debug("html: " + html);
|
1588
1588
|
|
@@ -1618,7 +1618,7 @@ class EmailService {
|
|
1618
1618
|
|
1619
1619
|
var that = this;
|
1620
1620
|
|
1621
|
-
var html = await this.
|
1621
|
+
var html = await this.readTemplate('beenInvitedExistingUser.html', undefined, "EMAIL_EXUSER_INVITED_HTML_TEMPLATE");
|
1622
1622
|
|
1623
1623
|
winston.debug("html: " + html);
|
1624
1624
|
|
@@ -1657,7 +1657,7 @@ class EmailService {
|
|
1657
1657
|
|
1658
1658
|
var that = this;
|
1659
1659
|
|
1660
|
-
var html = await this.
|
1660
|
+
var html = await this.readTemplate('beenInvitedNewUser.html', undefined, "EMAIL_NEWUSER_INVITED_HTML_TEMPLATE");
|
1661
1661
|
|
1662
1662
|
winston.debug("html: " + html);
|
1663
1663
|
|
@@ -1693,7 +1693,7 @@ class EmailService {
|
|
1693
1693
|
if (savedUser.toJSON) {
|
1694
1694
|
savedUser = savedUser.toJSON();
|
1695
1695
|
}
|
1696
|
-
var html = await this.
|
1696
|
+
var html = await this.readTemplate('verify.html', undefined, "EMAIL_VERIFY_HTML_TEMPLATE");
|
1697
1697
|
|
1698
1698
|
winston.debug("html: " + html);
|
1699
1699
|
|