@tiledesk/tiledesk-tybot-connector 2.0.17 → 2.0.19

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 (49) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/Logger.js +11 -4
  3. package/logs/app.log +6791 -44726
  4. package/logs/app4.log +46163 -0
  5. package/logs/app5.log +39983 -0
  6. package/logs/app6.log +50376 -0
  7. package/logs/app7.log +43568 -0
  8. package/logs/app8.log +4779 -0
  9. package/package.json +2 -2
  10. package/tiledeskChatbotPlugs/directives/DirAddKbContent.js +20 -21
  11. package/tiledeskChatbotPlugs/directives/DirAddTags.js +5 -6
  12. package/tiledeskChatbotPlugs/directives/DirAiPrompt.js +7 -8
  13. package/tiledeskChatbotPlugs/directives/DirAskGPTV2.js +50 -21
  14. package/tiledeskChatbotPlugs/directives/DirAssistant.js +1 -2
  15. package/tiledeskChatbotPlugs/directives/DirBrevo.js +1 -2
  16. package/tiledeskChatbotPlugs/directives/DirCaptureUserReply.js +4 -5
  17. package/tiledeskChatbotPlugs/directives/DirClearTranscript.js +1 -2
  18. package/tiledeskChatbotPlugs/directives/DirClose.js +2 -3
  19. package/tiledeskChatbotPlugs/directives/DirCode.js +1 -2
  20. package/tiledeskChatbotPlugs/directives/DirCondition.js +3 -4
  21. package/tiledeskChatbotPlugs/directives/DirContactUpdate.js +1 -2
  22. package/tiledeskChatbotPlugs/directives/DirCustomerio.js +1 -2
  23. package/tiledeskChatbotPlugs/directives/DirDeleteVariable.js +1 -2
  24. package/tiledeskChatbotPlugs/directives/DirDepartment.js +3 -4
  25. package/tiledeskChatbotPlugs/directives/DirFlowLog.js +5 -5
  26. package/tiledeskChatbotPlugs/directives/DirGptTask.js +4 -5
  27. package/tiledeskChatbotPlugs/directives/DirHubspot.js +1 -2
  28. package/tiledeskChatbotPlugs/directives/DirIfOnlineAgentsV2.js +1 -2
  29. package/tiledeskChatbotPlugs/directives/DirIfOpenHours.js +3 -4
  30. package/tiledeskChatbotPlugs/directives/DirIntent.js +3 -1
  31. package/tiledeskChatbotPlugs/directives/DirJSONCondition.js +4 -5
  32. package/tiledeskChatbotPlugs/directives/DirMake.js +1 -2
  33. package/tiledeskChatbotPlugs/directives/DirMoveToAgent.js +1 -2
  34. package/tiledeskChatbotPlugs/directives/DirMoveToUnassigned.js +1 -2
  35. package/tiledeskChatbotPlugs/directives/DirQapla.js +1 -2
  36. package/tiledeskChatbotPlugs/directives/DirRandomReply.js +1 -2
  37. package/tiledeskChatbotPlugs/directives/DirReplaceBot.js +1 -2
  38. package/tiledeskChatbotPlugs/directives/DirReplaceBotV2.js +1 -2
  39. package/tiledeskChatbotPlugs/directives/DirReplaceBotV3.js +1 -2
  40. package/tiledeskChatbotPlugs/directives/DirReply.js +4 -5
  41. package/tiledeskChatbotPlugs/directives/DirReplyV2.js +1 -2
  42. package/tiledeskChatbotPlugs/directives/DirSendEmail.js +1 -2
  43. package/tiledeskChatbotPlugs/directives/DirSendWhatsapp.js +1 -2
  44. package/tiledeskChatbotPlugs/directives/DirSetAttributeV2.js +1 -2
  45. package/tiledeskChatbotPlugs/directives/DirWait.js +2 -3
  46. package/tiledeskChatbotPlugs/directives/DirWebRequestV2.js +7 -8
  47. package/tiledeskChatbotPlugs/directives/DirWebResponse.js +2 -3
  48. package/tiledeskChatbotPlugs/directives/DirWhatsappByAttribute.js +1 -2
  49. package/logs/app1.log +0 -16653
package/CHANGELOG.md CHANGED
@@ -466,7 +466,7 @@ available on:
466
466
  - Added AskGPTV2 action
467
467
 
468
468
  # v0.2.49
469
- - resplacebotv2, added "/" + blockName (so the blockname will be implicitly executed), removing the need to specify the "/" in the body of the replacebot editor
469
+ - resplacebotv2, added "/" + blockName (so the blockname will be implicitly Executed"), removing the need to specify the "/" in the body of the replacebot editor
470
470
  - Never add "guest#" as lead userFullname
471
471
 
472
472
  # v0.2.48
package/Logger.js CHANGED
@@ -4,7 +4,7 @@ const FLOW_LOGS_ENABLED = process.env.FLOW_LOGS_ENABLED;
4
4
  const AMQP_MANAGER_URL = process.env.AMQP_MANAGER_URL;
5
5
  const LOGS_BASE_ROUTING_KEY = process.env.LOGS_BASE_ROUTING_KEY || "apps.tilechat.logs";
6
6
 
7
- const levels = { error: 0, warn: 1, info: 2, debug: 3 };
7
+ const levels = { error: 0, warn: 1, info: 2, debug: 3, native: 4 };
8
8
 
9
9
  let publisher = new Publisher(AMQP_MANAGER_URL, {
10
10
  debug: false,
@@ -65,6 +65,11 @@ class Logger {
65
65
  return this.base('debug', log);
66
66
  }
67
67
 
68
+ native(...args) {
69
+ let log = this.formatLog(args);
70
+ return this.base('native', log);
71
+ }
72
+
68
73
  base(level, text) {
69
74
  if (!this.request_id || !publisher) {
70
75
  console.log("Return because request or publisher is undefined", this.request_id, publisher);
@@ -99,15 +104,17 @@ class Logger {
99
104
 
100
105
  // Substitute methods with empty function if flow flogs are disabled
101
106
  _disableMethods() {
102
- const methods = ['error', 'warn', 'info', 'debug'];
107
+ const methods = ['error', 'warn', 'info', 'debug', 'native'];
103
108
  methods.forEach(method => {
104
109
  this[method] = () => { };
105
110
  });
106
111
  }
107
112
 
108
113
  _disableDebugMethods() {
109
- const method = 'debug';
110
- this[method] = () => { };
114
+ const methods = ['debug', 'native'];
115
+ methods.forEach(method => {
116
+ this[method] = () => { };
117
+ });
111
118
  }
112
119
 
113
120
  }