@tiledesk/tiledesk-tybot-connector 0.2.78 → 0.2.79
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
+
# v0.2.79 - dev
|
|
9
|
+
- Fixed. Get DepartmentId for default department in test-mode in IfOnelineAgentsV2 with correct attribute get with chatbot.getParameter()
|
|
10
|
+
|
|
8
11
|
# v0.2.78 - dev
|
|
9
12
|
- Fixed? Get DepartmentId for default department in test-mode in IfOnelineAgentsV2
|
|
10
13
|
|
package/package.json
CHANGED
|
@@ -59,22 +59,18 @@ class DirIfOnlineAgentsV2 {
|
|
|
59
59
|
let agents;
|
|
60
60
|
if (selectedOption === "currentDep") {
|
|
61
61
|
console.log("(DirIfOnlineAgents) currentDep");
|
|
62
|
-
let departmentId;
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
// let departmentId;
|
|
63
|
+
let departmentId = await this.chatbot.getParameter("department_id");
|
|
64
|
+
console.log("this.context.departmentId:", departmentId);
|
|
65
65
|
|
|
66
|
-
if (this.context.tdcache) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// if (this.context.departmentId) {
|
|
77
|
-
// departmentId = this.context.departmentId;
|
|
66
|
+
// if (this.context.tdcache) {
|
|
67
|
+
// let attributes =
|
|
68
|
+
// await TiledeskChatbot.allParametersStatic(
|
|
69
|
+
// this.context.tdcache, this.context.requestId
|
|
70
|
+
// );
|
|
71
|
+
// if (this.log) {console.log("Attributes:::", JSON.stringify(attributes))}
|
|
72
|
+
// departmentId = attributes["department_id"];
|
|
73
|
+
// if (this.log) {console.log("Attributes.departmentId:::", departmentId)}
|
|
78
74
|
// }
|
|
79
75
|
|
|
80
76
|
if (departmentId) {
|