@tiledesk/tiledesk-tybot-connector 0.2.131-rc5 → 0.2.132-rc1

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 CHANGED
@@ -17,12 +17,16 @@ available on:
17
17
  - Added flowError on JSONCondition when result = null
18
18
  - Added fix on Filler -->
19
19
 
20
+ # v0.2.132-rc1
21
+ - added: support for internal api endpoint
22
+
20
23
  # v0.2.131-rc2
21
24
  - changed API_URL with API_ENDPOINT
22
25
 
23
- # v0.2.131-rc1
26
+ # v0.2.131
24
27
  - added: AUDIO_RECORD vxml action as reply_v2 actionType
25
28
  - added: DirAddTags action
29
+ - externalized: process.env.CHATBOT_MAX_STEPS and process.env.CHATBOT_MAX_EXECUTION_TIME
26
30
 
27
31
  # v0.2.130
28
32
  - (TiledeskChatbotUtil) fix process.env.API_ENDPOINT => process.env.API_URL
package/TdCache.js CHANGED
@@ -28,7 +28,7 @@ class TdCache {
28
28
  // console.log('Redis Connected!');
29
29
  // });
30
30
  this.client.on('ready',function() {
31
- console.log("connected")
31
+ // console.log("connected")
32
32
  resolve();
33
33
  if (callback) {
34
34
  callback();
package/index.js CHANGED
@@ -332,7 +332,7 @@ router.post('/ext/:projectId/requests/:requestId/messages', async (req, res) =>
332
332
  tdclient.sendSupportMessage(requestId, bot_answer, (err, response) => {
333
333
  if (log) {console.log("/ext => bot_answer sent:", JSON.stringify(bot_answer));}
334
334
  if (err) {
335
- console.error("/ext => Error sending message", err);
335
+ console.error("/ext => Error sending message", JSON.stringify(err));
336
336
  }
337
337
  directivesPlug.processDirectives( () => {
338
338
  if (log) {console.log("After message - Directives executed.");}
@@ -9,12 +9,11 @@ const { IntentForm } = require('./IntentForm.js');
9
9
  const { TiledeskChatbotUtil } = require('./TiledeskChatbotUtil.js');
10
10
  const { DirLockIntent } = require('../tiledeskChatbotPlugs/directives/DirLockIntent');
11
11
  const { DirUnlockIntent } = require('../tiledeskChatbotPlugs/directives/DirUnlockIntent');
12
- const { TiledeskChatbotConst } = require('./TiledeskChatbotConst.js');
13
12
 
14
13
  class TiledeskChatbot {
15
14
 
16
- static MAX_STEPS = 1000; // prod 1000;
17
- static MAX_EXECUTION_TIME = 1000 * 3600 * 8;// test // prod1000 * 3600 * 4; // 4 hours
15
+ static MAX_STEPS = process.env.CHATBOT_MAX_STEPS || 1000; // prod 1000;
16
+ static MAX_EXECUTION_TIME = process.env.CHATBOT_MAX_EXECUTION_TIME || 1000 * 3600 * 8;// test // prod1000 * 3600 * 4; // 4 hours
18
17
 
19
18
  constructor(config) {
20
19
  if (!config.botsDataSource) {
@@ -1,7 +1,6 @@
1
1
  const { TiledeskExpression } = require('../TiledeskExpression');
2
2
  const { Filler } = require('../tiledeskChatbotPlugs/Filler');
3
3
  const { TiledeskChatbotConst } = require('./TiledeskChatbotConst');
4
- const { TiledeskChatbot } = require('./TiledeskChatbot.js');
5
4
  let parser = require('accept-language-parser');
6
5
  const { Directives } = require('../tiledeskChatbotPlugs/directives/Directives.js');
7
6
  require('dotenv').config();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.131-rc5",
3
+ "version": "0.2.132-rc1",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {