@onereach/step-voice 6.1.26-VOIC1449.11 → 6.1.26-VOIC1449.12
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/dst/voice.js +4 -2
- package/package.json +1 -1
package/dst/voice.js
CHANGED
|
@@ -52,7 +52,7 @@ class VoiceStep extends step_1.default {
|
|
|
52
52
|
async sendCommands({ id, type, callback }, commands) {
|
|
53
53
|
if (lodash_1.default.isEmpty(commands))
|
|
54
54
|
return;
|
|
55
|
-
const
|
|
55
|
+
const event = {
|
|
56
56
|
target: this.helpers.providersAccountId,
|
|
57
57
|
name: `out/voice/${type}`,
|
|
58
58
|
params: {
|
|
@@ -67,7 +67,9 @@ class VoiceStep extends step_1.default {
|
|
|
67
67
|
...this.session.getSessionRef(),
|
|
68
68
|
// beginningSessionId: 'd75d278c-0846-48e7-8615-46c8d75d3ade'
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
};
|
|
71
|
+
console.log('sendCommands', { id, type, event });
|
|
72
|
+
const result = await this.thread.eventManager.emit(event, {
|
|
71
73
|
target: callback,
|
|
72
74
|
invocationType: 'async',
|
|
73
75
|
timeout: 5000
|