@tiledesk/tiledesk-tybot-connector 2.0.10-rc13 → 2.0.10-rc14
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/logs/app2.log +11113 -0
- package/package.json +1 -1
- package/tiledeskChatbotPlugs/directives/DirAddTags.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirAiPrompt.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirAskGPT.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirAskGPTV2.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirAssign.js +0 -6
- package/tiledeskChatbotPlugs/directives/DirAssignFromFunction.js +1 -6
- package/tiledeskChatbotPlugs/directives/DirAssistant.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirBrevo.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirCaptureUserReply.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirClearTranscript.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirClose.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirCode.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirCondition.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirContactUpdate.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirCustomerio.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirDeflectToHelpCenter.js +1 -6
- package/tiledeskChatbotPlugs/directives/DirDeleteVariable.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirDepartment.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirFireTiledeskEvent.js +3 -7
- package/tiledeskChatbotPlugs/directives/DirForm.js +4 -10
- package/tiledeskChatbotPlugs/directives/DirGptTask.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirGptTask_OLD.js +3 -1
- package/tiledeskChatbotPlugs/directives/DirHubspot.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirIfOnlineAgents.js +4 -8
- package/tiledeskChatbotPlugs/directives/DirIfOnlineAgentsV2.js +4 -9
- package/tiledeskChatbotPlugs/directives/DirIfOpenHours.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirIfOpenHours_OLD.js +4 -8
- package/tiledeskChatbotPlugs/directives/DirJSONCondition.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirMake.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirMessage.js +1 -6
- package/tiledeskChatbotPlugs/directives/DirMoveToAgent.js +2 -8
- package/tiledeskChatbotPlugs/directives/DirMoveToUnassigned.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirQapla.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirRandomReply.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirRemoveCurrentBot.js +1 -6
- package/tiledeskChatbotPlugs/directives/DirReplaceBot.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirReplaceBotV2.js +4 -8
- package/tiledeskChatbotPlugs/directives/DirReplaceBotV3.js +4 -8
- package/tiledeskChatbotPlugs/directives/DirReply.js +4 -9
- package/tiledeskChatbotPlugs/directives/DirReplyV2.js +4 -9
- package/tiledeskChatbotPlugs/directives/DirSendEmail.js +3 -8
- package/tiledeskChatbotPlugs/directives/DirSendWhatsapp.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirSetAttributeV2.js +1 -3
- package/tiledeskChatbotPlugs/directives/DirSetConversationTags.js +2 -7
- package/tiledeskChatbotPlugs/directives/DirWait.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirWebRequestV2.js +3 -2
- package/tiledeskChatbotPlugs/directives/DirWebResponse.js +2 -1
- package/tiledeskChatbotPlugs/directives/DirWhatsappByAttribute.js +2 -1
|
@@ -17,16 +17,11 @@ class DirReply {
|
|
|
17
17
|
this.requestId = context.requestId;
|
|
18
18
|
this.token = context.token;
|
|
19
19
|
this.tdcache = context.tdcache;
|
|
20
|
-
this.
|
|
21
|
-
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest.draft, intent_id: this.context.reply.attributes.intent_info.intent_id });
|
|
22
|
-
|
|
20
|
+
this.log = context.log;
|
|
23
21
|
this.API_ENDPOINT = context.API_ENDPOINT;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
APIURL: this.API_ENDPOINT,
|
|
28
|
-
APIKEY: "___"
|
|
29
|
-
});
|
|
22
|
+
|
|
23
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
24
|
+
this.tdClient = new TiledeskClient({ projectId: this.context.projectId, token: this.context.token, APIURL: this.API_ENDPOINT, APIKEY: "___", log: this.log });
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
execute(directive, callback) {
|
|
@@ -21,19 +21,14 @@ class DirReplyV2 {
|
|
|
21
21
|
this.requestId = context.requestId;
|
|
22
22
|
this.token = context.token;
|
|
23
23
|
this.tdcache = context.tdcache;
|
|
24
|
-
this.intentDir = new DirIntent(context);
|
|
25
24
|
this.chatbot = context.chatbot;
|
|
26
25
|
this.reply = context.reply;
|
|
27
26
|
this.originalMessage = context.message;
|
|
28
|
-
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest.draft, intent_id: this.context.reply.attributes.intent_info.intent_id });
|
|
29
|
-
|
|
30
27
|
this.API_ENDPOINT = context.API_ENDPOINT;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
APIKEY: "___"
|
|
36
|
-
});
|
|
28
|
+
|
|
29
|
+
this.intentDir = new DirIntent(context);
|
|
30
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
31
|
+
this.tdClient = new TiledeskClient({ projectId: this.context.projectId, token: this.context.token, APIURL: this.API_ENDPOINT, APIKEY: "___" });
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
execute(directive, callback) {
|
|
@@ -16,15 +16,10 @@ class DirSendEmail {
|
|
|
16
16
|
this.context = context;
|
|
17
17
|
this.tdcache = context.tdcache;
|
|
18
18
|
this.requestId = context.requestId;
|
|
19
|
-
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest.draft, intent_id: this.context.reply.attributes.intent_info.intent_id });
|
|
20
|
-
|
|
21
19
|
this.API_ENDPOINT = context.API_ENDPOINT;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
APIURL: this.API_ENDPOINT,
|
|
26
|
-
APIKEY: "___"
|
|
27
|
-
});
|
|
20
|
+
|
|
21
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
22
|
+
this.tdClient = new TiledeskClient({ projectId: this.context.projectId, token: this.context.token, APIURL: this.API_ENDPOINT, APIKEY: "___" });
|
|
28
23
|
}
|
|
29
24
|
|
|
30
25
|
execute(directive, callback) {
|
|
@@ -18,9 +18,10 @@ class DirSendWhatsapp {
|
|
|
18
18
|
this.chatbot = context.chatbot;
|
|
19
19
|
this.tdcache = this.context.tdcache;
|
|
20
20
|
this.requestId = this.context.requestId;
|
|
21
|
-
this.intentDir = new DirIntent(context);
|
|
22
21
|
this.API_ENDPOINT = this.context.API_ENDPOINT;
|
|
23
|
-
|
|
22
|
+
|
|
23
|
+
this.intentDir = new DirIntent(context);
|
|
24
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
execute(directive, callback) {
|
|
@@ -82,9 +82,7 @@ class DirSetAttributeV2 {
|
|
|
82
82
|
this.tdcache = context.tdcache;
|
|
83
83
|
this.requestId = context.requestId;
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
let intent_id = this.context.reply?.attributes?.intent_info?.intent_id || undefined;
|
|
87
|
-
this.logger = new Logger({ request_id: this.requestId, dev: dev, intent_id: intent_id });
|
|
85
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
execute(directive, callback) {
|
|
@@ -10,14 +10,9 @@ class DirSetConversationTags {
|
|
|
10
10
|
}
|
|
11
11
|
this.context = context;
|
|
12
12
|
this.requestId = context.requestId;
|
|
13
|
-
|
|
14
13
|
this.API_ENDPOINT = context.API_ENDPOINT;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
token: this.context.token,
|
|
18
|
-
APIURL: this.API_ENDPOINT,
|
|
19
|
-
APIKEY: "___"
|
|
20
|
-
});
|
|
14
|
+
|
|
15
|
+
this.tdClient = new TiledeskClient({ projectId: this.context.projectId, token: this.context.token, APIURL: this.API_ENDPOINT, APIKEY: "___", log: this.log });
|
|
21
16
|
}
|
|
22
17
|
|
|
23
18
|
execute(directive, callback) {
|
|
@@ -13,7 +13,8 @@ class DirWait {
|
|
|
13
13
|
this.chatbot = context.chatbot;
|
|
14
14
|
this.tdcache = context.tdcache;
|
|
15
15
|
this.requestId = context.requestId;
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
execute(directive, callback) {
|
|
@@ -16,9 +16,10 @@ class DirWebRequestV2 {
|
|
|
16
16
|
this.tdcache = context.tdcache;
|
|
17
17
|
this.requestId = context.requestId;
|
|
18
18
|
this.chatbot = context.chatbot;
|
|
19
|
-
this.intentDir = new DirIntent(context);
|
|
20
19
|
this.log = context.log;
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
this.intentDir = new DirIntent(context);
|
|
22
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
execute(directive, callback) {
|
|
@@ -16,7 +16,8 @@ class DirWebResponse {
|
|
|
16
16
|
this.requestId = context.requestId;
|
|
17
17
|
this.token = context.token;
|
|
18
18
|
this.tdcache = context.tdcache;
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
execute(directive, callback) {
|
|
@@ -15,7 +15,8 @@ class DirWhatsappByAttribute {
|
|
|
15
15
|
this.context = context;
|
|
16
16
|
this.requestId = this.context.requestId;
|
|
17
17
|
this.API_ENDPOINT = context.API_ENDPOINT;
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
execute(directive, callback) {
|