@tiledesk/tiledesk-server 2.10.27 → 2.10.29
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.
@@ -24,6 +24,10 @@ jobs:
|
|
24
24
|
- name: Log Voice Token
|
25
25
|
run: |
|
26
26
|
echo "Voice token log: ${{ secrets.VOICE_TOKEN }}"
|
27
|
+
|
28
|
+
- name: Log Voice Twilio Token
|
29
|
+
run: |
|
30
|
+
echo "Voice Twilio token log: ${{ secrets.VOICE_TWILIO_TOKEN }}"
|
27
31
|
|
28
32
|
- name: Generate Docker metadata
|
29
33
|
id: meta
|
@@ -43,4 +47,5 @@ jobs:
|
|
43
47
|
build-args: |
|
44
48
|
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
|
45
49
|
VOICE_TOKEN=${{ secrets.VOICE_TOKEN }}
|
50
|
+
VOICE_TWILIO_TOKEN=${{ secrets.VOICE_TWILIO_TOKEN }}
|
46
51
|
tags: ${{ steps.meta.outputs.tags }}
|
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.10.29
|
9
|
+
- Minor improvements external channels
|
10
|
+
|
11
|
+
# 2.10.28
|
12
|
+
- removed duplicated index on Request model
|
13
|
+
|
8
14
|
# 2.10.27
|
9
15
|
- updated tybot-connector to 0.2.133
|
10
16
|
- updated vxml-connector to 0.2.65
|
package/Dockerfile-en
CHANGED
@@ -15,6 +15,7 @@ COPY .npmrc_ .npmrc
|
|
15
15
|
|
16
16
|
# Set environment variable based on build argument
|
17
17
|
ENV VOICE_TOKEN=${VOICE_TOKEN}
|
18
|
+
ENV VOICE_TWILIO_TOKEN=${VOICE_TWILIO_TOKEN}
|
18
19
|
|
19
20
|
# Install app dependencies
|
20
21
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
package/models/request.js
CHANGED
@@ -503,9 +503,10 @@ RequestSchema.index({ id_project: 1, preflight: 1, createdAt: -1, status: 1 });
|
|
503
503
|
RequestSchema.index({ id_project: 1, preflight: 1, createdAt: 1 })
|
504
504
|
RequestSchema.index({ participants: 1, id_project: 1, createdAt: -1, status: 1 })
|
505
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
506
|
RequestSchema.index({ id_project: 1, createdAt: -1, status: 1 })
|
508
|
-
|
507
|
+
|
508
|
+
// ERROR DURING DEPLOY OF 2.10.27
|
509
|
+
//RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })
|
509
510
|
|
510
511
|
// cannot index parallel arrays [agents] [participants] {"driv
|
511
512
|
// RequestSchema.index({ id_project: 1, status: 1, preflight:1, participants:1, "agents.id_user":1, updatedAt: -1 }); //NN LO APPLICA
|
package/package.json
CHANGED
@@ -371,20 +371,22 @@ class PubModulesManager {
|
|
371
371
|
}
|
372
372
|
}
|
373
373
|
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
374
|
+
if (process.env.VOICE_TWILIO_TOKEN === process.env.VOICE_TWILIO_SECRET) {
|
375
|
+
try {
|
376
|
+
this.voiceTwilio = require('./voice-twilio');
|
377
|
+
winston.info("this.voiceTwilio: " + this.voiceTwilio);
|
378
|
+
this.voiceTwilio.listener.listen(config);
|
378
379
|
|
379
|
-
|
380
|
+
this.voiceTwilioRoute = this.voiceTwilio.voiceTwilioRoute;
|
380
381
|
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
382
|
+
winston.info("PubModulesManager initialized apps (voiceTwilio).")
|
383
|
+
} catch(err) {
|
384
|
+
console.log("\n Unable to start voiceTwilio connector: ", err);
|
385
|
+
if (err.code == 'MODULE_NOT_FOUND') {
|
386
|
+
winston.info("PubModulesManager init apps module not found ");
|
387
|
+
} else {
|
388
|
+
winston.info("PubModulesManager error initializing init apps module", err);
|
389
|
+
}
|
388
390
|
}
|
389
391
|
}
|
390
392
|
|