@tiledesk/tiledesk-tybot-connector 2.0.15-rc1 → 2.0.16-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.
Files changed (42) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/Logger.js +10 -3
  3. package/logs/app.log +571 -0
  4. package/package.json +2 -2
  5. package/tiledeskChatbotPlugs/directives/DirAddKbContent.js +20 -21
  6. package/tiledeskChatbotPlugs/directives/DirAddTags.js +5 -6
  7. package/tiledeskChatbotPlugs/directives/DirAiPrompt.js +7 -8
  8. package/tiledeskChatbotPlugs/directives/DirAskGPTV2.js +6 -7
  9. package/tiledeskChatbotPlugs/directives/DirAssistant.js +1 -2
  10. package/tiledeskChatbotPlugs/directives/DirBrevo.js +1 -2
  11. package/tiledeskChatbotPlugs/directives/DirCaptureUserReply.js +4 -5
  12. package/tiledeskChatbotPlugs/directives/DirClearTranscript.js +1 -2
  13. package/tiledeskChatbotPlugs/directives/DirClose.js +2 -3
  14. package/tiledeskChatbotPlugs/directives/DirCode.js +1 -2
  15. package/tiledeskChatbotPlugs/directives/DirCondition.js +3 -4
  16. package/tiledeskChatbotPlugs/directives/DirContactUpdate.js +1 -2
  17. package/tiledeskChatbotPlugs/directives/DirCustomerio.js +1 -2
  18. package/tiledeskChatbotPlugs/directives/DirDeleteVariable.js +1 -2
  19. package/tiledeskChatbotPlugs/directives/DirDepartment.js +3 -4
  20. package/tiledeskChatbotPlugs/directives/DirFlowLog.js +7 -7
  21. package/tiledeskChatbotPlugs/directives/DirGptTask.js +4 -5
  22. package/tiledeskChatbotPlugs/directives/DirHubspot.js +1 -2
  23. package/tiledeskChatbotPlugs/directives/DirIfOnlineAgentsV2.js +1 -2
  24. package/tiledeskChatbotPlugs/directives/DirIfOpenHours.js +3 -4
  25. package/tiledeskChatbotPlugs/directives/DirJSONCondition.js +4 -5
  26. package/tiledeskChatbotPlugs/directives/DirMake.js +1 -2
  27. package/tiledeskChatbotPlugs/directives/DirMoveToAgent.js +1 -2
  28. package/tiledeskChatbotPlugs/directives/DirMoveToUnassigned.js +1 -2
  29. package/tiledeskChatbotPlugs/directives/DirQapla.js +1 -2
  30. package/tiledeskChatbotPlugs/directives/DirRandomReply.js +1 -2
  31. package/tiledeskChatbotPlugs/directives/DirReplaceBot.js +1 -2
  32. package/tiledeskChatbotPlugs/directives/DirReplaceBotV2.js +1 -2
  33. package/tiledeskChatbotPlugs/directives/DirReplaceBotV3.js +1 -2
  34. package/tiledeskChatbotPlugs/directives/DirReply.js +4 -5
  35. package/tiledeskChatbotPlugs/directives/DirReplyV2.js +1 -2
  36. package/tiledeskChatbotPlugs/directives/DirSendEmail.js +1 -2
  37. package/tiledeskChatbotPlugs/directives/DirSendWhatsapp.js +1 -2
  38. package/tiledeskChatbotPlugs/directives/DirSetAttributeV2.js +1 -2
  39. package/tiledeskChatbotPlugs/directives/DirWait.js +2 -3
  40. package/tiledeskChatbotPlugs/directives/DirWebRequestV2.js +7 -7
  41. package/tiledeskChatbotPlugs/directives/DirWebResponse.js +2 -3
  42. package/tiledeskChatbotPlugs/directives/DirWhatsappByAttribute.js +1 -2
package/CHANGELOG.md CHANGED
@@ -491,7 +491,7 @@ available on:
491
491
  - Added AskGPTV2 action
492
492
 
493
493
  # v0.2.49
494
- - resplacebotv2, added "/" + blockName (so the blockname will be implicitly executed), removing the need to specify the "/" in the body of the replacebot editor
494
+ - resplacebotv2, added "/" + blockName (so the blockname will be implicitly Executed"), removing the need to specify the "/" in the body of the replacebot editor
495
495
  - Never add "guest#" as lead userFullname
496
496
 
497
497
  # v0.2.48
package/Logger.js CHANGED
@@ -67,6 +67,11 @@ class Logger {
67
67
  return this.base('debug', log);
68
68
  }
69
69
 
70
+ native(...args) {
71
+ let log = this.formatLog(args);
72
+ return this.base('native', log);
73
+ }
74
+
70
75
  base(level, text) {
71
76
  if (!this.request_id || !publisher) {
72
77
  console.log("Return because request or publisher is undefined", this.request_id, publisher);
@@ -102,15 +107,17 @@ class Logger {
102
107
 
103
108
  // Substitute methods with empty function if flow flogs are disabled
104
109
  _disableMethods() {
105
- const methods = ['error', 'warn', 'info', 'debug'];
110
+ const methods = ['error', 'warn', 'info', 'debug', 'native'];
106
111
  methods.forEach(method => {
107
112
  this[method] = () => { };
108
113
  });
109
114
  }
110
115
 
111
116
  _disableDebugMethods() {
112
- const method = 'debug';
113
- this[method] = () => { };
117
+ const methods = ['debug', 'native'];
118
+ methods.forEach(method => {
119
+ this[method] = () => { };
120
+ });
114
121
  }
115
122
 
116
123
  }