@tiledesk/tiledesk-server 2.5.3 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/app.js +7 -1
- package/config/labels/widget.json +257 -252
- package/event/botEvent.js +24 -3
- package/jobs.js +9 -1
- package/jobsManager.js +13 -1
- package/middleware/fetchLabels.js +23 -13
- package/package.json +6 -4
- package/pubmodules/queue/reconnect.js +47 -0
- package/pubmodules/trigger/default.js +2 -2
- package/pubmodules/trigger/rulesTrigger.js +14 -2
- package/routes/kb.js +307 -62
- package/services/QuoteManager.js +26 -20
- package/services/Scheduler.js +33 -0
- package/services/openaiService.js +12 -11
- package/services/requestService.js +96 -92
- package/services/updateLeadQueued.js +149 -0
- package/test/TooManykbUrlsList.txt +304 -0
- package/test/kbRoute.js +331 -20
- package/test/kbUrlsList.txt +4 -0
- package/utils/jobs-worker-queue-manager/JobManagerV2.js +146 -0
- package/utils/jobs-worker-queue-manager/queueManagerClassV2.js +355 -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.7.1
|
9
|
+
- Updated widget.json translation file
|
10
|
+
- Improved widget White Label
|
11
|
+
|
12
|
+
# 2.7.0
|
13
|
+
- Lead update queued
|
14
|
+
- Updated tybot-connector to 0.2.57
|
15
|
+
- Updated kb route
|
16
|
+
- Added trainer job worker
|
17
|
+
|
8
18
|
# 2.5.3
|
9
19
|
- Updated whatsapp-connector to 0.1.64
|
10
20
|
|
package/README.md
CHANGED
@@ -93,7 +93,7 @@ Deploy with button:
|
|
93
93
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Tiledesk/tiledesk-server)
|
94
94
|
|
95
95
|
# Community? Questions? Support ?
|
96
|
-
If you need help or just want to hang out, come, say hi on our [<img width="15" alt="Tiledesk discord" src="https://seeklogo.com/images/D/discord-color-logo-E5E6DFEF80-seeklogo.com.png"> Discord](https://discord.gg/
|
96
|
+
If you need help or just want to hang out, come, say hi on our [<img width="15" alt="Tiledesk discord" src="https://seeklogo.com/images/D/discord-color-logo-E5E6DFEF80-seeklogo.com.png"> Discord](https://discord.gg/Q5A6Ewadmz) server.
|
97
97
|
|
98
98
|
# REST API
|
99
99
|
|
package/app.js
CHANGED
@@ -175,6 +175,8 @@ trainingService.start();
|
|
175
175
|
var geoService = require('./services/geoService');
|
176
176
|
// geoService.listen(); //queued
|
177
177
|
|
178
|
+
var updateLeadQueued = require('./services/updateLeadQueued');
|
179
|
+
|
178
180
|
let JobsManager = require('./jobsManager');
|
179
181
|
|
180
182
|
let jobWorkerEnabled = false;
|
@@ -183,7 +185,7 @@ if (process.env.JOB_WORKER_ENABLED=="true" || process.env.JOB_WORKER_ENABLED ==
|
|
183
185
|
}
|
184
186
|
winston.info("JobsManager jobWorkerEnabled: "+ jobWorkerEnabled);
|
185
187
|
|
186
|
-
let jobsManager = new JobsManager(jobWorkerEnabled, geoService, botEvent, subscriptionNotifierQueued, botSubscriptionNotifier);
|
188
|
+
let jobsManager = new JobsManager(jobWorkerEnabled, geoService, botEvent, subscriptionNotifierQueued, botSubscriptionNotifier, updateLeadQueued);
|
187
189
|
|
188
190
|
var faqBotHandler = require('./services/faqBotHandler');
|
189
191
|
faqBotHandler.listen();
|
@@ -197,6 +199,10 @@ let whatsappQueue = require('@tiledesk/tiledesk-whatsapp-jobworker');
|
|
197
199
|
winston.info("whatsappQueue");
|
198
200
|
jobsManager.listenWhatsappQueue(whatsappQueue);
|
199
201
|
|
202
|
+
let trainingQueue = require('@tiledesk/tiledesk-train-jobworker');
|
203
|
+
winston.info("trainingQueue");
|
204
|
+
jobsManager.listenTrainingQueue(trainingQueue);
|
205
|
+
|
200
206
|
|
201
207
|
var channelManager = require('./channels/channelManager');
|
202
208
|
channelManager.listen();
|