@dawntech/dwntbots-services 0.0.65 → 0.0.67
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/package.json +4 -4
- package/src/lib/blip/BlipBuilder/BlipBuilder.d.ts +9 -1
- package/src/lib/blip/BlipBuilder/BlipBuilder.js +38 -5
- package/src/lib/blip/BlipBuilder/BlipBuilder.js.map +1 -1
- package/src/lib/blip/BlipBuilder/BlipBuilderTranspilation.d.ts +4 -0
- package/src/lib/blip/BlipBuilder/BlipBuilderTranspilation.js +9 -6
- package/src/lib/blip/BlipBuilder/BlipBuilderTranspilation.js.map +1 -1
- package/src/lib/blip/BlipBuilder/BlipBuilderTranspile.js +2 -4
- package/src/lib/blip/BlipBuilder/BlipBuilderTranspile.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/CommonFeature.d.ts +3 -2
- package/src/lib/blip/BlipBuilder/features/CommonFeature.js +59 -33
- package/src/lib/blip/BlipBuilder/features/CommonFeature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/Feature.d.ts +3 -0
- package/src/lib/blip/BlipBuilder/features/Feature.js +11 -0
- package/src/lib/blip/BlipBuilder/features/Feature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/InactivityFeature.js +9 -7
- package/src/lib/blip/BlipBuilder/features/InactivityFeature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/PositionFeature.d.ts +9 -2
- package/src/lib/blip/BlipBuilder/features/PositionFeature.js +38 -5
- package/src/lib/blip/BlipBuilder/features/PositionFeature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/SDKFeature.d.ts +34 -10
- package/src/lib/blip/BlipBuilder/features/SDKFeature.js +234 -84
- package/src/lib/blip/BlipBuilder/features/SDKFeature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/TagsFeature.d.ts +11 -2
- package/src/lib/blip/BlipBuilder/features/TagsFeature.js +124 -20
- package/src/lib/blip/BlipBuilder/features/TagsFeature.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/checkpoints.d.ts +3 -0
- package/src/lib/blip/BlipBuilder/features/actions/checkpoints.js +38 -0
- package/src/lib/blip/BlipBuilder/features/actions/checkpoints.js.map +1 -0
- package/src/lib/blip/BlipBuilder/features/actions/ctwa.js +11 -4
- package/src/lib/blip/BlipBuilder/features/actions/ctwa.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/entrypoint.js +22 -14
- package/src/lib/blip/BlipBuilder/features/actions/entrypoint.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/fallback.d.ts +4 -0
- package/src/lib/blip/BlipBuilder/features/actions/fallback.js +103 -11
- package/src/lib/blip/BlipBuilder/features/actions/fallback.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/global.d.ts +5 -0
- package/src/lib/blip/BlipBuilder/features/actions/global.js +162 -5
- package/src/lib/blip/BlipBuilder/features/actions/global.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/onboarding.d.ts +1 -0
- package/src/lib/blip/BlipBuilder/features/actions/onboarding.js +18 -5
- package/src/lib/blip/BlipBuilder/features/actions/onboarding.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/actions/script.d.ts +3 -0
- package/src/lib/blip/BlipBuilder/features/actions/script.js +58 -0
- package/src/lib/blip/BlipBuilder/features/actions/script.js.map +1 -0
- package/src/lib/blip/BlipBuilder/features/blocks/debugger.js +1 -14
- package/src/lib/blip/BlipBuilder/features/blocks/debugger.js.map +1 -1
- package/src/lib/blip/BlipBuilder/features/blocks/error.d.ts +1 -2
- package/src/lib/blip/BlipBuilder/features/blocks/error.js +123 -93
- package/src/lib/blip/BlipBuilder/features/blocks/error.js.map +1 -1
- package/src/lib/blip/BlipService.d.ts +1 -0
- package/src/lib/blip/BlipService.js +34 -11
- package/src/lib/blip/BlipService.js.map +1 -1
- package/src/lib/blip/WhatsAppBlipService.js +3 -5
- package/src/lib/blip/WhatsAppBlipService.js.map +1 -1
- package/src/lib/new-relic/NewRelicIngest.d.ts +1 -1
- package/src/lib/new-relic/NewRelicIngest.js.map +1 -1
- package/src/lib/storage/Driver.js +14 -16
- package/src/lib/storage/Driver.js.map +1 -1
- package/src/lib/storage/ScopedStorage.js +1 -3
- package/src/lib/storage/ScopedStorage.js.map +1 -1
- package/src/lib/storage/adapter/LocalStorageAdapter.js +5 -7
- package/src/lib/storage/adapter/LocalStorageAdapter.js.map +1 -1
|
@@ -25,12 +25,67 @@ class TagsFeature extends Feature_1.BlipBuilderFeature {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
checkErrorType(builder) {
|
|
29
|
+
builder.getBlocks().forEach((block) => {
|
|
30
|
+
const actions = [
|
|
31
|
+
...block.$enteringCustomActions,
|
|
32
|
+
...block.$leavingCustomActions,
|
|
33
|
+
];
|
|
34
|
+
const hasErrorType = actions
|
|
35
|
+
.filter((action) => !Feature_1.BlipBuilderFeature.isPrefixedId(action.$id))
|
|
36
|
+
.some((action) => {
|
|
37
|
+
let hasErrorType = false;
|
|
38
|
+
if (action.type === "SetVariable") {
|
|
39
|
+
hasErrorType =
|
|
40
|
+
action.settings.variable.toLowerCase() ==
|
|
41
|
+
"errortype";
|
|
42
|
+
}
|
|
43
|
+
if (action.type === "ExecuteScript") {
|
|
44
|
+
hasErrorType =
|
|
45
|
+
action.settings.outputVariable.toLowerCase() ==
|
|
46
|
+
"errortype";
|
|
47
|
+
}
|
|
48
|
+
return hasErrorType;
|
|
49
|
+
});
|
|
50
|
+
if (hasErrorType) {
|
|
51
|
+
Feature_1.BlipBuilder.addTag(block, TagsFeature.TAG_ERROR);
|
|
52
|
+
this.logger.info("adding 'Error' tag", block);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
checkIntents(builder) {
|
|
57
|
+
builder.getBlocks().forEach((block) => {
|
|
58
|
+
const actions = [
|
|
59
|
+
...block.$enteringCustomActions,
|
|
60
|
+
...block.$leavingCustomActions,
|
|
61
|
+
];
|
|
62
|
+
const hasIntent = actions.some((action) => {
|
|
63
|
+
let hasIntent = false;
|
|
64
|
+
if (action.type === "SetVariable") {
|
|
65
|
+
hasIntent =
|
|
66
|
+
action.settings.variable.toLowerCase() == "intents";
|
|
67
|
+
}
|
|
68
|
+
if (action.type === "ExecuteScript") {
|
|
69
|
+
hasIntent =
|
|
70
|
+
action.settings.outputVariable.toLowerCase() ==
|
|
71
|
+
"intents";
|
|
72
|
+
}
|
|
73
|
+
return hasIntent;
|
|
74
|
+
});
|
|
75
|
+
if (hasIntent) {
|
|
76
|
+
Feature_1.BlipBuilder.addTag(block, TagsFeature.TAG_INTENT);
|
|
77
|
+
this.logger.info("adding 'Intent' tag", block);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
28
81
|
prepare(builder) {
|
|
82
|
+
this.createTagsBlock(builder);
|
|
29
83
|
this.run(builder);
|
|
30
84
|
}
|
|
31
85
|
run(builder) {
|
|
32
|
-
this.createTagsBlock(builder);
|
|
33
86
|
this.checkMainBot(builder);
|
|
87
|
+
this.checkErrorType(builder);
|
|
88
|
+
this.checkIntents(builder);
|
|
34
89
|
}
|
|
35
90
|
}
|
|
36
91
|
exports.TagsFeature = TagsFeature;
|
|
@@ -39,52 +94,101 @@ TagsFeature.BLOCK_NAME = "DWNT Tags";
|
|
|
39
94
|
TagsFeature.TAG_MAIN_BOT = {
|
|
40
95
|
background: "#1060FD",
|
|
41
96
|
label: "Main Bot",
|
|
42
|
-
id: "978a9c38-c025-4181-9bbd-966ff8ff9bb0",
|
|
97
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("978a9c38-c025-4181-9bbd-966ff8ff9bb0"),
|
|
43
98
|
canChangeBackground: false,
|
|
44
99
|
};
|
|
45
|
-
TagsFeature.
|
|
46
|
-
background: "#
|
|
47
|
-
label: "
|
|
48
|
-
id: "
|
|
100
|
+
TagsFeature.TAG_ERROR = {
|
|
101
|
+
background: "#F90300",
|
|
102
|
+
label: "Erro Definido",
|
|
103
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("16871d75-ce98-44e3-bf61-64c9a764ebb9"),
|
|
104
|
+
canChangeBackground: false,
|
|
105
|
+
};
|
|
106
|
+
TagsFeature.TAG_INTENT = {
|
|
107
|
+
background: "#8F3985",
|
|
108
|
+
label: "Intenções Definidas",
|
|
109
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("16871d75-ce98-44e3-bf61-64c9a764ebb9"),
|
|
110
|
+
canChangeBackground: false,
|
|
111
|
+
};
|
|
112
|
+
TagsFeature.TAG_CHECKPOINT = {
|
|
113
|
+
background: "#FF1E90",
|
|
114
|
+
label: "Checkpoint",
|
|
115
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("aa459da7-ffa4-47c8-8487-6295b8f01d32"),
|
|
116
|
+
canChangeBackground: false,
|
|
117
|
+
};
|
|
118
|
+
TagsFeature.TAG_CUSTOM_GO_BACK = {
|
|
119
|
+
background: "#004643",
|
|
120
|
+
label: "Voltar Customizado",
|
|
121
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("9c457030-3296-4370-829d-f428641750e4"),
|
|
49
122
|
canChangeBackground: false,
|
|
50
123
|
};
|
|
51
124
|
TagsFeature.TAG_CUSTOM_ERROR = {
|
|
52
|
-
background: "#
|
|
125
|
+
background: "#004643",
|
|
53
126
|
label: "Erro customizado",
|
|
54
|
-
id: "ef8eaf43-f10b-470d-be3e-58b6fa87c39a",
|
|
127
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("ef8eaf43-f10b-470d-be3e-58b6fa87c39a"),
|
|
55
128
|
canChangeBackground: false,
|
|
56
129
|
};
|
|
57
130
|
TagsFeature.TAG_CUSTOM_INACTIVITY = {
|
|
58
|
-
background: "#
|
|
131
|
+
background: "#004643",
|
|
59
132
|
label: "Inatividade customizada",
|
|
60
|
-
id: "ac020f84-3722-47eb-8250-3845d1af6d86",
|
|
133
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("ac020f84-3722-47eb-8250-3845d1af6d86"),
|
|
61
134
|
canChangeBackground: false,
|
|
62
135
|
};
|
|
63
136
|
TagsFeature.TAG_ENTRYPOINT = {
|
|
64
|
-
background: "#
|
|
137
|
+
background: "#004643",
|
|
65
138
|
label: "Retorno Ativo",
|
|
66
|
-
id: "ec687a82-cfa6-4f64-acae-0ed4e6209764",
|
|
139
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("ec687a82-cfa6-4f64-acae-0ed4e6209764"),
|
|
67
140
|
canChangeBackground: false,
|
|
68
141
|
};
|
|
69
142
|
TagsFeature.TAG_CTWA = {
|
|
70
|
-
background: "#
|
|
143
|
+
background: "#004643",
|
|
71
144
|
label: "Click to WhatsApp",
|
|
72
|
-
id: "0fa8105d-9d5e-4200-a52e-3a1a95dcb670",
|
|
145
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("0fa8105d-9d5e-4200-a52e-3a1a95dcb670"),
|
|
146
|
+
canChangeBackground: false,
|
|
147
|
+
};
|
|
148
|
+
TagsFeature.TAG_REDIRECT = {
|
|
149
|
+
background: "#5bc0eb",
|
|
150
|
+
label: "Redirect",
|
|
151
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("75550d25-28a5-43f4-b509-3306608554fa"),
|
|
152
|
+
canChangeBackground: false,
|
|
153
|
+
};
|
|
154
|
+
TagsFeature.TAG_INPUT = {
|
|
155
|
+
background: "#fde74c",
|
|
156
|
+
label: "Input",
|
|
157
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("2cab60bd-871d-474b-b62a-18cdeac03f7d"),
|
|
73
158
|
canChangeBackground: false,
|
|
74
159
|
};
|
|
75
|
-
TagsFeature.
|
|
76
|
-
background: "#
|
|
77
|
-
label: "
|
|
78
|
-
id: "
|
|
160
|
+
TagsFeature.TAG_HTTP_COMMAND = {
|
|
161
|
+
background: "#32DE8A",
|
|
162
|
+
label: "HTTP/Command",
|
|
163
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("c9ac2aa2-f775-44ee-bd9a-ab6da9d7c548"),
|
|
164
|
+
canChangeBackground: false,
|
|
165
|
+
};
|
|
166
|
+
TagsFeature.TAG_MERGE_CONTACT = {
|
|
167
|
+
background: "#C3423F",
|
|
168
|
+
label: "MergeContact",
|
|
169
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("ed6bcc79-1eae-4759-9316-cd22153acf3f"),
|
|
170
|
+
canChangeBackground: false,
|
|
171
|
+
};
|
|
172
|
+
TagsFeature.TAG_TRACK_EVENTS = {
|
|
173
|
+
background: "#779CAB",
|
|
174
|
+
label: "TrackEvents",
|
|
175
|
+
id: Feature_1.BlipBuilderFeature.createPrefixedId("5b52e5a9-aaf2-4282-9d74-493810becee1"),
|
|
79
176
|
canChangeBackground: false,
|
|
80
177
|
};
|
|
81
178
|
TagsFeature.ALL_TAGS = [
|
|
82
179
|
TagsFeature.TAG_MAIN_BOT,
|
|
83
|
-
TagsFeature.TAG_REDIRECT,
|
|
84
180
|
TagsFeature.TAG_CUSTOM_INACTIVITY,
|
|
85
181
|
TagsFeature.TAG_CUSTOM_ERROR,
|
|
182
|
+
TagsFeature.TAG_CHECKPOINT,
|
|
183
|
+
TagsFeature.TAG_CUSTOM_GO_BACK,
|
|
184
|
+
TagsFeature.TAG_ERROR,
|
|
185
|
+
TagsFeature.TAG_INTENT,
|
|
86
186
|
TagsFeature.TAG_ENTRYPOINT,
|
|
87
187
|
TagsFeature.TAG_CTWA,
|
|
88
|
-
TagsFeature.
|
|
188
|
+
TagsFeature.TAG_REDIRECT,
|
|
189
|
+
TagsFeature.TAG_INPUT,
|
|
190
|
+
TagsFeature.TAG_HTTP_COMMAND,
|
|
191
|
+
TagsFeature.TAG_MERGE_CONTACT,
|
|
192
|
+
TagsFeature.TAG_TRACK_EVENTS,
|
|
89
193
|
];
|
|
90
194
|
//# sourceMappingURL=TagsFeature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagsFeature.js","sourceRoot":"","sources":["../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/TagsFeature.ts"],"names":[],"mappings":";;;AACA,uCAA6E;AAC7E,iDAA+C;AAE/C,MAAa,WAAY,SAAQ,4BAAkB;
|
|
1
|
+
{"version":3,"file":"TagsFeature.js","sourceRoot":"","sources":["../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/TagsFeature.ts"],"names":[],"mappings":";;;AACA,uCAA6E;AAC7E,iDAA+C;AAE/C,MAAa,WAAY,SAAQ,4BAAkB;IAoJlD,YAAY,MAAuB,EAAU,IAAa;QACzD,KAAK,CAAC,MAAM,CAAC,CAAC;QAD8B,SAAI,GAAJ,IAAI,CAAS;IAE1D,CAAC;IAEO,eAAe,CAAC,OAAoB;QAC3C,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC7D,IAAI,KAAK,CAAC,MAAM,KAAK,qBAAW,CAAC,SAAS,EAAE;YAC3C,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC;YACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;SACjD;QACD,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAC;QACnC,KAAK,CAAC,SAAS,GAAG,oBAAS,CAAC;IAC7B,CAAC;IAEO,YAAY,CAAC,OAAoB;QACxC,IAAI,IAAI,CAAC,IAAI,EAAE;YACd,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,CAClC,qBAAW,CAAC,mBAAmB,CAC/B,CAAC;YACF,IAAI,qBAAW,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,EAAE;gBAC7D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;aACjD;SACD;IACF,CAAC;IAEO,cAAc,CAAC,OAAoB;QAC1C,OAAO,CAAC,SAAS,EAAE,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AiB;IAC7B,WAAW,CAAC,gBAAgB;CAC5B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.disableCheckpoint = exports.createCheckpoint = void 0;
|
|
4
|
+
const createCheckpoint = ($id) => {
|
|
5
|
+
return {
|
|
6
|
+
$id,
|
|
7
|
+
$typeOfContent: "",
|
|
8
|
+
type: "ExecuteScript",
|
|
9
|
+
$title: "[DWNT] Adiciona checkpoint",
|
|
10
|
+
settings: {
|
|
11
|
+
function: "run",
|
|
12
|
+
source: 'function run(DWNT, stateId) {\n\ttry {\n\t\tDWNT = JSON.parse(DWNT || \'\');\n\t\tDWNT.checkpoints = Array.from(DWNT.checkpoints || [])\n\t\tconst checkpoint = {\n\t\t\t"state": stateId, \n\t\t\t"bot": DWNT.application["bot"], \n\t\t\t"service": DWNT.application["service"]\n\t\t};\n\t\tconst index = DWNT.checkpoints.findIndex(cp => {\n\t\t\treturn cp.state == checkpoint.state && cp.bot == checkpoint.bot;\n\t\t});\n\n\t\t// Loops\n\t\tif (index >= 0) {\n\t\t\tDWNT.checkpoints.splice(0, index);\n\t\t} else {\n\t\t\tDWNT.checkpoints.unshift(checkpoint);\n\t\t}\n\n\t\tDWNT.hasCheckpoints = DWNT.checkpoints.length > 0 || undefined;\n\t\t\n\t} catch(err) {\n DWNT = { err: String(err) };\n }\n\treturn JSON.stringify(DWNT);\n}',
|
|
13
|
+
inputVariables: ["DWNT", "state.id"],
|
|
14
|
+
outputVariable: "DWNT",
|
|
15
|
+
LocalTimeZoneEnabled: false,
|
|
16
|
+
},
|
|
17
|
+
conditions: [],
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
exports.createCheckpoint = createCheckpoint;
|
|
21
|
+
const disableCheckpoint = ($id) => {
|
|
22
|
+
return {
|
|
23
|
+
$id,
|
|
24
|
+
$typeOfContent: "",
|
|
25
|
+
type: "ExecuteScript",
|
|
26
|
+
$title: "[DWNT] Desabilita checkpoints nesse bloco",
|
|
27
|
+
settings: {
|
|
28
|
+
function: "run",
|
|
29
|
+
source: "function run(DWNT, stateId) {\n\ttry {\n\t\tDWNT = JSON.parse(DWNT || '');\n\t\tDWNT.disableCheckpoints = true;\n\t} catch(err) {\n DWNT = { err: String(err) };\n }\n\treturn JSON.stringify(DWNT);\n}",
|
|
30
|
+
inputVariables: ["DWNT"],
|
|
31
|
+
outputVariable: "DWNT",
|
|
32
|
+
LocalTimeZoneEnabled: false,
|
|
33
|
+
},
|
|
34
|
+
conditions: [],
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
exports.disableCheckpoint = disableCheckpoint;
|
|
38
|
+
//# sourceMappingURL=checkpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoints.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/checkpoints.ts"],"names":[],"mappings":";;;AAEO,MAAM,gBAAgB,GAAG,CAC/B,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,ouBAAouB;YAC5uB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;YACpC,cAAc,EAAE,MAAM;YACtB,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE,EAAE;KACd,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,gBAAgB,oBAiB3B;AAEK,MAAM,iBAAiB,GAAG,CAChC,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,2CAA2C;QACnD,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,mNAAmN;YAC3N,cAAc,EAAE,CAAC,MAAM,CAAC;YACxB,cAAc,EAAE,MAAM;YACtB,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE,EAAE;KACd,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,iBAAiB,qBAiB5B"}
|
|
@@ -6,10 +6,10 @@ const createCTWAScriptAction = ($id) => {
|
|
|
6
6
|
$id,
|
|
7
7
|
$typeOfContent: "",
|
|
8
8
|
type: "ExecuteScript",
|
|
9
|
-
$title: "Process 'CTWA'",
|
|
9
|
+
$title: "[DWNT] Process 'CTWA'",
|
|
10
10
|
settings: {
|
|
11
11
|
function: "run",
|
|
12
|
-
source: "function run(inputMessage) {\n let inputMessageFormatted = JSON.parse(inputMessage);\n
|
|
12
|
+
source: "function run(inputMessage) {\n let inputMessageFormatted = {};\n let metadata = {}\n try {\n inputMessageFormatted = JSON.parse(inputMessage || '{}');\n metadata = JSON.parse(inputMessageFormatted.content).metadata;\n } catch(err) {}\n \n if (metadata && metadata['#wa.referral.headline']) {\n return JSON.stringify({\n datetime: datetime__to_string(new Date()),\n headline: metadata['#wa.referral.headline'],\n body: metadata['#wa.referral.body'],\n source_type: metadata['#wa.referral.source_type'],\n source_id: metadata['#wa.referral.source_id'],\n source_url: metadata['#wa.referral.source_url'],\n media_id: metadata['#wa.referral.image.id']\n });\n }\n else {\n return null;\n }\n}\n\n/**\n * Format as human/excel readable date\n * \n * @param {Date} date Date to be converted.\n * @param {Number} tzOffset timeozone offset in hours. Default: -3\n * @returns Returns a date-time string in format: YYYY/MM/DD HH:MM:SS\n */\nfunction datetime__to_string(date, tzOffset){\n tzOffset = tzOffset || -3;\n const dateTz = new Date(new Date(date).getTime() + tzOffset * 60 * 60 * 1000) ;\n return dateTz.toISOString().replace(\"T\", \" \").split(\".\")[0];\n}",
|
|
13
13
|
inputVariables: ["input.message"],
|
|
14
14
|
outputVariable: "CTWA",
|
|
15
15
|
LocalTimeZoneEnabled: false,
|
|
@@ -23,7 +23,7 @@ const createCTWAEvent = ($id) => {
|
|
|
23
23
|
$id,
|
|
24
24
|
$typeOfContent: "",
|
|
25
25
|
type: "TrackEvent",
|
|
26
|
-
$title: "Track 'CTWA'",
|
|
26
|
+
$title: "[DWNT] Track 'CTWA'",
|
|
27
27
|
settings: {
|
|
28
28
|
extras: {
|
|
29
29
|
headline: "{{CTWA@headline}}",
|
|
@@ -36,7 +36,14 @@ const createCTWAEvent = ($id) => {
|
|
|
36
36
|
category: "CTWA",
|
|
37
37
|
action: "{{CTWA@datetime}} | {{CTWA@headline}} | {{CTWA@body}} | {{CTWA@source_type}} | {{CTWA@source_id}} | {{CTWA@source_url}} | {{CTWA@media_id}} | {{input.content}} |",
|
|
38
38
|
},
|
|
39
|
-
conditions: [
|
|
39
|
+
conditions: [
|
|
40
|
+
{
|
|
41
|
+
values: [],
|
|
42
|
+
source: "context",
|
|
43
|
+
comparison: "exists",
|
|
44
|
+
variable: "CTWA",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
40
47
|
};
|
|
41
48
|
};
|
|
42
49
|
exports.createCTWAEvent = createCTWAEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctwa.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/ctwa.ts"],"names":[],"mappings":";;;AAEO,MAAM,sBAAsB,GAAG,CACrC,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ctwa.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/ctwa.ts"],"names":[],"mappings":";;;AAEO,MAAM,sBAAsB,GAAG,CACrC,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,uBAAuB;QAC/B,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,6xCAA6xC;YACryC,cAAc,EAAE,CAAC,eAAe,CAAC;YACjC,cAAc,EAAE,MAAM;YACtB,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE,EAAE;KACd,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC;AAEK,MAAM,eAAe,GAAG,CAC9B,GAAW,EACsB,EAAE;IACnC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE;YACT,MAAM,EAAE;gBACP,QAAQ,EAAE,mBAAmB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,WAAW,EAAE,sBAAsB;gBACnC,SAAS,EAAE,oBAAoB;gBAC/B,UAAU,EAAE,qBAAqB;gBACjC,QAAQ,EAAE,mBAAmB;aAC7B;YACD,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,mKAAmK;SAC3K;QACD,UAAU,EAAE;YACX;gBACC,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,MAAM;aAChB;SACD;KACD,CAAC;AACH,CAAC,CAAC;AA7BW,QAAA,eAAe,mBA6B1B"}
|
|
@@ -6,10 +6,10 @@ const createEntrypointContactScriptAction = ($id) => {
|
|
|
6
6
|
$id,
|
|
7
7
|
$typeOfContent: "",
|
|
8
8
|
type: "ExecuteScript",
|
|
9
|
-
$title: "Process 'campaign'",
|
|
9
|
+
$title: "[DWNT] Process 'campaign'",
|
|
10
10
|
settings: {
|
|
11
11
|
function: "run",
|
|
12
|
-
source: '/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n * \n * @param {Object} obj The object to query.\n * @param {String} path The path of the property to get.\n * @param {*} _default The value returned for `undefined` resolved values.\n * @returns Returns the resolved value.\n */\nfunction object__get(obj, path, _default) {\n\tconst splitQuery = Array.isArray(path) ? path : path.replace(/(\\[(\\d)\\])/g, \'.$2\').replace(/^\\./, \'\').split(\'.\');\n\tif (!splitQuery.length || splitQuery[0] === undefined) return obj;\n\tconst key = splitQuery[0];\n\tif (typeof obj !== \'object\' || obj === null || !(key in obj) || obj[key] === undefined) return _default;\n\treturn object__get(obj[key], splitQuery.slice(1), _default);\n}\n\n/**\n * Format as human/excel readable date\n * \n * @param {Date} date Date to be converted.\n * @param {Number} tzOffset timeozone offset in hours. Default: -3\n * @returns Returns a date-time string in format: YYYY/MM/DD HH:MM:SS\n */\nfunction datetime__to_string(date, tzOffset){\n tzOffset = tzOffset || -3;\n const dateTz = new Date(new Date(date).getTime() + tzOffset * 60 * 60 * 1000) ;\n return dateTz.toISOString().replace("T", " ").split(".")[0];\n}\n\nconst DEFAULT_VALUE = "NOT_DEFINED";\n\nfunction run(contact, date) {\n\tlet id = DEFAULT_VALUE, phone = DEFAULT_VALUE, template = DEFAULT_VALUE, originator = DEFAULT_VALUE, name = DEFAULT_VALUE;\n\tconst datetime = datetime__to_string(date);\n\ttry {\n\t\tcontact = JSON.parse(contact);\n\t\tphone = object__get(contact, "identity", `${DEFAULT_VALUE}@`).split("@")[0];\n\t\tid = object__get(contact, "extras.campaignId", DEFAULT_VALUE);\n\t\ttemplate = object__get(contact, "extras.campaignMessageTemplate", DEFAULT_VALUE);\n\t\toriginator = object__get(contact, "extras.campaignOriginator", DEFAULT_VALUE);\n\t} catch(err) {}\n\treturn JSON.stringify({datetime, name, phone, id, template, originator});\n}',
|
|
12
|
+
source: '/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n * \n * @param {Object} obj The object to query.\n * @param {String} path The path of the property to get.\n * @param {*} _default The value returned for `undefined` resolved values.\n * @returns Returns the resolved value.\n */\nfunction object__get(obj, path, _default) {\n\tconst splitQuery = Array.isArray(path) ? path : path.replace(/(\\[(\\d)\\])/g, \'.$2\').replace(/^\\./, \'\').split(\'.\');\n\tif (!splitQuery.length || splitQuery[0] === undefined) return obj;\n\tconst key = splitQuery[0];\n\tif (typeof obj !== \'object\' || obj === null || !(key in obj) || obj[key] === undefined) return _default;\n\treturn object__get(obj[key], splitQuery.slice(1), _default);\n}\n\n/**\n * Format as human/excel readable date\n * \n * @param {Date} date Date to be converted.\n * @param {Number} tzOffset timeozone offset in hours. Default: -3\n * @returns Returns a date-time string in format: YYYY/MM/DD HH:MM:SS\n */\nfunction datetime__to_string(date, tzOffset){\n tzOffset = tzOffset || -3;\n const dateTz = new Date(new Date(date).getTime() + tzOffset * 60 * 60 * 1000) ;\n return dateTz.toISOString().replace("T", " ").split(".")[0];\n}\n\nconst DEFAULT_VALUE = "NOT_DEFINED";\n\nfunction run(contact, date) {\n\tlet id = DEFAULT_VALUE, phone = DEFAULT_VALUE, template = DEFAULT_VALUE, originator = DEFAULT_VALUE, name = DEFAULT_VALUE;\n\tconst datetime = datetime__to_string(date);\n\ttry {\n\t\tcontact = JSON.parse(contact);\n\t\tphone = object__get(contact, "identity", `${DEFAULT_VALUE}@`).split("@")[0];\n\t\tid = object__get(contact, "extras.campaignId", DEFAULT_VALUE);\n\t\ttemplate = object__get(contact, "extras.campaignMessageTemplate", DEFAULT_VALUE);\n\t\toriginator = object__get(contact, "extras.campaignOriginator", DEFAULT_VALUE);\n\t} catch(err) {}\n\n\tif (id == DEFAULT_VALUE) {\n\t\treturn null;\n\t} {\n\t\treturn JSON.stringify({datetime, name, phone, id, template, originator});\n\t}\n}',
|
|
13
13
|
inputVariables: ["contact.serialized", "calendar.datetime"],
|
|
14
14
|
outputVariable: "campaign",
|
|
15
15
|
LocalTimeZoneEnabled: false,
|
|
@@ -23,7 +23,7 @@ const createEntrypointCommandAction = ($id) => {
|
|
|
23
23
|
$id,
|
|
24
24
|
$typeOfContent: "",
|
|
25
25
|
type: "ProcessCommand",
|
|
26
|
-
$title: "Process 'campaignAudienceResponse'",
|
|
26
|
+
$title: "[DWNT] Process 'campaignAudienceResponse'",
|
|
27
27
|
settings: {
|
|
28
28
|
to: "postmaster@activecampaign.msging.net",
|
|
29
29
|
method: "get",
|
|
@@ -34,15 +34,9 @@ const createEntrypointCommandAction = ($id) => {
|
|
|
34
34
|
{
|
|
35
35
|
values: [],
|
|
36
36
|
source: "context",
|
|
37
|
-
variable: "campaign
|
|
37
|
+
variable: "campaign",
|
|
38
38
|
comparison: "exists",
|
|
39
39
|
},
|
|
40
|
-
{
|
|
41
|
-
values: ["NOT_DEFINED"],
|
|
42
|
-
source: "context",
|
|
43
|
-
comparison: "notEquals",
|
|
44
|
-
variable: "campaign@id",
|
|
45
|
-
},
|
|
46
40
|
],
|
|
47
41
|
};
|
|
48
42
|
};
|
|
@@ -52,7 +46,7 @@ const createEntrypointCompaignScriptAction = ($id) => {
|
|
|
52
46
|
$id,
|
|
53
47
|
$typeOfContent: "",
|
|
54
48
|
type: "ExecuteScript",
|
|
55
|
-
$title: "Process (extend) 'campaign'",
|
|
49
|
+
$title: "[DWNT] Process (extend) 'campaign'",
|
|
56
50
|
settings: {
|
|
57
51
|
function: "run",
|
|
58
52
|
source: '/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n * \n * @param {Object} obj The object to query.\n * @param {String} path The path of the property to get.\n * @param {*} _default The value returned for `undefined` resolved values.\n * @returns Returns the resolved value.\n */\nfunction object__get(obj, path, _default) {\n\tfunction element__accessor(element, key) {\n\t\tkeys = key.split(".");\n\t\tkey = keys.shift();\n\t\tconst isObj = typeof element === \'object\' && !Array.isArray(element) && element !== null;\n\t\tconst value = isObj ? element[key] : undefined;\n\t\treturn keys.length > 0 ? element__accessor(value, keys.join(".")) : value;\n\t}\n\tconst result = obj == null ? undefined : element__accessor(obj, path);\n\treturn result === undefined ? _default : result;\n}\n\nconst DEFAULT_VALUE = "NOT_DEFINED";\n\nfunction run(campaign, campaignAudienceResponse) {\n\ttry {\n\t\tcampaign = JSON.parse(campaign);\n\t\tcampaignAudienceResponse = JSON.parse(campaignAudienceResponse);\n\t\tcampaign.name = object__get(campaignAudienceResponse, "resource.name");\n\t} catch(err) {\n\n\t}\n\treturn JSON.stringify(campaign);\n}',
|
|
@@ -60,7 +54,14 @@ const createEntrypointCompaignScriptAction = ($id) => {
|
|
|
60
54
|
outputVariable: "campaign",
|
|
61
55
|
LocalTimeZoneEnabled: false,
|
|
62
56
|
},
|
|
63
|
-
conditions: [
|
|
57
|
+
conditions: [
|
|
58
|
+
{
|
|
59
|
+
values: [],
|
|
60
|
+
source: "context",
|
|
61
|
+
comparison: "exists",
|
|
62
|
+
variable: "campaign",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
64
65
|
};
|
|
65
66
|
};
|
|
66
67
|
exports.createEntrypointCompaignScriptAction = createEntrypointCompaignScriptAction;
|
|
@@ -69,7 +70,7 @@ const createEntrypointEvent = ($id) => {
|
|
|
69
70
|
$id,
|
|
70
71
|
$typeOfContent: "",
|
|
71
72
|
type: "TrackEvent",
|
|
72
|
-
$title: "Track 'campaign'",
|
|
73
|
+
$title: "[DWNT] Track 'campaign'",
|
|
73
74
|
settings: {
|
|
74
75
|
extras: {
|
|
75
76
|
id: "{{campaign@id}}",
|
|
@@ -80,7 +81,14 @@ const createEntrypointEvent = ($id) => {
|
|
|
80
81
|
category: "CAMPAIGN",
|
|
81
82
|
action: "{{campaign@datetime}} | {{campaign@name}} |{{campaign@id}} | {{campaign@template}} | {{campaign@originator}} | {{campaign@phone}} | {{input.content}} |",
|
|
82
83
|
},
|
|
83
|
-
conditions: [
|
|
84
|
+
conditions: [
|
|
85
|
+
{
|
|
86
|
+
values: [],
|
|
87
|
+
source: "context",
|
|
88
|
+
comparison: "exists",
|
|
89
|
+
variable: "campaign",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
84
92
|
};
|
|
85
93
|
};
|
|
86
94
|
exports.createEntrypointEvent = createEntrypointEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/entrypoint.ts"],"names":[],"mappings":";;;AAEO,MAAM,mCAAmC,GAAG,CAClD,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/entrypoint.ts"],"names":[],"mappings":";;;AAEO,MAAM,mCAAmC,GAAG,CAClD,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,2BAA2B;QACnC,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,+gEAA+gE;YACvhE,cAAc,EAAE,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;YAC3D,cAAc,EAAE,UAAU;YAC1B,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE,EAAE;KACd,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,mCAAmC,uCAiB9C;AAEK,MAAM,6BAA6B,GAAG,CAC5C,GAAW,EAC0B,EAAE;IACvC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,2CAA2C;QACnD,QAAQ,EAAE;YACT,EAAE,EAAE,sCAAsC;YAC1C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAA4B;YACjC,QAAQ,EAAE,0BAA0B;SACpC;QACD,UAAU,EAAE;YACX;gBACC,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,QAAQ,EAAE,UAAU;gBACpB,UAAU,EAAE,QAAQ;aACpB;SACD;KACD,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,6BAA6B,iCAuBxC;AAEK,MAAM,oCAAoC,GAAG,CACnD,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,oCAAoC;QAC5C,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,ysCAAysC;YACjtC,cAAc,EAAE,CAAC,UAAU,EAAE,0BAA0B,CAAC;YACxD,cAAc,EAAE,UAAU;YAC1B,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACX;gBACC,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,UAAU;aACpB;SACD;KACD,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,oCAAoC,wCAwB/C;AAEK,MAAM,qBAAqB,GAAG,CACpC,GAAW,EACsB,EAAE;IACnC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,yBAAyB;QACjC,QAAQ,EAAE;YACT,MAAM,EAAE;gBACP,EAAE,EAAE,iBAAiB;gBACrB,IAAI,EAAE,mBAAmB;gBACzB,UAAU,EAAE,yBAAyB;gBACrC,QAAQ,EAAE,uBAAuB;aACjC;YACD,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,yJAAyJ;SACjK;QACD,UAAU,EAAE;YACX;gBACC,MAAM,EAAE,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,UAAU;aACpB;SACD;KACD,CAAC;AACH,CAAC,CAAC;AA3BW,QAAA,qBAAqB,yBA2BhC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Builder } from "@dawntech/dwntbots-models";
|
|
2
|
+
export declare const createErrorScriptAction: ($id: string) => Builder.ExecuteScriptCustomAction;
|
|
2
3
|
export declare const createErrorProcessScriptAction: ($id: string) => Builder.ExecuteScriptCustomAction;
|
|
3
4
|
export declare const createErrorSDKScriptAction: ($id: string) => Builder.ExecuteScriptCustomAction;
|
|
4
5
|
export declare const trackErrorAction: ($id: string) => Builder.TrackEventCustomAction;
|
|
6
|
+
export declare const trackScriptErrorAction: ($id: string) => Builder.TrackEventCustomAction;
|
|
5
7
|
export declare const clearErrorTypeAction: ($id: string) => Builder.ProcessCommandCustomAction;
|
|
8
|
+
export declare const clearErrorMessageAction: ($id: string) => Builder.ProcessCommandCustomAction;
|
|
9
|
+
export declare const createVariableAction: ($id: string) => Builder.SetVariableCustomAction;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clearErrorTypeAction = exports.trackErrorAction = exports.createErrorSDKScriptAction = exports.createErrorProcessScriptAction = void 0;
|
|
4
|
-
const
|
|
3
|
+
exports.createVariableAction = exports.clearErrorMessageAction = exports.clearErrorTypeAction = exports.trackScriptErrorAction = exports.trackErrorAction = exports.createErrorSDKScriptAction = exports.createErrorProcessScriptAction = exports.createErrorScriptAction = void 0;
|
|
4
|
+
const createErrorScriptAction = ($id) => {
|
|
5
5
|
return {
|
|
6
6
|
$id,
|
|
7
7
|
$typeOfContent: "",
|
|
8
8
|
type: "ExecuteScript",
|
|
9
|
-
$title: "
|
|
9
|
+
$title: "[DWNT] Cria error",
|
|
10
10
|
settings: {
|
|
11
11
|
function: "run",
|
|
12
|
-
source: '
|
|
12
|
+
source: '\nfunction run(DWNT, errorType, errorMessage, stateId, stateName, inputContent) {\n\tlet error = {};\n\ttry {\n\t\tDWNT = JSON.parse(DWNT || "");\n\t\tlet errorDescription = "Not defined";\n\t\tif (String(errorType).startsWith("SCRIPT_ERROR")) {\n\t\t\terrorDescription = errorType.replace("SCRIPT_ERROR ", "");\n\t\t\terrorType = "SCRIPT_ERROR";\n\t\t}\n\t\terror["type"] = errorType || "UNEXPECTED_INPUT";\n\t\terror["message"] = errorMessage || "Desculpe, não consegui entender!";\n\t\terror["description"] = errorDescription;\n\t\terror["state"] = {\n\t\t\t"id": stateId, \n\t\t\t"name": stateName, \n\t\t\t"bot": DWNT.application["bot"],\n\t\t\t"service": DWNT.application["service"]\n\t\t};\n\t\terror["return"] = {"state": stateId, "bot": null, "service": DWNT.application["service"]};\n\t\tconst recurrence = {"state": 1, "type": 1};\n\t\tif (DWNT.error && DWNT.error["state"] && DWNT.error["type"]) {\n\t\t\tif (DWNT.error["state"]["id"] == error["state"]["id"]) {\n\t\t\t\trecurrence["state"] = DWNT.error["recurrence"]["state"] + 1;\n\t\t\t}\n\t\t\tif (DWNT.error["type"] == error["type"]) {\n\t\t\t\trecurrence["type"] = DWNT.error["recurrence"]["type"] + 1;\n\t\t\t}\n\t\t}\n\t\terror["recurrence"] = recurrence;\n\n\t\t// Checkpoints\n\t\tif (error["type"] == "GO_BACK") {\n\t\t\terror["return"] = get_last_checkpoint(DWNT, error);\n\t\t\tif (DWNT["application"]["bot"] == error["return"]["bot"]) {\n\t\t\t\terror["return"]["bot"] = null;\n\t\t\t}\n\t\t\terror["message"] = null;\n\t\t}\n\n\t\tif (inputContent.startsWith("#goto")) {\n\t\t\tconst id = inputContent.replace("#goto ", "");\n\t\t\terror["type"] = "GO_TO";\n\t\t\terror["message"] = null;\n\t\t\terror["return"]["state"] = id;\n\t\t}\n\t\t\n\t} catch(err) {\n\t\terror = {\n\t\t\t"type": "UNEXPECTED_INPUT",\n\t\t\t"message": "Desculpe, não consegui compreender.",\n\t\t\t"return": {"state": stateId, "bot": null},\n\t\t\t"err": String(err)\n\t\t};\n\t}\n\treturn JSON.stringify(error);\n}\n\n\nfunction get_last_checkpoint(DWNT, error) {\n\tlet return_info = error["return"];\n\tif (Array.isArray(DWNT.checkpoints) && DWNT.checkpoints.length > 0) {\n\t\treturn_info = DWNT.checkpoints[0];\n\t}\n\treturn return_info;\n}\n',
|
|
13
13
|
inputVariables: [
|
|
14
14
|
"DWNT",
|
|
15
15
|
"errorType",
|
|
16
|
+
"errorMessage",
|
|
16
17
|
"state.previous.id",
|
|
17
18
|
"state.previous.name",
|
|
19
|
+
"input.content",
|
|
18
20
|
],
|
|
19
21
|
outputVariable: "error",
|
|
20
22
|
LocalTimeZoneEnabled: false,
|
|
@@ -22,16 +24,33 @@ const createErrorProcessScriptAction = ($id) => {
|
|
|
22
24
|
conditions: [],
|
|
23
25
|
};
|
|
24
26
|
};
|
|
27
|
+
exports.createErrorScriptAction = createErrorScriptAction;
|
|
28
|
+
const createErrorProcessScriptAction = ($id) => {
|
|
29
|
+
return {
|
|
30
|
+
$id,
|
|
31
|
+
$typeOfContent: "",
|
|
32
|
+
type: "ExecuteScript",
|
|
33
|
+
$title: "<ALTERAR> [DWNT] Processa error",
|
|
34
|
+
settings: {
|
|
35
|
+
function: "run",
|
|
36
|
+
source: '/**\n * Decodifica o erro registrado em informações de:\n * - Mensagem que será mostrada\n * - Necessidade de parada do fluxo\n * - Id de retorno caso em caso de reentrada\n * \n * @param {{type: string, message: string, input: {content: string, type: string, group: string}, state: {id: string, name: string}, recurrence: {state: number, type: number}, return: {state: string, bot: string}}} error Error pré-preenchido.\n * \n * @returns {{type: string, message: string, input: {content: string, type: string, group: string}, state: {id: string, name: string}, recurrence: {state: number, type: number}, return: {state: string, bot: string}}} Erro final\n */\nfunction process_error(error) {\n\n\tswitch(error.type) {\n\t\tcase "INACTIVITY":\n\t\t\terror["message"] = "Vejo que você não está mais por aqui e por isso vou encerrar o atendimento. Se precisar de mim é só dar um \'Oi\' 😉.\\n\\nAté mais 👋";\n\t\t\terror["return"]["state"] = null;\n\t\t\tbreak;\n\t\tcase "API":\n\t\t\terror["message"] = "Desculpe, aconteceu alguma coisa em nosso sistema. <b>Tente novamente em alguns minutos.</b>";\n\t\t\terror["return"]["state"] = null;\n\t\t\tbreak;\n\t\tcase "SCRIPT_ERROR":\n\t\t\terror["message"] = "Desculpe, algo inesperado aconteceu. <b>Tente novamente em alguns minutos.</b>";\n\t\t\terror["return"]["state"] = null;\n\t\t\tbreak;\n\t}\n\treturn error;\n}\n\nfunction run(error, stateId) {\n\ttry {\n\t\terror = JSON.parse(error || \'\');\n\t\terror = process_error(error);\n\t} catch(err) {\n\t\terror = {\n\t\t\t"type": "UNEXPECTED_INPUT",\n\t\t\t"message": "Desculpe, não consegui compreender.",\n\t\t\t"return": {"state": stateId, "bot": null},\n\t\t\t"err": String(err)\n\t\t};\n\t}\n\treturn JSON.stringify(error);\n}\n',
|
|
37
|
+
inputVariables: ["error", "state.previous.id"],
|
|
38
|
+
outputVariable: "error",
|
|
39
|
+
LocalTimeZoneEnabled: false,
|
|
40
|
+
},
|
|
41
|
+
conditions: [],
|
|
42
|
+
};
|
|
43
|
+
};
|
|
25
44
|
exports.createErrorProcessScriptAction = createErrorProcessScriptAction;
|
|
26
45
|
const createErrorSDKScriptAction = ($id) => {
|
|
27
46
|
return {
|
|
28
47
|
$id,
|
|
29
48
|
$typeOfContent: "",
|
|
30
49
|
type: "ExecuteScript",
|
|
31
|
-
$title: "Atualiza SDK (fallback)",
|
|
50
|
+
$title: "[DWNT] Atualiza SDK (fallback)",
|
|
32
51
|
settings: {
|
|
33
52
|
function: "run",
|
|
34
|
-
source:
|
|
53
|
+
source: '\nfunction run(DWNT, error) {\n\ttry {\n\t\tDWNT = JSON.parse(DWNT);\n\t\terror = JSON.parse(error);\n\t\tDWNT.error = error;\n\t\tDWNT.fromError = true;\n\t\t// checkpoint\n\t\tif (error["type"] == "GO_BACK") {\n\t\t\tDWNT.checkpoints.shift();\n\t\t\tDWNT.hasCheckpoints = DWNT.checkpoints.length > 0 || undefined;\n\t\t}\n\t} catch(err) {\n\t\tDWNT = {err: String(err)};\n\t}\n\treturn JSON.stringify(DWNT);\n}\n\n',
|
|
35
54
|
inputVariables: ["DWNT", "error"],
|
|
36
55
|
outputVariable: "DWNT",
|
|
37
56
|
LocalTimeZoneEnabled: false,
|
|
@@ -45,35 +64,108 @@ const trackErrorAction = ($id) => {
|
|
|
45
64
|
$id,
|
|
46
65
|
$typeOfContent: "",
|
|
47
66
|
type: "TrackEvent",
|
|
48
|
-
$title: "Registra Error",
|
|
67
|
+
$title: "[DWNT] Registra Error",
|
|
49
68
|
settings: {
|
|
50
69
|
extras: {
|
|
51
70
|
type: "{{error@type}}",
|
|
52
71
|
bot: "{{error@bot}}",
|
|
53
72
|
stateName: "{{error@state.name}}",
|
|
54
73
|
stateId: "{{error@state.id}}",
|
|
74
|
+
journey: "{{DWNT@journey}}",
|
|
55
75
|
},
|
|
56
|
-
category: "ERROR",
|
|
57
|
-
action: "{{DWNT@datetime}} | {{contact.identity}} | {{error@type}} | {{
|
|
76
|
+
category: "DWNT-ERROR",
|
|
77
|
+
action: "{{DWNT@datetime}} | {{contact.identity}} | {{error@type}} | {{DWNT@bot.id}} | {{error@state.name}} | {{input.content}}",
|
|
58
78
|
},
|
|
59
79
|
conditions: [],
|
|
60
80
|
};
|
|
61
81
|
};
|
|
62
82
|
exports.trackErrorAction = trackErrorAction;
|
|
83
|
+
const trackScriptErrorAction = ($id) => {
|
|
84
|
+
return {
|
|
85
|
+
$id,
|
|
86
|
+
$typeOfContent: "",
|
|
87
|
+
type: "TrackEvent",
|
|
88
|
+
$title: "[DWNT] Registra Script-Error",
|
|
89
|
+
settings: {
|
|
90
|
+
extras: {
|
|
91
|
+
type: "{{error@type}}",
|
|
92
|
+
bot: "{{error@bot}}",
|
|
93
|
+
stateName: "{{error@state.name}}",
|
|
94
|
+
stateId: "{{error@state.id}}",
|
|
95
|
+
journey: "{{DWNT@journey}}",
|
|
96
|
+
},
|
|
97
|
+
category: "DWNT-SCRIPT-ERROR",
|
|
98
|
+
action: "{{DWNT@datetime}} | {{contact.identity}} | {{error@description}} | {{DWNT@bot.id}} | {{error@state.name}}",
|
|
99
|
+
},
|
|
100
|
+
conditions: [
|
|
101
|
+
{
|
|
102
|
+
values: ["SCRIPT_ERROR"],
|
|
103
|
+
source: "context",
|
|
104
|
+
comparison: "equals",
|
|
105
|
+
variable: "error@type",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exports.trackScriptErrorAction = trackScriptErrorAction;
|
|
63
111
|
const clearErrorTypeAction = ($id) => {
|
|
64
112
|
return {
|
|
65
113
|
$id,
|
|
66
114
|
$typeOfContent: "",
|
|
67
115
|
type: "ProcessCommand",
|
|
68
|
-
$title: "Deleta 'ErrorType'",
|
|
116
|
+
$title: "[DWNT] Deleta 'ErrorType'",
|
|
69
117
|
settings: {
|
|
70
118
|
to: "postmaster@msging.net",
|
|
71
119
|
method: "delete",
|
|
72
120
|
uri: "/contexts/{{contact.identity}}/errorType",
|
|
73
121
|
variable: "deleteErrorTypeCmdResp",
|
|
74
122
|
},
|
|
75
|
-
conditions: [
|
|
123
|
+
conditions: [
|
|
124
|
+
{
|
|
125
|
+
values: [],
|
|
126
|
+
source: "context",
|
|
127
|
+
comparison: "exists",
|
|
128
|
+
variable: "errorType",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
76
131
|
};
|
|
77
132
|
};
|
|
78
133
|
exports.clearErrorTypeAction = clearErrorTypeAction;
|
|
134
|
+
const clearErrorMessageAction = ($id) => {
|
|
135
|
+
return {
|
|
136
|
+
$id,
|
|
137
|
+
$typeOfContent: "",
|
|
138
|
+
type: "ProcessCommand",
|
|
139
|
+
$title: "[DWNT] Deleta 'ErrorMessage'",
|
|
140
|
+
settings: {
|
|
141
|
+
to: "postmaster@msging.net",
|
|
142
|
+
method: "delete",
|
|
143
|
+
uri: "/contexts/{{contact.identity}}/errorMessage",
|
|
144
|
+
variable: "deleteErrorMessageCmdResp",
|
|
145
|
+
},
|
|
146
|
+
conditions: [
|
|
147
|
+
{
|
|
148
|
+
values: [],
|
|
149
|
+
source: "context",
|
|
150
|
+
comparison: "exists",
|
|
151
|
+
variable: "errorMessage",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
exports.clearErrorMessageAction = clearErrorMessageAction;
|
|
157
|
+
const createVariableAction = ($id) => {
|
|
158
|
+
return {
|
|
159
|
+
$id,
|
|
160
|
+
$typeOfContent: "",
|
|
161
|
+
type: "SetVariable",
|
|
162
|
+
$title: "[DWNT] Seta fromError",
|
|
163
|
+
settings: {
|
|
164
|
+
variable: "fromError",
|
|
165
|
+
value: "true",
|
|
166
|
+
},
|
|
167
|
+
conditions: [],
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
exports.createVariableAction = createVariableAction;
|
|
79
171
|
//# sourceMappingURL=fallback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/fallback.ts"],"names":[],"mappings":";;;AAEO,MAAM,
|
|
1
|
+
{"version":3,"file":"fallback.js","sourceRoot":"","sources":["../../../../../../../../../libs/services/src/lib/blip/BlipBuilder/features/actions/fallback.ts"],"names":[],"mappings":";;;AAEO,MAAM,uBAAuB,GAAG,CACtC,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,mBAAmB;QAC3B,QAAQ,EAAE;YACT,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,ypEAAypE;YACjqE,cAAc,EAAE;gBACf,MAAM;gBACN,WAAW;gBACX,cAAc;gBACd,mBAAmB;gBACnB,qBAAqB;gBACrB,eAAe;aACf;YACD,cAAc,EAAE,OAAO;YACvB,oBAAoB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE,EAAE;KACd,CAAC;AACH,CAAC,CAAC;AAxBW,QAAA,uBAAuB,2BAwBlC;AAEK,MAAM,8BAA8B,GAAG,CAC7C,GAAW,EACyB,EAAE;IACtC,OAAO;QACN,GAAG;QACH,cAAc,EAAE,EAAE;QAClB,IAAI,EAAE,eAAe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