@tiledesk/tiledesk-tybot-connector 0.2.139-rc5 → 0.2.139-rc7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.139-rc5",
3
+ "version": "0.2.139-rc7",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,6 +3,7 @@ const { TiledeskChatbot } = require('../../models/TiledeskChatbot');
3
3
  const { Filler } = require('../Filler');
4
4
 
5
5
  const axios = require("axios").default;
6
+ let https = require("https");
6
7
 
7
8
  class DirReplaceBotV3 {
8
9
 
@@ -41,7 +42,7 @@ class DirReplaceBotV3 {
41
42
  }
42
43
 
43
44
  async go(action, callback) {
44
- let botName = action.botName;
45
+ let botId = action.botId;
45
46
  let botSlug = action.botSlug;
46
47
  let useSlug = action.useSlug;
47
48
  let blockName = action.blockName;
@@ -51,14 +52,14 @@ class DirReplaceBotV3 {
51
52
  this.context.tdcache, this.context.requestId
52
53
  );
53
54
  const filler = new Filler();
54
- botName = filler.fill(botName, variables);
55
+ //botId = filler.fill(botId, variables);
55
56
  botSlug = filler.fill(botSlug, variables);
56
57
 
57
58
  let data = {};
58
59
  if (useSlug && useSlug === true) {
59
60
  data.slug = botSlug;
60
61
  } else {
61
- data.name = botName;
62
+ data.id = botId;
62
63
  }
63
64
 
64
65
  const HTTPREQUEST = {
@@ -155,7 +156,7 @@ class DirReplaceBotV3 {
155
156
  }
156
157
  });
157
158
  }
158
-
159
+
159
160
  }
160
161
 
161
162
  module.exports = { DirReplaceBotV3 };