chatbot-nc 2.0.81 → 2.0.84

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