@tiledesk/tiledesk-tybot-connector 0.2.60 → 0.2.601-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.
package/CHANGELOG.md CHANGED
@@ -5,11 +5,17 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+
9
+ # v0.2.61 (next-release)
10
+
11
+ # v0.2.61-rc1
12
+ - Added VXML actions (dmtf_menu, dtmf_form, blind_transfer)
13
+
8
14
  # v0.2.60
9
15
  - added flow attributes:
10
- - lastUserDocumentAsAttachmentURL: Document as a downloadable on click
11
- - lastUserDocumentAsInlineURL: Document as "view inline" on click
12
- - flow attribute "strongAuthentication" renamed in "strongAuthenticated"
16
+ - lastUserDocumentAsAttachmentURL: Document as a downloadable on click
17
+ - lastUserDocumentAsInlineURL: Document as "view inline" on click
18
+ - flow attribute "strongAuthentication" renamed in "strongAuthenticated"
13
19
 
14
20
  # v0.2.59
15
21
  - added flow attribute "strongAuthentication" mapped on request.requester.isAuthenticated (true|false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.60",
3
+ "version": "0.2.601-rc1",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -291,6 +291,27 @@ class DirectivesChatbotPlug {
291
291
  this.process(next_dir);
292
292
  });
293
293
  }
294
+ else if (directive_name === Directives.DTMF_FORM) {
295
+ // console.log("...DirReply");
296
+ new DirReply(context).execute(directive, async () => {
297
+ let next_dir = await this.nextDirective(this.directives);
298
+ this.process(next_dir);
299
+ });
300
+ }
301
+ else if (directive_name === Directives.DTMF_MENU) {
302
+ // console.log("...DirReply");
303
+ new DirReply(context).execute(directive, async () => {
304
+ let next_dir = await this.nextDirective(this.directives);
305
+ this.process(next_dir);
306
+ });
307
+ }
308
+ else if (directive_name === Directives.BLIND_TRANSFER) {
309
+ // console.log("...DirReply");
310
+ new DirReply(context).execute(directive, async () => {
311
+ let next_dir = await this.nextDirective(this.directives);
312
+ this.process(next_dir);
313
+ });
314
+ }
294
315
  else if (directive_name === Directives.RANDOM_REPLY) {
295
316
  // console.log("...DirRandomReply");
296
317
  new DirRandomReply(context).execute(directive, async () => {
@@ -27,16 +27,22 @@ class Directives {
27
27
  static RANDOM_REPLY = 'randomreply';
28
28
  static CODE = 'code';
29
29
  static WHATSAPP_ATTRIBUTE = 'whatsapp_attribute';
30
+ static FORM = "form";
31
+ static CAPTURE_USER_REPLY = "capture_user_reply";
32
+ static REPLACE_BOT_V2 = "replacebotv2";
33
+ /**** AI ****/
30
34
  static ASK_GPT = "askgpt";
31
35
  static ASK_GPT_V2 = "askgptv2";
32
36
  static GPT_TASK = "gpt_task";
33
- static FORM = "form";
34
- static CAPTURE_USER_REPLY = "capture_user_reply";
37
+ /**** INTEGRATIONS ****/
35
38
  static QAPLA = 'qapla';
36
39
  static MAKE = 'make';
37
- static REPLACE_BOT_V2 = "replacebotv2";
38
40
  static HUBSPOT = 'hubspot';
39
41
  static CUSTOMERIO = 'customerio';
42
+ /**** VOICE CHANNEL ****/
43
+ static DTMF_FORM = 'dtmf_form';
44
+ static DTMF_MENU = 'dtmf_menu';
45
+ static BLIND_TRANSFER = 'blind_transfer';
40
46
 
41
47
  // static WHEN_ONLINE_MOVE_TO_AGENT = "whenonlinemovetoagent"; // DEPRECATED?
42
48
  // static WHEN_OFFLINE_HOURS = "whenofflinehours"; // DEPRECATED // adds a message on top of the original message when offline hours opts: --replace