chatbot-nc 2.0.83 → 2.0.85
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/dist/cjs/aws/index.d.ts +179 -0
- package/dist/cjs/aws/index.js +52 -0
- package/dist/cjs/aws/index.js.map +1 -0
- package/dist/cjs/aws/services/AESEncryptionUsingKMS.d.ts +4 -0
- package/dist/cjs/aws/services/AESEncryptionUsingKMS.js +101 -0
- package/dist/cjs/aws/services/AESEncryptionUsingKMS.js.map +1 -0
- package/dist/cjs/aws/services/AWSChimeMeeting.d.ts +8 -0
- package/dist/cjs/aws/services/AWSChimeMeeting.js +99 -0
- package/dist/cjs/aws/services/AWSChimeMeeting.js.map +1 -0
- package/dist/cjs/aws/services/AWSCodepipeline.d.ts +16 -0
- package/dist/cjs/aws/services/AWSCodepipeline.js +43 -0
- package/dist/cjs/aws/services/AWSCodepipeline.js.map +1 -0
- package/dist/cjs/aws/services/AWSComprehend.d.ts +3 -0
- package/dist/cjs/aws/services/AWSComprehend.js +30 -0
- package/dist/cjs/aws/services/AWSComprehend.js.map +1 -0
- package/dist/cjs/aws/services/AWSConnect.d.ts +296 -0
- package/dist/cjs/aws/services/AWSConnect.js +865 -0
- package/dist/cjs/aws/services/AWSConnect.js.map +1 -0
- package/dist/cjs/aws/services/AWSConnectCases.d.ts +7 -0
- package/dist/cjs/aws/services/AWSConnectCases.js +81 -0
- package/dist/cjs/aws/services/AWSConnectCases.js.map +1 -0
- package/dist/cjs/aws/services/AWSConnectParticipant.d.ts +7 -0
- package/dist/cjs/aws/services/AWSConnectParticipant.js +87 -0
- package/dist/cjs/aws/services/AWSConnectParticipant.js.map +1 -0
- package/dist/cjs/aws/services/AWSCustomerProfiles.d.ts +5 -0
- package/dist/cjs/aws/services/AWSCustomerProfiles.js +45 -0
- package/dist/cjs/aws/services/AWSCustomerProfiles.js.map +1 -0
- package/dist/cjs/aws/services/AWSDynamoDb.d.ts +6 -0
- package/dist/cjs/aws/services/AWSDynamoDb.js +77 -0
- package/dist/cjs/aws/services/AWSDynamoDb.js.map +1 -0
- package/dist/cjs/aws/services/AWSGateway.d.ts +5 -0
- package/dist/cjs/aws/services/AWSGateway.js +45 -0
- package/dist/cjs/aws/services/AWSGateway.js.map +1 -0
- package/dist/cjs/aws/services/AWSGatewayManagement.d.ts +5 -0
- package/dist/cjs/aws/services/AWSGatewayManagement.js +49 -0
- package/dist/cjs/aws/services/AWSGatewayManagement.js.map +1 -0
- package/dist/cjs/aws/services/AWSLambda.d.ts +3 -0
- package/dist/cjs/aws/services/AWSLambda.js +25 -0
- package/dist/cjs/aws/services/AWSLambda.js.map +1 -0
- package/dist/cjs/aws/services/AWSLexModel.d.ts +24 -0
- package/dist/cjs/aws/services/AWSLexModel.js +387 -0
- package/dist/cjs/aws/services/AWSLexModel.js.map +1 -0
- package/dist/cjs/aws/services/AWSLexRuntime.d.ts +5 -0
- package/dist/cjs/aws/services/AWSLexRuntime.js +47 -0
- package/dist/cjs/aws/services/AWSLexRuntime.js.map +1 -0
- package/dist/cjs/aws/services/AWSPinpoint.d.ts +6 -0
- package/dist/cjs/aws/services/AWSPinpoint.js +65 -0
- package/dist/cjs/aws/services/AWSPinpoint.js.map +1 -0
- package/dist/cjs/aws/services/AWSPinpointSMSVoice.d.ts +9 -0
- package/dist/cjs/aws/services/AWSPinpointSMSVoice.js +111 -0
- package/dist/cjs/aws/services/AWSPinpointSMSVoice.js.map +1 -0
- package/dist/cjs/aws/services/AWSQConnect.d.ts +9 -0
- package/dist/cjs/aws/services/AWSQConnect.js +118 -0
- package/dist/cjs/aws/services/AWSQConnect.js.map +1 -0
- package/dist/cjs/aws/services/AWSS3.d.ts +11 -0
- package/dist/cjs/aws/services/AWSS3.js +186 -0
- package/dist/cjs/aws/services/AWSS3.js.map +1 -0
- package/dist/cjs/aws/services/AWSSES.d.ts +4 -0
- package/dist/cjs/aws/services/AWSSES.js +23 -0
- package/dist/cjs/aws/services/AWSSES.js.map +1 -0
- package/dist/cjs/aws/services/AWSSNS.d.ts +12 -0
- package/dist/cjs/aws/services/AWSSNS.js +73 -0
- package/dist/cjs/aws/services/AWSSNS.js.map +1 -0
- package/dist/cjs/aws/services/AWSSSM.d.ts +4 -0
- package/dist/cjs/aws/services/AWSSSM.js +82 -0
- package/dist/cjs/aws/services/AWSSSM.js.map +1 -0
- package/dist/cjs/aws/services/AWSSTS.d.ts +4 -0
- package/dist/cjs/aws/services/AWSSTS.js +28 -0
- package/dist/cjs/aws/services/AWSSTS.js.map +1 -0
- package/dist/cjs/aws/services/AWSTranslate.d.ts +4 -0
- package/dist/cjs/aws/services/AWSTranslate.js +27 -0
- package/dist/cjs/aws/services/AWSTranslate.js.map +1 -0
- package/dist/cjs/communication/communicationService.d.ts +20 -0
- package/dist/cjs/communication/communicationService.js +283 -0
- package/dist/cjs/communication/communicationService.js.map +1 -0
- package/dist/cjs/communication/index.d.ts +49 -0
- package/dist/cjs/communication/index.js +219 -0
- package/dist/cjs/communication/index.js.map +1 -0
- package/dist/cjs/config/SSMParameters.d.ts +26 -0
- package/dist/cjs/config/SSMParameters.js +34 -0
- package/dist/cjs/config/SSMParameters.js.map +1 -0
- package/dist/cjs/enum/index.d.ts +236 -0
- package/dist/cjs/enum/index.js +289 -0
- package/dist/cjs/enum/index.js.map +1 -0
- package/dist/cjs/hashing/idObfuscation.d.ts +20 -0
- package/dist/cjs/hashing/idObfuscation.js +56 -0
- package/dist/cjs/hashing/idObfuscation.js.map +1 -0
- package/dist/cjs/hashing/index.d.ts +33 -0
- package/dist/cjs/hashing/index.js +192 -0
- package/dist/cjs/hashing/index.js.map +1 -0
- package/dist/cjs/index.d.ts +12 -0
- package/dist/cjs/index.js +52 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/logger/index.d.ts +3 -0
- package/dist/cjs/logger/index.js +70 -0
- package/dist/cjs/logger/index.js.map +1 -0
- package/dist/cjs/logger/loggerTransports.d.ts +11 -0
- package/dist/cjs/logger/loggerTransports.js +72 -0
- package/dist/cjs/logger/loggerTransports.js.map +1 -0
- package/dist/cjs/repository/dynamodb.d.ts +121 -0
- package/dist/cjs/repository/dynamodb.js +696 -0
- package/dist/cjs/repository/dynamodb.js.map +1 -0
- package/dist/cjs/shortner/index.d.ts +4 -0
- package/dist/cjs/shortner/index.js +34 -0
- package/dist/cjs/shortner/index.js.map +1 -0
- package/dist/cjs/utils/common.d.ts +7 -0
- package/dist/cjs/utils/common.js +199 -0
- package/dist/cjs/utils/common.js.map +1 -0
- package/dist/cjs/utils/date-format.d.ts +16 -0
- package/dist/cjs/utils/date-format.js +282 -0
- package/dist/cjs/utils/date-format.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +37 -0
- package/dist/cjs/utils/index.js +12 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/intent.d.ts +12 -0
- package/dist/cjs/utils/intent.js +205 -0
- package/dist/cjs/utils/intent.js.map +1 -0
- package/dist/cjs/webbookEvent/index.d.ts +22 -0
- package/dist/cjs/webbookEvent/index.js +151 -0
- package/dist/cjs/webbookEvent/index.js.map +1 -0
- package/dist/esm/aws/index.d.ts +1 -0
- package/dist/esm/aws/services/AESEncryptionUsingKMS.js +20 -11
- package/dist/esm/aws/services/AESEncryptionUsingKMS.js.map +1 -1
- package/dist/esm/aws/services/AWSChimeMeeting.js +24 -15
- package/dist/esm/aws/services/AWSChimeMeeting.js.map +1 -1
- package/dist/esm/aws/services/AWSCodepipeline.js +34 -21
- package/dist/esm/aws/services/AWSCodepipeline.js.map +1 -1
- package/dist/esm/aws/services/AWSComprehend.js +12 -3
- package/dist/esm/aws/services/AWSComprehend.js.map +1 -1
- package/dist/esm/aws/services/AWSConnect.js +144 -135
- package/dist/esm/aws/services/AWSConnect.js.map +1 -1
- package/dist/esm/aws/services/AWSConnectCases.js +21 -12
- package/dist/esm/aws/services/AWSConnectCases.js.map +1 -1
- package/dist/esm/aws/services/AWSConnectParticipant.js +21 -12
- package/dist/esm/aws/services/AWSConnectParticipant.js.map +1 -1
- package/dist/esm/aws/services/AWSCustomerProfiles.js +15 -6
- package/dist/esm/aws/services/AWSCustomerProfiles.js.map +1 -1
- package/dist/esm/aws/services/AWSDynamoDb.js +18 -9
- package/dist/esm/aws/services/AWSDynamoDb.js.map +1 -1
- package/dist/esm/aws/services/AWSGateway.js +15 -6
- package/dist/esm/aws/services/AWSGateway.js.map +1 -1
- package/dist/esm/aws/services/AWSGatewayManagement.js +15 -6
- package/dist/esm/aws/services/AWSGatewayManagement.js.map +1 -1
- package/dist/esm/aws/services/AWSLambda.js +13 -4
- package/dist/esm/aws/services/AWSLambda.js.map +1 -1
- package/dist/esm/aws/services/AWSLexModel.js +72 -63
- package/dist/esm/aws/services/AWSLexModel.js.map +1 -1
- package/dist/esm/aws/services/AWSLexRuntime.js +15 -6
- package/dist/esm/aws/services/AWSLexRuntime.js.map +1 -1
- package/dist/esm/aws/services/AWSPinpoint.js +18 -9
- package/dist/esm/aws/services/AWSPinpoint.js.map +1 -1
- package/dist/esm/aws/services/AWSPinpointSMSVoice.js +27 -18
- package/dist/esm/aws/services/AWSPinpointSMSVoice.js.map +1 -1
- package/dist/esm/aws/services/AWSQConnect.js +27 -18
- package/dist/esm/aws/services/AWSQConnect.js.map +1 -1
- package/dist/esm/aws/services/AWSS3.js +37 -28
- package/dist/esm/aws/services/AWSS3.js.map +1 -1
- package/dist/esm/aws/services/AWSSES.js +13 -4
- package/dist/esm/aws/services/AWSSES.js.map +1 -1
- package/dist/esm/aws/services/AWSSNS.js +20 -11
- package/dist/esm/aws/services/AWSSNS.js.map +1 -1
- package/dist/esm/aws/services/AWSSSM.d.ts +1 -0
- package/dist/esm/aws/services/AWSSSM.js +50 -3
- package/dist/esm/aws/services/AWSSSM.js.map +1 -1
- package/dist/esm/aws/services/AWSSTS.js +12 -3
- package/dist/esm/aws/services/AWSSTS.js.map +1 -1
- package/dist/esm/aws/services/AWSTranslate.js +12 -3
- package/dist/esm/aws/services/AWSTranslate.js.map +1 -1
- package/dist/esm/communication/communicationService.js +38 -29
- package/dist/esm/communication/communicationService.js.map +1 -1
- package/dist/esm/communication/index.js +148 -125
- package/dist/esm/communication/index.js.map +1 -1
- package/dist/esm/hashing/idObfuscation.js +44 -29
- package/dist/esm/hashing/idObfuscation.js.map +1 -1
- package/dist/esm/hashing/index.js +168 -141
- package/dist/esm/hashing/index.js.map +1 -1
- package/dist/esm/repository/dynamodb.js +398 -369
- package/dist/esm/repository/dynamodb.js.map +1 -1
- package/dist/esm/shortner/index.js +31 -20
- package/dist/esm/shortner/index.js.map +1 -1
- package/dist/esm/utils/common.js +11 -2
- package/dist/esm/utils/common.js.map +1 -1
- package/dist/esm/utils/intent.js +33 -24
- package/dist/esm/utils/intent.js.map +1 -1
- package/dist/esm/webbookEvent/index.js +128 -105
- package/dist/esm/webbookEvent/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Connect = exports.disassociateStorageConfig = exports.associateStorageConfig = exports.updateHoursOfOperation = exports.deleteRoutingProfile = exports.updateRoutingProfile = exports.getContactFlowList = exports.updateQueueOutboundCallerConfig = exports.updateSecurityProfile = exports.updateInstanceAttributes = exports.describeUser = exports.updateContact = exports.describeContact = exports.stopContact = exports.associateApprovedOrigin = exports.describeInstance = exports.associatePhoneNumberContactFlow = exports.searchAvailablePhoneNumber = exports.addSecurityProfile = exports.getSecurityProfileList = exports.updateContactFlowContent = exports.updateContactFlowModuleContent = exports.getAgentList = exports.getListPrompts = exports.createContactFlowModule = exports.deleteAgent = exports.createAgent = exports.getCurrentUserMetricData = exports.getCurrentMetricData = exports.getMetricData = exports.getMetricV2Data = exports.updateContactAttributes = exports.getPhoneNumberList = exports.claimPhoneNumber = exports.getHoursOfOperation = exports.createHoursOfOperation = exports.createRoutingProfile = exports.deleteQueue = exports.createQueue = exports.createContactFlow = exports.createInstance = exports.startTaskContact = exports.getContactAttributes = void 0;
|
|
4
|
+
const client_connect_1 = require("@aws-sdk/client-connect");
|
|
5
|
+
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
6
|
+
const client = new client_connect_1.ConnectClient({
|
|
7
|
+
region: awsRegion,
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Get the contact details
|
|
11
|
+
* @param instanceId // this is use to filter the and connect to the perticular instance of aws connect
|
|
12
|
+
* @param CID // this is the connect contact id.
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
const getContact = async (instanceId, CID) => {
|
|
16
|
+
console.log('adding item to db');
|
|
17
|
+
try {
|
|
18
|
+
const input = {
|
|
19
|
+
InstanceId: instanceId,
|
|
20
|
+
InitialContactId: CID
|
|
21
|
+
};
|
|
22
|
+
console.log("get contact attributes params", input);
|
|
23
|
+
const command = new client_connect_1.GetContactAttributesCommand(input);
|
|
24
|
+
const response = await client.send(command);
|
|
25
|
+
return response;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.log(error);
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* This is used to start chat with contact.
|
|
34
|
+
* @param params // parameters to start chat with contact
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
const startChatContact = async (params) => {
|
|
38
|
+
try {
|
|
39
|
+
const command = new client_connect_1.StartChatContactCommand(params);
|
|
40
|
+
const response = await client.send(command);
|
|
41
|
+
console.log("Created new chat results");
|
|
42
|
+
return response;
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
console.log(error);
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* This is used to start contact streaming.
|
|
51
|
+
* @param params parameters to start streaming contact
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
const startContactStreaming = async (params) => {
|
|
55
|
+
try {
|
|
56
|
+
console.log("get contact attributes params", params);
|
|
57
|
+
const command = new client_connect_1.StartContactStreamingCommand(params);
|
|
58
|
+
const response = await client.send(command);
|
|
59
|
+
console.log("Start Contact Streaming Result");
|
|
60
|
+
return response;
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
console.log(error);
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* This is used to get Contact Attribute.
|
|
69
|
+
* @param params parameters to get contact attribute
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
const getContactAttributes = async (params) => {
|
|
73
|
+
try {
|
|
74
|
+
const command = new client_connect_1.GetContactAttributesCommand(params);
|
|
75
|
+
const response = await client.send(command);
|
|
76
|
+
return response;
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
console.error(error);
|
|
80
|
+
throw new Error('error in aws sdk');
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
exports.getContactAttributes = getContactAttributes;
|
|
84
|
+
/**
|
|
85
|
+
* This is used to start task contact.
|
|
86
|
+
* @param params parameters to start task contact
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
const startTaskContact = async (params) => {
|
|
90
|
+
try {
|
|
91
|
+
const command = new client_connect_1.StartTaskContactCommand(params);
|
|
92
|
+
const response = await client.send(command);
|
|
93
|
+
console.log('Start Task Contact');
|
|
94
|
+
return response;
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error(error);
|
|
98
|
+
throw new Error('error in create task');
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
exports.startTaskContact = startTaskContact;
|
|
102
|
+
/**
|
|
103
|
+
* This is used to create new instance.
|
|
104
|
+
* @param params parameters is used to create new aws connect instance
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
const createInstance = async (params) => {
|
|
108
|
+
try {
|
|
109
|
+
const command = new client_connect_1.CreateInstanceCommand(params);
|
|
110
|
+
const response = await client.send(command);
|
|
111
|
+
console.log('Instance Details ');
|
|
112
|
+
return response;
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
console.error(error);
|
|
116
|
+
throw new Error('error in create instance');
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
exports.createInstance = createInstance;
|
|
120
|
+
/**
|
|
121
|
+
* This is used to create aws instance contact flow.
|
|
122
|
+
* @param params parameters is used to create new aws connect contact flow
|
|
123
|
+
* @returns
|
|
124
|
+
*/
|
|
125
|
+
const createContactFlow = async (params) => {
|
|
126
|
+
try {
|
|
127
|
+
const command = new client_connect_1.CreateContactFlowCommand(params);
|
|
128
|
+
const response = await client.send(command);
|
|
129
|
+
console.log('Contact Flow Details ');
|
|
130
|
+
return response;
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
console.error(error);
|
|
134
|
+
throw error;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.createContactFlow = createContactFlow;
|
|
138
|
+
/**
|
|
139
|
+
* This is used to create aws instance queue.
|
|
140
|
+
* @param params parameters is used to create connect instance queue
|
|
141
|
+
* @returns
|
|
142
|
+
*/
|
|
143
|
+
const createQueue = async (params) => {
|
|
144
|
+
try {
|
|
145
|
+
const command = new client_connect_1.CreateQueueCommand(params);
|
|
146
|
+
const response = await client.send(command);
|
|
147
|
+
console.log('Queue Details');
|
|
148
|
+
return response;
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
console.error(error);
|
|
152
|
+
throw new Error('error in create queue');
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
exports.createQueue = createQueue;
|
|
156
|
+
/**
|
|
157
|
+
* This is used to delete aws instance queue.
|
|
158
|
+
* @param params parameters is used to delete connect instance queue
|
|
159
|
+
* @returns
|
|
160
|
+
*/
|
|
161
|
+
const deleteQueue = async (params) => {
|
|
162
|
+
try {
|
|
163
|
+
const command = new client_connect_1.DeleteQueueCommand(params);
|
|
164
|
+
const response = await client.send(command);
|
|
165
|
+
console.log('Deleted Queue Details');
|
|
166
|
+
return response;
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
console.error(error);
|
|
170
|
+
throw new Error('error in deleet queue');
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
exports.deleteQueue = deleteQueue;
|
|
174
|
+
/**
|
|
175
|
+
* This is used to create aws instance routing profile
|
|
176
|
+
* @param params parameters is used to create connect instance routing profile
|
|
177
|
+
* @returns
|
|
178
|
+
*/
|
|
179
|
+
const createRoutingProfile = async (params) => {
|
|
180
|
+
try {
|
|
181
|
+
const command = new client_connect_1.CreateRoutingProfileCommand(params);
|
|
182
|
+
const response = await client.send(command);
|
|
183
|
+
console.log('Routing Profile Details ');
|
|
184
|
+
return response;
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
console.error(error);
|
|
188
|
+
throw new Error('error in create routing profile');
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
exports.createRoutingProfile = createRoutingProfile;
|
|
192
|
+
/**
|
|
193
|
+
* This is used to create hours of operation.
|
|
194
|
+
* @param params parameters is used to create hours of operation
|
|
195
|
+
* @returns
|
|
196
|
+
*/
|
|
197
|
+
const createHoursOfOperation = async (params) => {
|
|
198
|
+
try {
|
|
199
|
+
const command = new client_connect_1.CreateHoursOfOperationCommand(params);
|
|
200
|
+
const response = await client.send(command);
|
|
201
|
+
console.log('Create Hours Of Operation Details ');
|
|
202
|
+
return response;
|
|
203
|
+
}
|
|
204
|
+
catch (error) {
|
|
205
|
+
console.error(error);
|
|
206
|
+
throw new Error('error in create Hours Of Operation');
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
exports.createHoursOfOperation = createHoursOfOperation;
|
|
210
|
+
/**
|
|
211
|
+
* This method is used to get hours of operation details with id
|
|
212
|
+
* @param params details to pass for getting details
|
|
213
|
+
* @returns hoursOfOperation details
|
|
214
|
+
*/
|
|
215
|
+
const getHoursOfOperation = async (params) => {
|
|
216
|
+
try {
|
|
217
|
+
const command = new client_connect_1.ListHoursOfOperationsCommand(params);
|
|
218
|
+
const response = await client.send(command);
|
|
219
|
+
console.log('Get Hours Of Operation Command ');
|
|
220
|
+
return response;
|
|
221
|
+
}
|
|
222
|
+
catch (error) {
|
|
223
|
+
console.error(error);
|
|
224
|
+
throw new Error('Error in get hours of Operation');
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
exports.getHoursOfOperation = getHoursOfOperation;
|
|
228
|
+
/**
|
|
229
|
+
* This is used to claim the phone number.
|
|
230
|
+
* @param params parameters is used to claim the phone number
|
|
231
|
+
* @returns
|
|
232
|
+
*/
|
|
233
|
+
const claimPhoneNumber = async (params) => {
|
|
234
|
+
try {
|
|
235
|
+
const command = new client_connect_1.ClaimPhoneNumberCommand(params);
|
|
236
|
+
const response = await client.send(command);
|
|
237
|
+
console.log('Claim Phone Number for Instance ');
|
|
238
|
+
return response;
|
|
239
|
+
}
|
|
240
|
+
catch (error) {
|
|
241
|
+
console.error(error);
|
|
242
|
+
throw new Error('error in claim phone number');
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
exports.claimPhoneNumber = claimPhoneNumber;
|
|
246
|
+
/**
|
|
247
|
+
* This is used to phone number list in instance.
|
|
248
|
+
* @param params parameters is used to phone number list in instance
|
|
249
|
+
* @returns
|
|
250
|
+
*/
|
|
251
|
+
const getPhoneNumberList = async (params) => {
|
|
252
|
+
try {
|
|
253
|
+
const command = new client_connect_1.ListPhoneNumbersV2Command(params);
|
|
254
|
+
const response = await client.send(command);
|
|
255
|
+
console.log('List of Phone Number in Instance ');
|
|
256
|
+
return response;
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
console.error(error);
|
|
260
|
+
throw new Error('error in list of phone number in instance');
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
exports.getPhoneNumberList = getPhoneNumberList;
|
|
264
|
+
/**
|
|
265
|
+
* This is used to update Contact Attribute.
|
|
266
|
+
* @param params parameters to update contact attribute
|
|
267
|
+
* @returns
|
|
268
|
+
*/
|
|
269
|
+
const updateContactAttributes = async (params) => {
|
|
270
|
+
try {
|
|
271
|
+
const command = new client_connect_1.UpdateContactAttributesCommand(params);
|
|
272
|
+
const response = await client.send(command);
|
|
273
|
+
console.log('update contact Attributes ');
|
|
274
|
+
return response;
|
|
275
|
+
}
|
|
276
|
+
catch (error) {
|
|
277
|
+
console.error(error);
|
|
278
|
+
throw new Error('error in update contact attributes aws sdk');
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
exports.updateContactAttributes = updateContactAttributes;
|
|
282
|
+
/**
|
|
283
|
+
* This is used to v2 metric data
|
|
284
|
+
* @param params parameters to get historic metric v2 data
|
|
285
|
+
* @returns
|
|
286
|
+
*/
|
|
287
|
+
const getMetricV2Data = async (params) => {
|
|
288
|
+
try {
|
|
289
|
+
const command = new client_connect_1.GetMetricDataV2Command(params);
|
|
290
|
+
const response = await client.send(command);
|
|
291
|
+
console.log('Get Metrics Data ');
|
|
292
|
+
return response;
|
|
293
|
+
}
|
|
294
|
+
catch (error) {
|
|
295
|
+
console.error(error);
|
|
296
|
+
throw new Error('error in get historic metric data from aws sdk');
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
exports.getMetricV2Data = getMetricV2Data;
|
|
300
|
+
/**
|
|
301
|
+
* This is used to metric data
|
|
302
|
+
* @param params parameters to get historic metric data
|
|
303
|
+
* @returns
|
|
304
|
+
*/
|
|
305
|
+
const getMetricData = async (params) => {
|
|
306
|
+
try {
|
|
307
|
+
const command = new client_connect_1.GetMetricDataCommand(params);
|
|
308
|
+
const response = await client.send(command);
|
|
309
|
+
console.log('Get Metrics Data ');
|
|
310
|
+
return response;
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
console.error(error);
|
|
314
|
+
throw new Error('error in get historic metric data from aws sdk');
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
exports.getMetricData = getMetricData;
|
|
318
|
+
/**
|
|
319
|
+
* This is used to get current metric data
|
|
320
|
+
* @param params parameters to get current metric
|
|
321
|
+
* @returns
|
|
322
|
+
*/
|
|
323
|
+
const getCurrentMetricData = async (params) => {
|
|
324
|
+
try {
|
|
325
|
+
const command = new client_connect_1.GetCurrentMetricDataCommand(params);
|
|
326
|
+
const response = await client.send(command);
|
|
327
|
+
console.log('Get Current Metrics Data ');
|
|
328
|
+
return response;
|
|
329
|
+
}
|
|
330
|
+
catch (error) {
|
|
331
|
+
console.error(error);
|
|
332
|
+
throw new Error('error in get current metric data from aws sdk');
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
exports.getCurrentMetricData = getCurrentMetricData;
|
|
336
|
+
/**
|
|
337
|
+
* This is used to get user current metric data
|
|
338
|
+
* @param params parameters to get current metric
|
|
339
|
+
* @returns
|
|
340
|
+
*/
|
|
341
|
+
const getCurrentUserMetricData = async (params) => {
|
|
342
|
+
try {
|
|
343
|
+
const command = new client_connect_1.GetCurrentUserDataCommand(params);
|
|
344
|
+
const response = await client.send(command);
|
|
345
|
+
console.log('Get User Current Metrics Data ');
|
|
346
|
+
return response;
|
|
347
|
+
}
|
|
348
|
+
catch (error) {
|
|
349
|
+
console.error(error);
|
|
350
|
+
throw new Error('error in get User current metric data from aws sdk');
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
exports.getCurrentUserMetricData = getCurrentUserMetricData;
|
|
354
|
+
/**
|
|
355
|
+
* This is used to create user profile in aws connect
|
|
356
|
+
* @param params parameters to add user
|
|
357
|
+
* @returns
|
|
358
|
+
*/
|
|
359
|
+
const createAgent = async (params) => {
|
|
360
|
+
try {
|
|
361
|
+
const command = new client_connect_1.CreateUserCommand(params);
|
|
362
|
+
const response = await client.send(command);
|
|
363
|
+
console.log('Create User in Connect Instance ');
|
|
364
|
+
return response;
|
|
365
|
+
}
|
|
366
|
+
catch (error) {
|
|
367
|
+
console.error(error);
|
|
368
|
+
throw new Error('error in Create User in Connect Instance from aws sdk');
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
exports.createAgent = createAgent;
|
|
372
|
+
/**
|
|
373
|
+
* This is used to delete user profile in aws connect
|
|
374
|
+
* @param params parameters to delete user
|
|
375
|
+
* @returns
|
|
376
|
+
*/
|
|
377
|
+
const deleteAgent = async (params) => {
|
|
378
|
+
try {
|
|
379
|
+
const command = new client_connect_1.DeleteUserCommand(params);
|
|
380
|
+
const response = await client.send(command);
|
|
381
|
+
console.log('Delete User in Connect Instance ');
|
|
382
|
+
return response;
|
|
383
|
+
}
|
|
384
|
+
catch (error) {
|
|
385
|
+
console.error(error);
|
|
386
|
+
throw new Error('error in Delete User in Connect Instance from aws sdk');
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
exports.deleteAgent = deleteAgent;
|
|
390
|
+
/**
|
|
391
|
+
* This is used to create contact flow module
|
|
392
|
+
* @param params parameters to add contact flow
|
|
393
|
+
* @returns this will return newly created module
|
|
394
|
+
*/
|
|
395
|
+
const createContactFlowModule = async (params) => {
|
|
396
|
+
try {
|
|
397
|
+
const command = new client_connect_1.CreateContactFlowModuleCommand(params);
|
|
398
|
+
const response = await client.send(command);
|
|
399
|
+
console.log('Create Module Response ');
|
|
400
|
+
return response;
|
|
401
|
+
}
|
|
402
|
+
catch (error) {
|
|
403
|
+
console.error(error);
|
|
404
|
+
throw new Error('error in create module response from aws sdk');
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
exports.createContactFlowModule = createContactFlowModule;
|
|
408
|
+
/**
|
|
409
|
+
* This is used to create contact flow module
|
|
410
|
+
* @param params parameters to add contact flow
|
|
411
|
+
* @returns this will return newly created module
|
|
412
|
+
*/
|
|
413
|
+
const getListPrompts = async (params) => {
|
|
414
|
+
try {
|
|
415
|
+
const command = new client_connect_1.ListPromptsCommand(params);
|
|
416
|
+
const response = await client.send(command);
|
|
417
|
+
console.log('Get List Prompts ');
|
|
418
|
+
return response;
|
|
419
|
+
}
|
|
420
|
+
catch (error) {
|
|
421
|
+
console.error(error);
|
|
422
|
+
throw new Error('error in get list command prompt from aws sdk');
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
exports.getListPrompts = getListPrompts;
|
|
426
|
+
/**
|
|
427
|
+
* This is used to get user profile list in aws connect
|
|
428
|
+
* @param params parameters to get user list
|
|
429
|
+
* @returns this will return user list
|
|
430
|
+
*/
|
|
431
|
+
const getAgentList = async (params) => {
|
|
432
|
+
try {
|
|
433
|
+
const command = new client_connect_1.ListUsersCommand(params);
|
|
434
|
+
const response = await client.send(command);
|
|
435
|
+
console.log('List of User in Connect Instance ');
|
|
436
|
+
return response;
|
|
437
|
+
}
|
|
438
|
+
catch (error) {
|
|
439
|
+
console.error(error);
|
|
440
|
+
throw new Error('error in get list of user in connect instance from aws sdk');
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
exports.getAgentList = getAgentList;
|
|
444
|
+
/**
|
|
445
|
+
* This is used to update contact flow module content
|
|
446
|
+
* @param params parameters to update the contact flow module
|
|
447
|
+
* @returns this will return updated value
|
|
448
|
+
*/
|
|
449
|
+
const updateContactFlowModuleContent = async (params) => {
|
|
450
|
+
try {
|
|
451
|
+
const command = new client_connect_1.UpdateContactFlowModuleContentCommand(params);
|
|
452
|
+
const response = await client.send(command);
|
|
453
|
+
console.log('Update Contact Flow Module Content ');
|
|
454
|
+
return response;
|
|
455
|
+
}
|
|
456
|
+
catch (error) {
|
|
457
|
+
console.error(error);
|
|
458
|
+
throw new Error('error in update contact flow module content from aws sdk');
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
exports.updateContactFlowModuleContent = updateContactFlowModuleContent;
|
|
462
|
+
/**
|
|
463
|
+
* This is used to update contact flow content
|
|
464
|
+
* @param params parameters to update the contact flow
|
|
465
|
+
* @returns this will return updated value
|
|
466
|
+
*/
|
|
467
|
+
const updateContactFlowContent = async (params) => {
|
|
468
|
+
try {
|
|
469
|
+
const command = new client_connect_1.UpdateContactFlowContentCommand(params);
|
|
470
|
+
const response = await client.send(command);
|
|
471
|
+
console.log('Update Contact Flow Content ');
|
|
472
|
+
return response;
|
|
473
|
+
}
|
|
474
|
+
catch (error) {
|
|
475
|
+
console.error(error);
|
|
476
|
+
throw new Error('error in update contact flow content from aws sdk');
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
exports.updateContactFlowContent = updateContactFlowContent;
|
|
480
|
+
/**
|
|
481
|
+
* This is used to get security profile list
|
|
482
|
+
* @param params parameters to get security profile list
|
|
483
|
+
* @returns this will return list
|
|
484
|
+
*/
|
|
485
|
+
const getSecurityProfileList = async (params) => {
|
|
486
|
+
try {
|
|
487
|
+
const command = new client_connect_1.ListSecurityProfilesCommand(params);
|
|
488
|
+
const response = await client.send(command);
|
|
489
|
+
console.log('Get List Security Profile Command ');
|
|
490
|
+
return response;
|
|
491
|
+
}
|
|
492
|
+
catch (error) {
|
|
493
|
+
console.error(error);
|
|
494
|
+
throw new Error('error in get security profile command from aws sdk');
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
exports.getSecurityProfileList = getSecurityProfileList;
|
|
498
|
+
/**
|
|
499
|
+
* This is used to add security profile
|
|
500
|
+
* @param params parameters to get add security profile
|
|
501
|
+
* @returns this will return list of security profile
|
|
502
|
+
*/
|
|
503
|
+
const addSecurityProfile = async (params) => {
|
|
504
|
+
try {
|
|
505
|
+
const command = new client_connect_1.CreateSecurityProfileCommand(params);
|
|
506
|
+
const response = await client.send(command);
|
|
507
|
+
console.log('Add Security Profile Command ');
|
|
508
|
+
return response;
|
|
509
|
+
}
|
|
510
|
+
catch (error) {
|
|
511
|
+
console.error(error);
|
|
512
|
+
throw new Error('error in add security profile from aws sdk');
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
exports.addSecurityProfile = addSecurityProfile;
|
|
516
|
+
/**
|
|
517
|
+
* This is used to get available phoneNumber
|
|
518
|
+
* @param params parameters to serach available phoneNumber
|
|
519
|
+
* @returns this will return list of available phoneNumber
|
|
520
|
+
*/
|
|
521
|
+
const searchAvailablePhoneNumber = async (params) => {
|
|
522
|
+
try {
|
|
523
|
+
const command = new client_connect_1.SearchAvailablePhoneNumbersCommand(params);
|
|
524
|
+
const response = await client.send(command);
|
|
525
|
+
console.log('Search Phone Number in Instance ');
|
|
526
|
+
return response;
|
|
527
|
+
}
|
|
528
|
+
catch (error) {
|
|
529
|
+
console.error(error);
|
|
530
|
+
throw new Error('error in search available phone number from aws sdk');
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
exports.searchAvailablePhoneNumber = searchAvailablePhoneNumber;
|
|
534
|
+
/**
|
|
535
|
+
* This is used to associate phoneNumber contact flow
|
|
536
|
+
* @param params parameters add phoneNumber to contact flow
|
|
537
|
+
* @returns this will return
|
|
538
|
+
*/
|
|
539
|
+
const associatePhoneNumberContactFlow = async (params) => {
|
|
540
|
+
try {
|
|
541
|
+
const command = new client_connect_1.AssociatePhoneNumberContactFlowCommand(params);
|
|
542
|
+
const response = await client.send(command);
|
|
543
|
+
console.log('Associate Phone Number Contact Flow');
|
|
544
|
+
return response;
|
|
545
|
+
}
|
|
546
|
+
catch (error) {
|
|
547
|
+
console.error(error);
|
|
548
|
+
throw new Error('error in associate phone number from aws sdk');
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
exports.associatePhoneNumberContactFlow = associatePhoneNumberContactFlow;
|
|
552
|
+
/**
|
|
553
|
+
* This is used to get instance id
|
|
554
|
+
* @param params parameters to serach instance detail
|
|
555
|
+
* @returns this will return instance details
|
|
556
|
+
*/
|
|
557
|
+
const describeInstance = async (params) => {
|
|
558
|
+
try {
|
|
559
|
+
const command = new client_connect_1.DescribeInstanceCommand(params);
|
|
560
|
+
const response = await client.send(command);
|
|
561
|
+
console.log('Get Instance Details');
|
|
562
|
+
return response;
|
|
563
|
+
}
|
|
564
|
+
catch (error) {
|
|
565
|
+
console.error(error);
|
|
566
|
+
throw new Error('error in get instance details from aws sdk');
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
exports.describeInstance = describeInstance;
|
|
570
|
+
/**
|
|
571
|
+
* This is used to associate approved origin
|
|
572
|
+
* @param params parameters to serach instance detail
|
|
573
|
+
* @returns this will return instance details
|
|
574
|
+
*/
|
|
575
|
+
const associateApprovedOrigin = async (params) => {
|
|
576
|
+
try {
|
|
577
|
+
const command = new client_connect_1.AssociateApprovedOriginCommand(params);
|
|
578
|
+
const response = await client.send(command);
|
|
579
|
+
console.log('Get Add Origin to the Instance');
|
|
580
|
+
return response;
|
|
581
|
+
}
|
|
582
|
+
catch (error) {
|
|
583
|
+
console.error(error);
|
|
584
|
+
throw new Error('error in associate approved domain aws sdk');
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
exports.associateApprovedOrigin = associateApprovedOrigin;
|
|
588
|
+
/**
|
|
589
|
+
* This is used to stop connect contact
|
|
590
|
+
* @param params parameters to search instance detail
|
|
591
|
+
* @returns
|
|
592
|
+
*/
|
|
593
|
+
const stopContact = async (params) => {
|
|
594
|
+
try {
|
|
595
|
+
const command = new client_connect_1.StopContactCommand(params);
|
|
596
|
+
const response = await client.send(command);
|
|
597
|
+
console.log('stop connect contact command');
|
|
598
|
+
return response;
|
|
599
|
+
}
|
|
600
|
+
catch (error) {
|
|
601
|
+
console.error(error);
|
|
602
|
+
throw new Error('error in stop contact command aws sdk');
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
exports.stopContact = stopContact;
|
|
606
|
+
/**
|
|
607
|
+
* This is used to describe connect contact
|
|
608
|
+
* @param params parameters to describe contact
|
|
609
|
+
*/
|
|
610
|
+
const describeContact = async (params) => {
|
|
611
|
+
try {
|
|
612
|
+
const command = new client_connect_1.DescribeContactCommand(params);
|
|
613
|
+
const response = await client.send(command);
|
|
614
|
+
console.log('Describe connect contact command');
|
|
615
|
+
return response;
|
|
616
|
+
}
|
|
617
|
+
catch (error) {
|
|
618
|
+
console.error(error);
|
|
619
|
+
throw new Error('Error in describe connect contact command aws sdk');
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
exports.describeContact = describeContact;
|
|
623
|
+
/**
|
|
624
|
+
* This is used to update connect contact
|
|
625
|
+
* @param params parameters to update contact
|
|
626
|
+
*/
|
|
627
|
+
const updateContact = async (params) => {
|
|
628
|
+
try {
|
|
629
|
+
const command = new client_connect_1.UpdateContactCommand(params);
|
|
630
|
+
const response = await client.send(command);
|
|
631
|
+
console.log('Update connect contact command');
|
|
632
|
+
return response;
|
|
633
|
+
}
|
|
634
|
+
catch (error) {
|
|
635
|
+
console.error(error);
|
|
636
|
+
throw new Error('error in update connect contact command aws sdk');
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
exports.updateContact = updateContact;
|
|
640
|
+
/**
|
|
641
|
+
* This is used to describe connect user
|
|
642
|
+
* @param params parameters to describe connect user
|
|
643
|
+
*/
|
|
644
|
+
const describeUser = async (params) => {
|
|
645
|
+
try {
|
|
646
|
+
const command = new client_connect_1.DescribeUserCommand(params);
|
|
647
|
+
const response = await client.send(command);
|
|
648
|
+
console.log('Describe user connect command');
|
|
649
|
+
return response;
|
|
650
|
+
}
|
|
651
|
+
catch (error) {
|
|
652
|
+
console.error(error);
|
|
653
|
+
throw new Error('Error in describe user connect command aws sdk');
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
exports.describeUser = describeUser;
|
|
657
|
+
/**
|
|
658
|
+
* This is used to update instance attributes
|
|
659
|
+
* @param params parameters to describe connect user
|
|
660
|
+
*/
|
|
661
|
+
const updateInstanceAttributes = async (params) => {
|
|
662
|
+
try {
|
|
663
|
+
const command = new client_connect_1.UpdateInstanceAttributeCommand(params);
|
|
664
|
+
const response = await client.send(command);
|
|
665
|
+
console.log('update connect instance attributes user connect command');
|
|
666
|
+
return response;
|
|
667
|
+
}
|
|
668
|
+
catch (error) {
|
|
669
|
+
console.error(error);
|
|
670
|
+
throw new Error('Error in update instance attributes');
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
exports.updateInstanceAttributes = updateInstanceAttributes;
|
|
674
|
+
/**
|
|
675
|
+
* This is used to update security profile
|
|
676
|
+
* @param params parameters to update security profile
|
|
677
|
+
* @returns this will return list of security profile
|
|
678
|
+
*/
|
|
679
|
+
const updateSecurityProfile = async (params) => {
|
|
680
|
+
try {
|
|
681
|
+
const command = new client_connect_1.UpdateSecurityProfileCommand(params);
|
|
682
|
+
const response = await client.send(command);
|
|
683
|
+
console.log('Update Security Profile Command ');
|
|
684
|
+
return response;
|
|
685
|
+
}
|
|
686
|
+
catch (error) {
|
|
687
|
+
console.error(error);
|
|
688
|
+
throw new Error('error in update security profile from aws sdk');
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
exports.updateSecurityProfile = updateSecurityProfile;
|
|
692
|
+
/**
|
|
693
|
+
* This is used to update security profile
|
|
694
|
+
* @param params parameters to update security profile
|
|
695
|
+
* @returns this will return list of security profile
|
|
696
|
+
*/
|
|
697
|
+
const updateQueueOutboundCallerConfig = async (params) => {
|
|
698
|
+
try {
|
|
699
|
+
const command = new client_connect_1.UpdateQueueOutboundCallerConfigCommand(params);
|
|
700
|
+
const response = await client.send(command);
|
|
701
|
+
console.log('Update Queue Outbound Config Command ');
|
|
702
|
+
return response;
|
|
703
|
+
}
|
|
704
|
+
catch (error) {
|
|
705
|
+
console.error(error);
|
|
706
|
+
throw new Error('error in update Queue Outbound Config from aws sdk');
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
exports.updateQueueOutboundCallerConfig = updateQueueOutboundCallerConfig;
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @param params
|
|
713
|
+
* @returns
|
|
714
|
+
*/
|
|
715
|
+
const getContactFlowList = async (params) => {
|
|
716
|
+
try {
|
|
717
|
+
const command = new client_connect_1.ListContactFlowsCommand(params);
|
|
718
|
+
const response = await client.send(command);
|
|
719
|
+
console.log('Update Queue Outbound Config Command ');
|
|
720
|
+
return response;
|
|
721
|
+
}
|
|
722
|
+
catch (error) {
|
|
723
|
+
console.error(error);
|
|
724
|
+
throw new Error('error in update Queue Outbound Config from aws sdk');
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
exports.getContactFlowList = getContactFlowList;
|
|
728
|
+
/**
|
|
729
|
+
* This is used to update aws user routing profile
|
|
730
|
+
* @param params parameters is used to create connect instance routing profile
|
|
731
|
+
* @returns
|
|
732
|
+
*/
|
|
733
|
+
const updateRoutingProfile = async (params) => {
|
|
734
|
+
try {
|
|
735
|
+
const command = new client_connect_1.UpdateUserRoutingProfileCommand(params);
|
|
736
|
+
const response = await client.send(command);
|
|
737
|
+
console.log('Updated User Routing Profile Details ');
|
|
738
|
+
return response;
|
|
739
|
+
}
|
|
740
|
+
catch (error) {
|
|
741
|
+
console.error(error);
|
|
742
|
+
throw new Error('error in update user routing profile');
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
exports.updateRoutingProfile = updateRoutingProfile;
|
|
746
|
+
/**
|
|
747
|
+
* This is used to delete aws routing profile
|
|
748
|
+
* @param params parameters is used to delete connect instance routing profile
|
|
749
|
+
* @returns
|
|
750
|
+
*/
|
|
751
|
+
const deleteRoutingProfile = async (params) => {
|
|
752
|
+
try {
|
|
753
|
+
const command = new client_connect_1.DeleteRoutingProfileCommand(params);
|
|
754
|
+
const response = await client.send(command);
|
|
755
|
+
console.log('Delete Routing Profile Details ');
|
|
756
|
+
return response;
|
|
757
|
+
}
|
|
758
|
+
catch (error) {
|
|
759
|
+
console.error(error);
|
|
760
|
+
throw new Error('error in delete routing profile');
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
exports.deleteRoutingProfile = deleteRoutingProfile;
|
|
764
|
+
/**
|
|
765
|
+
* This is used to update hours of operation.
|
|
766
|
+
* @param params parameters is used to create hours of operation
|
|
767
|
+
* @returns
|
|
768
|
+
*/
|
|
769
|
+
const updateHoursOfOperation = async (params) => {
|
|
770
|
+
try {
|
|
771
|
+
const command = new client_connect_1.UpdateHoursOfOperationCommand(params);
|
|
772
|
+
const response = await client.send(command);
|
|
773
|
+
console.log('Update Hours Of Operation Details ');
|
|
774
|
+
return response;
|
|
775
|
+
}
|
|
776
|
+
catch (error) {
|
|
777
|
+
console.error(error);
|
|
778
|
+
throw new Error('error in update Hours Of Operation');
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
exports.updateHoursOfOperation = updateHoursOfOperation;
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @param params
|
|
785
|
+
* @returns
|
|
786
|
+
*/
|
|
787
|
+
const associateStorageConfig = async (params) => {
|
|
788
|
+
try {
|
|
789
|
+
const command = new client_connect_1.AssociateInstanceStorageConfigCommand(params);
|
|
790
|
+
const response = await client.send(command);
|
|
791
|
+
console.log('Add Storage config');
|
|
792
|
+
return response;
|
|
793
|
+
}
|
|
794
|
+
catch (error) {
|
|
795
|
+
console.error(error);
|
|
796
|
+
throw new Error('error in adding storage config');
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
exports.associateStorageConfig = associateStorageConfig;
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @param params
|
|
803
|
+
* @returns
|
|
804
|
+
*/
|
|
805
|
+
const disassociateStorageConfig = async (params) => {
|
|
806
|
+
try {
|
|
807
|
+
const command = new client_connect_1.DisassociateInstanceStorageConfigCommand(params);
|
|
808
|
+
const response = await client.send(command);
|
|
809
|
+
console.log('delete storage config');
|
|
810
|
+
return response;
|
|
811
|
+
}
|
|
812
|
+
catch (error) {
|
|
813
|
+
console.error(error);
|
|
814
|
+
throw new Error('error in delete storage config');
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
exports.disassociateStorageConfig = disassociateStorageConfig;
|
|
818
|
+
exports.Connect = {
|
|
819
|
+
getContact,
|
|
820
|
+
startChatContact,
|
|
821
|
+
startContactStreaming,
|
|
822
|
+
getContactAttributes: exports.getContactAttributes,
|
|
823
|
+
updateContactAttributes: exports.updateContactAttributes,
|
|
824
|
+
startTaskContact: exports.startTaskContact,
|
|
825
|
+
createInstance: exports.createInstance,
|
|
826
|
+
createContactFlow: exports.createContactFlow,
|
|
827
|
+
createQueue: exports.createQueue,
|
|
828
|
+
deleteQueue: exports.deleteQueue,
|
|
829
|
+
createRoutingProfile: exports.createRoutingProfile,
|
|
830
|
+
updateRoutingProfile: exports.updateRoutingProfile,
|
|
831
|
+
deleteRoutingProfile: exports.deleteRoutingProfile,
|
|
832
|
+
createHoursOfOperation: exports.createHoursOfOperation,
|
|
833
|
+
updateHoursOfOperation: exports.updateHoursOfOperation,
|
|
834
|
+
getHoursOfOperation: exports.getHoursOfOperation,
|
|
835
|
+
claimPhoneNumber: exports.claimPhoneNumber,
|
|
836
|
+
getPhoneNumberList: exports.getPhoneNumberList,
|
|
837
|
+
getMetricData: exports.getMetricData,
|
|
838
|
+
getMetricV2Data: exports.getMetricV2Data,
|
|
839
|
+
getCurrentMetricData: exports.getCurrentMetricData,
|
|
840
|
+
getCurrentUserMetricData: exports.getCurrentUserMetricData,
|
|
841
|
+
getAgentList: exports.getAgentList,
|
|
842
|
+
createAgent: exports.createAgent,
|
|
843
|
+
deleteAgent: exports.deleteAgent,
|
|
844
|
+
createContactFlowModule: exports.createContactFlowModule,
|
|
845
|
+
getListPrompts: exports.getListPrompts,
|
|
846
|
+
updateContactFlowContent: exports.updateContactFlowContent,
|
|
847
|
+
updateContactFlowModuleContent: exports.updateContactFlowModuleContent,
|
|
848
|
+
getSecurityProfileList: exports.getSecurityProfileList,
|
|
849
|
+
addSecurityProfile: exports.addSecurityProfile,
|
|
850
|
+
searchAvailablePhoneNumber: exports.searchAvailablePhoneNumber,
|
|
851
|
+
associatePhoneNumberContactFlow: exports.associatePhoneNumberContactFlow,
|
|
852
|
+
describeInstance: exports.describeInstance,
|
|
853
|
+
associateApprovedOrigin: exports.associateApprovedOrigin,
|
|
854
|
+
stopContact: exports.stopContact,
|
|
855
|
+
updateContact: exports.updateContact,
|
|
856
|
+
describeContact: exports.describeContact,
|
|
857
|
+
describeUser: exports.describeUser,
|
|
858
|
+
updateInstanceAttributes: exports.updateInstanceAttributes,
|
|
859
|
+
updateSecurityProfile: exports.updateSecurityProfile,
|
|
860
|
+
updateQueueOutboundCallerConfig: exports.updateQueueOutboundCallerConfig,
|
|
861
|
+
getContactFlowList: exports.getContactFlowList,
|
|
862
|
+
associateStorageConfig: exports.associateStorageConfig,
|
|
863
|
+
disassociateStorageConfig: exports.disassociateStorageConfig
|
|
864
|
+
};
|
|
865
|
+
//# sourceMappingURL=AWSConnect.js.map
|