@tiledesk/tiledesk-server 2.10.48 → 2.10.50
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -1
- package/package.json +2 -2
- package/pubmodules/rules/conciergeBot.js +1 -1
- package/pubmodules/tilebot/listener.js +1 -1
- package/pubmodules/trigger/rulesTrigger.js +1 -1
- package/routes/department.js +4 -5
- package/routes/faq_kb.js +1 -1
- package/routes/request.js +3 -3
- package/services/requestService.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -5,7 +5,15 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
-
# 2.10.
|
8
|
+
# 2.10.50
|
9
|
+
- updated tybot-connector to 0.2.147
|
10
|
+
- removed logs
|
11
|
+
- fix /department/operators bug (Circular Dependency on JSON Stringify)
|
12
|
+
|
13
|
+
# 2.10.49
|
14
|
+
- changed TILEBOT_ENDPOINT
|
15
|
+
|
16
|
+
# 2.10.48
|
9
17
|
- updated tybot-connector to 0.2.146
|
10
18
|
|
11
19
|
# 2.10.44
|
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.50",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -48,7 +48,7 @@
|
|
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.147",
|
52
52
|
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.76",
|
53
53
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.11",
|
54
54
|
"@tiledesk/tiledesk-sms-connector": "^0.1.11",
|
@@ -79,7 +79,7 @@ devi mandare un messaggio welcome tu altrimenti il bot inserito successivamente
|
|
79
79
|
winston.debug("rerouting");
|
80
80
|
// reroute(request_id, id_project, nobot)
|
81
81
|
requestService.reroute(message.request.request_id, message.request.id_project, false ).catch((err) => {
|
82
|
-
winston.error("ConciergeBot error reroute: "
|
82
|
+
winston.error("ConciergeBot error reroute: " + err);
|
83
83
|
});
|
84
84
|
}
|
85
85
|
|
@@ -5,7 +5,7 @@ var configGlobal = require('../../config/global');
|
|
5
5
|
|
6
6
|
var port = process.env.PORT || '3000';
|
7
7
|
|
8
|
-
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
8
|
+
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
9
9
|
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
10
10
|
|
11
11
|
winston.info("Tilebot endpoint: " + TILEBOT_ENDPOINT);
|
@@ -33,7 +33,7 @@ const uuidv4 = require('uuid/v4');
|
|
33
33
|
var jwt = require('jsonwebtoken');
|
34
34
|
|
35
35
|
const port = process.env.PORT || '3000';
|
36
|
-
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
36
|
+
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
37
37
|
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
38
38
|
|
39
39
|
class RulesTrigger {
|
package/routes/department.js
CHANGED
@@ -151,12 +151,11 @@ router.get('/:departmentid/operators', [passport.authenticate(['basic', 'jwt'],
|
|
151
151
|
|
152
152
|
|
153
153
|
var context = {req:req};
|
154
|
-
|
155
|
-
|
154
|
+
var operatorsResult = await departmentService.getOperators(req.params.departmentid, req.projectid, req.query.nobot, disableWebHookCall, context);
|
155
|
+
winston.debug("Getting department operators operatorsResult", operatorsResult);
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
return res.json(operatorsResult);
|
157
|
+
delete operatorsResult.context;
|
158
|
+
return res.status(200).send(operatorsResult);
|
160
159
|
|
161
160
|
});
|
162
161
|
|
package/routes/faq_kb.js
CHANGED
@@ -250,7 +250,7 @@ router.put('/:faq_kbid/publish', roleChecker.hasRole('admin'), async (req, res)
|
|
250
250
|
botEvent.emit('faqbot.update', updatedForkedChabot);
|
251
251
|
|
252
252
|
const port = process.env.PORT || '3000';
|
253
|
-
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
253
|
+
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
254
254
|
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
255
255
|
|
256
256
|
let updatedOriginalChabot = await Faq_kb.findByIdAndUpdate(id_faq_kb, {url:TILEBOT_ENDPOINT+forkedChatBotId}, { new: true, upsert: true }).exec();
|
package/routes/request.js
CHANGED
@@ -478,15 +478,15 @@ router.put('/:requestid/replace', async (req, res) => {
|
|
478
478
|
}
|
479
479
|
|
480
480
|
id = "bot_" + chatbot._id;
|
481
|
-
winston.
|
481
|
+
winston.verbose("Chatbot found: " + id);
|
482
482
|
}
|
483
483
|
|
484
484
|
let participants = [];
|
485
485
|
participants.push(id);
|
486
|
-
winston.
|
486
|
+
winston.verbose("participants to be set: ", participants);
|
487
487
|
|
488
488
|
requestService.setParticipantsByRequestId(req.params.requestid, req.projectid, participants).then((updatedRequest) => {
|
489
|
-
winston.
|
489
|
+
winston.debug("SetParticipant response: ", updatedRequest);
|
490
490
|
res.status(200).send(updatedRequest);
|
491
491
|
}).catch((err) => {
|
492
492
|
winston.error("Error setting participants ", err);
|
@@ -21,7 +21,7 @@ const projectService = require('./projectService');
|
|
21
21
|
const axios = require("axios").default;
|
22
22
|
|
23
23
|
let port = process.env.PORT || '3000';
|
24
|
-
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
24
|
+
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
|
25
25
|
|
26
26
|
let tdCache = new TdCache({
|
27
27
|
host: process.env.CACHE_REDIS_HOST,
|