@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.78",
3
+ "version": "0.2.79",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- // let departmentId = await this.chatbot.getParameter("department_id");
64
- // console.log("this.context.departmentId:", this.context.departmentId);
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
- 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)}
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) {