@tiledesk/tiledesk-tybot-connector 2.0.10-rc19 → 2.0.10-rc20

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": "2.0.10-rc19",
3
+ "version": "2.0.10-rc20",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,12 +61,11 @@ class DirIntent {
61
61
  "recipient": requestId,
62
62
  "text": intent_command,
63
63
  "id_project": projectId,
64
- "request": this.supportRequest,
65
- // "request": {
66
- // "request_id": requestId,
67
- // "id_project": projectId
68
- // // "bot_id": botId
69
- // }
64
+ "request": {
65
+ "request_id": requestId,
66
+ "id_project": projectId
67
+ // "bot_id": botId
68
+ }
70
69
  },
71
70
  "token": this.token
72
71
  }
@@ -582,8 +582,10 @@ class TiledeskChatbotUtil {
582
582
  }
583
583
  let currentLeadName = await chatbot.getParameter(TiledeskChatbotConst.REQ_LEAD_USERFULLNAME_KEY);
584
584
  winston.debug("(TiledeskChatbotUtil) You lead email from attributes: " + currentLeadEmail);
585
+ console.log("currentLeadName: ", currentLeadName)
585
586
  if (message.request.lead.fullname && !currentLeadName) {
586
587
  // worth saving
588
+ console.log("inside if")
587
589
  winston.debug("(TiledeskChatbotUtil) worth saving email");
588
590
  try {
589
591
  await chatbot.addParameter(TiledeskChatbotConst.REQ_LEAD_USERFULLNAME_KEY, message.request.lead.fullname);