@tiledesk/tiledesk-tybot-connector 0.2.138-rc5 → 0.2.138-rc6

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,6 +17,9 @@ available on:
17
17
  - Added flowError on JSONCondition when result = null
18
18
  - Added fix on Filler -->
19
19
 
20
+ # v0.2.138-rc6
21
+ - First deploy external
22
+
20
23
  # v0.2.138-rc1
21
24
  - Updated redis to 4.7.0
22
25
  - Updated tdCache
package/TdCache.js CHANGED
@@ -21,10 +21,10 @@ class TdCache {
21
21
  * Connect redis client
22
22
  */
23
23
  this.client = redis.createClient(
24
- {
25
- url: `redis://${this.redis_host}:${this.redis_port}`,
26
- password: this.redis_password
27
- });
24
+ {
25
+ url: `redis://${this.redis_host}:${this.redis_port}`,
26
+ password: this.redis_password
27
+ });
28
28
  this.client.on('error', err => {
29
29
  reject(err);
30
30
  if (callback) {
package/index.js CHANGED
@@ -609,7 +609,7 @@ router.post('/block/:project_id/:bot_id/:block_id', async (req, res) => {
609
609
 
610
610
  async function startApp(settings, completionCallback) {
611
611
  console.log("Starting Tilebot...");
612
- console.log("Starting Tilebot with Settings:", settings);
612
+ // console.log("Starting Tilebot with Settings:", settings);
613
613
  if (settings.bots) { // static bots data source
614
614
  staticBots = settings.bots;
615
615
  }
@@ -628,9 +628,6 @@ async function startApp(settings, completionCallback) {
628
628
  }
629
629
 
630
630
  if (settings.REDIS_HOST && settings.REDIS_PORT) {
631
- console.log("startApp REDIS_HOST: ", settings.REDIS_HOST)
632
- console.log("startApp REDIS_PORT: ", settings.REDIS_PORT)
633
- console.log("startApp REDIS_PASSWORD: ", settings.REDIS_PASSWORD)
634
631
  tdcache = new TdCache({
635
632
  host: settings.REDIS_HOST,
636
633
  port: settings.REDIS_PORT,
@@ -705,7 +702,6 @@ async function startApp(settings, completionCallback) {
705
702
  }
706
703
 
707
704
  async function connectRedis() {
708
- console.log("connectRedis tdcache: ", tdcache)
709
705
  if (tdcache) {
710
706
  try {
711
707
  console.log("(Tilebot) Connecting Redis...");
@@ -699,7 +699,6 @@ class TiledeskChatbotUtil {
699
699
  await chatbot.addParameter(TiledeskChatbotConst.REQ_DEPARTMENT_ID_KEY, message.attributes.departmentId);
700
700
  await chatbot.addParameter(TiledeskChatbotConst.REQ_DEPARTMENT_NAME_KEY, message.attributes.departmentName);
701
701
  }
702
-
703
702
  if (message.attributes) {
704
703
  if (chatbot.log) {console.log("Ok message.attributes", JSON.stringify(message.attributes));}
705
704
  // if (projectId === "641864da99c1fb00131ba495") {console.log("641864da99c1fb00131ba495 > Ok message.attributes", JSON.stringify(message.attributes));}
@@ -920,6 +919,7 @@ class TiledeskChatbotUtil {
920
919
  }
921
920
 
922
921
  /**
922
+ * DEPRECATED
923
923
  * A stub to get the request parameters, hosted by tilebot on:
924
924
  * /${TILEBOT_ROUTE}/ext/parameters/requests/${requestId}?all
925
925
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.138-rc5",
3
+ "version": "0.2.138-rc6",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {