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