forked from Cognigy/Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.ts
61 lines (60 loc) · 1.86 KB
/
module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { createExtension } from '@cognigy/extension-tools/build';
import { terminateCallNode } from './nodes/terminateCall';
import { forwardCallNode } from './nodes/forwardCall';
import { bridgeCallNode } from './nodes/bridgeCall';
import { playNode } from './nodes/play';
import { stopPlayNode } from "./nodes/stopPlay";
import { recordingStartNode } from './nodes/recordingStart';
import { recordingStopNode } from './nodes/recordingStop';
import { sendDataNode } from './nodes/data';
import { promptForNumberNode } from './nodes/promptForNumber';
import { promptForMultipleChoice } from './nodes/multipleChoicePrompt';
import { speakNode } from './nodes/speak';
import { inactivityTimerNode } from './nodes/inactivityTimer';
import { setSpeechtoTextServiceNode } from './nodes/setSpeechToTextService';
import { aggregateInputNode } from "./nodes/aggregateInput";
import {
checkOutboundResultNode,
onOutboundDefault,
onOutboundFailure,
onOutboundSuccess,
onOutboundTermination,
} from './nodes/checkOutboundResult';
import {
checkReferResultNode,
onReferDefault,
onReferFailure,
onReferSuccess
} from './nodes/checkReferResult';
import { referCallNode } from './nodes/referCall';
export default createExtension({
nodes: [
promptForNumberNode,
promptForMultipleChoice,
recordingStartNode,
recordingStopNode,
playNode,
stopPlayNode,
sendDataNode,
forwardCallNode,
bridgeCallNode,
referCallNode,
terminateCallNode,
speakNode,
checkOutboundResultNode,
onOutboundSuccess, // child
onOutboundFailure, // child
onOutboundTermination, // child
onOutboundDefault, // child
checkReferResultNode,
onReferSuccess, // child
onReferFailure, // child
onReferDefault, // child
setSpeechtoTextServiceNode,
inactivityTimerNode,
aggregateInputNode,
],
options: {
label: 'VIER Voice',
},
});