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