@tiledesk/tiledesk-server 2.3.6 → 2.3.9
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/package.json +2 -2
- package/pubmodules/rasa/listener.js +1 -1
- package/routes/faq.js +7 -0
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.3.
|
4
|
+
"version": "2.3.9",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"@tiledesk/tiledesk-chat21-app": "^1.1.4",
|
44
44
|
"@tiledesk/tiledesk-chatbot-util": "^0.8.33",
|
45
45
|
"@tiledesk/tiledesk-json-rules-engine": "^4.0.3",
|
46
|
-
"@tiledesk/tiledesk-rasa-connector": "^1.0.
|
46
|
+
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
47
47
|
"app-root-path": "^3.0.0",
|
48
48
|
"bcrypt-nodejs": "0.0.3",
|
49
49
|
"body-parser": "^1.20.0",
|
@@ -6,7 +6,7 @@ var configGlobal = require('../../config/global');
|
|
6
6
|
|
7
7
|
var port = process.env.PORT || '3000';
|
8
8
|
|
9
|
-
const BOT_RASA_ENDPOINT = "http://localhost:" + port+ "/modules/rasa/rasabot"
|
9
|
+
const BOT_RASA_ENDPOINT = process.env.BOT_RASA_ENDPOINT || "http://localhost:" + port+ "/modules/rasa/rasabot";
|
10
10
|
winston.debug("BOT_RASA_ENDPOINT: " + BOT_RASA_ENDPOINT);
|
11
11
|
|
12
12
|
// if (BOT_RASA_ENDPOINT) {
|
package/routes/faq.js
CHANGED
@@ -299,10 +299,17 @@ router.get('/', function (req, res, next) {
|
|
299
299
|
query.id_project = req.projectid
|
300
300
|
}
|
301
301
|
|
302
|
+
if (req.query.intent_display_name) {
|
303
|
+
query.intent_display_name=req.query.intent_display_name
|
304
|
+
}
|
305
|
+
|
306
|
+
|
302
307
|
winston.debug("GET FAQ query", query);
|
303
308
|
|
304
309
|
// query.$text = {"$search": "question"};
|
305
310
|
|
311
|
+
|
312
|
+
|
306
313
|
return Faq.find(query).
|
307
314
|
skip(skip).limit(limit).
|
308
315
|
populate({path:'faq_kb'})//, match: { trashed: { $in: [null, false] } }}).
|