UNPKG

@onereach/step-voice

Version:
17 lines (16 loc) 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const voice_1 = tslib_1.__importDefault(require("./voice")); class VoicePause extends voice_1.default { get useQueue() { return false; } async runStep() { const call = await this.fetchData(); await this.pause(); await this.sendCommands(call, [{ name: 'cancel' }]); this.exitStep('next'); } } exports.default = VoicePause;