@makingchatbots/n8n-nodes-genesys-cloud 0.1.3
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/LICENSE +7 -0
- package/README.md +52 -0
- package/dist/credentials/GenesysCloudPlatformApiOAuth2Api.credentials.d.ts +10 -0
- package/dist/credentials/GenesysCloudPlatformApiOAuth2Api.credentials.js +144 -0
- package/dist/credentials/GenesysCloudPlatformApiOAuth2Api.credentials.js.map +1 -0
- package/dist/credentials/genesysCloud.svg +1 -0
- package/dist/nodes/GenesysCloud/ConversationDescription.d.ts +3 -0
- package/dist/nodes/GenesysCloud/ConversationDescription.js +253 -0
- package/dist/nodes/GenesysCloud/ConversationDescription.js.map +1 -0
- package/dist/nodes/GenesysCloud/ConversationOperation.d.ts +2 -0
- package/dist/nodes/GenesysCloud/ConversationOperation.js +56 -0
- package/dist/nodes/GenesysCloud/ConversationOperation.js.map +1 -0
- package/dist/nodes/GenesysCloud/GenericFunctions.d.ts +3 -0
- package/dist/nodes/GenesysCloud/GenericFunctions.js +116 -0
- package/dist/nodes/GenesysCloud/GenericFunctions.js.map +1 -0
- package/dist/nodes/GenesysCloud/GenesysCloud.node.d.ts +5 -0
- package/dist/nodes/GenesysCloud/GenesysCloud.node.js +146 -0
- package/dist/nodes/GenesysCloud/GenesysCloud.node.js.map +1 -0
- package/dist/nodes/GenesysCloud/GenesysCloud.node.json +18 -0
- package/dist/nodes/GenesysCloud/GroupDescription.d.ts +3 -0
- package/dist/nodes/GenesysCloud/GroupDescription.js +110 -0
- package/dist/nodes/GenesysCloud/GroupDescription.js.map +1 -0
- package/dist/nodes/GenesysCloud/GroupOperation.d.ts +3 -0
- package/dist/nodes/GenesysCloud/GroupOperation.js +30 -0
- package/dist/nodes/GenesysCloud/GroupOperation.js.map +1 -0
- package/dist/nodes/GenesysCloud/QueueDescription.d.ts +3 -0
- package/dist/nodes/GenesysCloud/QueueDescription.js +296 -0
- package/dist/nodes/GenesysCloud/QueueDescription.js.map +1 -0
- package/dist/nodes/GenesysCloud/QueueOperation.d.ts +4 -0
- package/dist/nodes/GenesysCloud/QueueOperation.js +44 -0
- package/dist/nodes/GenesysCloud/QueueOperation.js.map +1 -0
- package/dist/nodes/GenesysCloud/UserDescription.d.ts +3 -0
- package/dist/nodes/GenesysCloud/UserDescription.js +258 -0
- package/dist/nodes/GenesysCloud/UserDescription.js.map +1 -0
- package/dist/nodes/GenesysCloud/UserOperation.d.ts +2 -0
- package/dist/nodes/GenesysCloud/UserOperation.js +22 -0
- package/dist/nodes/GenesysCloud/UserOperation.js.map +1 -0
- package/dist/nodes/GenesysCloud/genesysCloud.svg +1 -0
- package/dist/package.json +61 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queueFields = exports.queueOperations = void 0;
|
|
4
|
+
exports.queueOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['queue'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get an queues',
|
|
20
|
+
action: 'Get a queue',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many queues',
|
|
26
|
+
action: 'Get many queues',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Members',
|
|
30
|
+
value: 'getMembers',
|
|
31
|
+
description: 'Get members of a queue',
|
|
32
|
+
action: 'Get members of a queue',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
default: 'get',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
exports.queueFields = [
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Queue ID',
|
|
41
|
+
name: 'queueId',
|
|
42
|
+
type: 'string',
|
|
43
|
+
required: true,
|
|
44
|
+
default: '',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
resource: ['queue'],
|
|
48
|
+
operation: ['get', 'getMembers'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
description: 'ID of queue that needs to be fetched',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Return All',
|
|
55
|
+
name: 'returnAll',
|
|
56
|
+
type: 'boolean',
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['queue'],
|
|
60
|
+
operation: ['getAll', 'getMembers'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
default: false,
|
|
64
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Limit',
|
|
68
|
+
name: 'limit',
|
|
69
|
+
type: 'number',
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['queue'],
|
|
73
|
+
operation: ['getAll', 'getMembers'],
|
|
74
|
+
returnAll: [false],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
typeOptions: {
|
|
78
|
+
minValue: 1,
|
|
79
|
+
maxValue: 100,
|
|
80
|
+
},
|
|
81
|
+
default: 50,
|
|
82
|
+
description: 'Max number of results to return',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: 'Options',
|
|
86
|
+
name: 'options',
|
|
87
|
+
type: 'collection',
|
|
88
|
+
placeholder: 'Add Option',
|
|
89
|
+
default: {},
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
resource: ['queue'],
|
|
93
|
+
operation: ['getAll'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
options: [
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Canned Response Library ID',
|
|
99
|
+
name: 'cannedResponseLibraryId',
|
|
100
|
+
type: 'string',
|
|
101
|
+
default: '',
|
|
102
|
+
description: 'Include only queues explicitly associated with the specified canned response library ID',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Division IDs',
|
|
106
|
+
name: 'divisionId',
|
|
107
|
+
type: 'string',
|
|
108
|
+
default: '',
|
|
109
|
+
description: 'Include only queues in the specified division IDs (comma-separated)',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Expand',
|
|
113
|
+
name: 'expand',
|
|
114
|
+
type: 'multiOptions',
|
|
115
|
+
options: [
|
|
116
|
+
{
|
|
117
|
+
name: 'Identity Resolution',
|
|
118
|
+
value: 'identityresolution',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
default: [],
|
|
122
|
+
description: 'Which fields, if any, to expand',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Has Peer',
|
|
126
|
+
name: 'hasPeer',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
default: false,
|
|
129
|
+
description: 'Whether to include only queues with a peer ID',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Name',
|
|
133
|
+
name: 'name',
|
|
134
|
+
type: 'string',
|
|
135
|
+
default: '',
|
|
136
|
+
description: 'Include only queues with the given name (leading and trailing asterisks allowed)',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Peer IDs',
|
|
140
|
+
name: 'peerId',
|
|
141
|
+
type: 'string',
|
|
142
|
+
default: '',
|
|
143
|
+
description: 'Include only queues with the specified peer IDs (comma-separated)',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Queue IDs',
|
|
147
|
+
name: 'id',
|
|
148
|
+
type: 'string',
|
|
149
|
+
default: '',
|
|
150
|
+
description: 'Include only queues with the specified IDs (comma-separated)',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Sort Order',
|
|
154
|
+
name: 'sortOrder',
|
|
155
|
+
type: 'options',
|
|
156
|
+
options: [
|
|
157
|
+
{
|
|
158
|
+
name: 'Ascending',
|
|
159
|
+
value: 'asc',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Descending',
|
|
163
|
+
value: 'desc',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
default: 'asc',
|
|
167
|
+
description: 'Sort order for results',
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
displayName: 'Options',
|
|
173
|
+
name: 'options',
|
|
174
|
+
type: 'collection',
|
|
175
|
+
placeholder: 'Add Option',
|
|
176
|
+
default: {},
|
|
177
|
+
displayOptions: {
|
|
178
|
+
show: {
|
|
179
|
+
resource: ['queue'],
|
|
180
|
+
operation: ['getMembers'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
options: [
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Expand',
|
|
186
|
+
name: 'expand',
|
|
187
|
+
type: 'multiOptions',
|
|
188
|
+
options: [
|
|
189
|
+
{
|
|
190
|
+
name: 'Authorization',
|
|
191
|
+
value: 'authorization',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Authorization Unused Roles',
|
|
195
|
+
value: 'authorization.unusedRoles',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'Biography',
|
|
199
|
+
value: 'biography',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'Certifications',
|
|
203
|
+
value: 'certifications',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'Conversation Summary',
|
|
207
|
+
value: 'conversationSummary',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'Custom Attributes',
|
|
211
|
+
value: 'customAttributes',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Date Last Login',
|
|
215
|
+
value: 'dateLastLogin',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'Date Welcome Sent',
|
|
219
|
+
value: 'dateWelcomeSent',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'Employer Info',
|
|
223
|
+
value: 'employerInfo',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'External Contacts Settings',
|
|
227
|
+
value: 'externalContactsSettings',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'Geolocation',
|
|
231
|
+
value: 'geolocation',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'Groups',
|
|
235
|
+
value: 'groups',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'Integration Presence',
|
|
239
|
+
value: 'integrationPresence',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: 'Language Preference',
|
|
243
|
+
value: 'languagePreference',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'Languages',
|
|
247
|
+
value: 'languages',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'Last Token Issued',
|
|
251
|
+
value: 'lasttokenissued',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: 'Locations',
|
|
255
|
+
value: 'locations',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'Out Of Office',
|
|
259
|
+
value: 'outOfOffice',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'Presence',
|
|
263
|
+
value: 'presence',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'Profile Skills',
|
|
267
|
+
value: 'profileSkills',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: 'Routing Status',
|
|
271
|
+
value: 'routingStatus',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'Skills',
|
|
275
|
+
value: 'skills',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'Station',
|
|
279
|
+
value: 'station',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'Team',
|
|
283
|
+
value: 'team',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: 'Work Plan Bid Ranks',
|
|
287
|
+
value: 'workPlanBidRanks',
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
default: [],
|
|
291
|
+
description: 'Which fields, if any, to expand',
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
},
|
|
295
|
+
];
|
|
296
|
+
//# sourceMappingURL=QueueDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueueDescription.js","sourceRoot":"","sources":["../../../nodes/GenesysCloud/QueueDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,WAAW,GAAs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AAI,EAAE,sBAAsB;wBAC5B,KAAK,EAAE,qBAAqB;qBAC5B;oBACD;wBACC,IAAI,EAAE,qBAAqB;wBAC3B,KAAK,EAAE,oBAAoB;qBAC3B;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,iBAAiB;qBACxB;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,aAAa;qBACpB;oBACD;wBACC,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;qBACjB;oBACD;wBACC,IAAI,EAAE,gBAAgB;wBACtB,KAAK,EAAE,eAAe;qBACtB;oBACD;wBACC,IAAI,EAAE,gBAAgB;wBACtB,KAAK,EAAE,eAAe;qBACtB;oBACD;wBACC,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;qBACf;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,IAAI,EAAE,qBAAqB;wBAC3B,KAAK,EAAE,kBAAkB;qBACzB;iBACD;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC9C;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare function queueOperation(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
3
|
+
export declare function getAll(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
4
|
+
export declare function getMembers(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queueOperation = queueOperation;
|
|
4
|
+
exports.getAll = getAll;
|
|
5
|
+
exports.getMembers = getMembers;
|
|
6
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
|
7
|
+
async function queueOperation(index) {
|
|
8
|
+
const operation = this.getNodeParameter('operation', index);
|
|
9
|
+
if (operation === 'get') {
|
|
10
|
+
return get.call(this, index);
|
|
11
|
+
}
|
|
12
|
+
else if (operation === 'getAll') {
|
|
13
|
+
return getAll.call(this, index);
|
|
14
|
+
}
|
|
15
|
+
else if (operation === 'getMembers') {
|
|
16
|
+
return getMembers.call(this, index);
|
|
17
|
+
}
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
async function get(index) {
|
|
21
|
+
const queueId = this.getNodeParameter('queueId', index);
|
|
22
|
+
const responseData = await GenericFunctions_1.genesysCloudApiRequest.call(this, 'GET', `/api/v2/routing/queues/${queueId}`);
|
|
23
|
+
return this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
24
|
+
}
|
|
25
|
+
async function getAll(index) {
|
|
26
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
27
|
+
const qs = {};
|
|
28
|
+
const limit = returnAll ? 0 : this.getNodeParameter('limit', index);
|
|
29
|
+
const options = this.getNodeParameter('options', index);
|
|
30
|
+
Object.assign(qs, options);
|
|
31
|
+
const responseData = await GenericFunctions_1.genesysCloudApiRequestAllItems.call(this, 'entities', 'GET', '/api/v2/routing/queues', {}, qs, limit);
|
|
32
|
+
return this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
33
|
+
}
|
|
34
|
+
async function getMembers(index) {
|
|
35
|
+
const queueId = this.getNodeParameter('queueId', index);
|
|
36
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
37
|
+
const qs = {};
|
|
38
|
+
const limit = returnAll ? 0 : this.getNodeParameter('limit', index);
|
|
39
|
+
const options = this.getNodeParameter('options', index);
|
|
40
|
+
Object.assign(qs, options);
|
|
41
|
+
const responseData = await GenericFunctions_1.genesysCloudApiRequestAllItems.call(this, 'entities', 'GET', `/api/v2/routing/queues/${queueId}/members`, {}, qs, limit);
|
|
42
|
+
return this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=QueueOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueueOperation.js","sourceRoot":"","sources":["../../../nodes/GenesysCloud/QueueOperation.ts"],"names":[],"mappings":";;AAGA,wCAeC;AAiBD,wBA0BC;AAED,gCA2BC;AAzFD,yDAA4F;AAErF,KAAK,UAAU,cAAc,CAEnC,KAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;IAEtE,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACzB,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;SAAM,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACjC,CAAC;SAAM,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QACvC,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,EAAE,CAAC;AACX,CAAC;AAED,KAAK,UAAU,GAAG,CAA0B,KAAa;IACxD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAW,CAAC;IAElE,MAAM,YAAY,GAAG,MAAM,yCAAsB,CAAC,IAAI,CACrD,IAAI,EACJ,KAAK,EACL,0BAA0B,OAAO,EAAE,CACnC,CAAC;IAEF,OAAO,IAAI,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C,CAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAY,CAAC;IAChF,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAgB,CAAC;IAEvE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAE3B,MAAM,YAAY,GAAG,MAAM,iDAA8B,CAAC,IAAI,CAC7D,IAAI,EACJ,UAAU,EACV,KAAK,EACL,0BAA0B,OAAO,UAAU,EAC3C,EAAE,EACF,EAAE,EACF,KAAK,CACL,CAAC;IAEF,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC7C,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAA6B,CAAC,EAC3D,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAC7B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userFields = exports.userOperations = void 0;
|
|
4
|
+
exports.userOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['user'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a user',
|
|
20
|
+
action: 'Get a user',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many users',
|
|
26
|
+
action: 'Get many users',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'get',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.userFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'User ID',
|
|
35
|
+
name: 'userId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
default: '',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['user'],
|
|
42
|
+
operation: ['get'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
description: 'The ID of the user',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['user'],
|
|
54
|
+
operation: ['getAll'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: false,
|
|
58
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Limit',
|
|
62
|
+
name: 'limit',
|
|
63
|
+
type: 'number',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['user'],
|
|
67
|
+
operation: ['getAll'],
|
|
68
|
+
returnAll: [false],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
typeOptions: {
|
|
72
|
+
minValue: 1,
|
|
73
|
+
maxValue: 100,
|
|
74
|
+
},
|
|
75
|
+
default: 50,
|
|
76
|
+
description: 'Max number of results to return',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Options',
|
|
80
|
+
name: 'options',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Option',
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['user'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Sort Order',
|
|
93
|
+
name: 'sortOrder',
|
|
94
|
+
type: 'options',
|
|
95
|
+
options: [
|
|
96
|
+
{
|
|
97
|
+
name: 'Ascending',
|
|
98
|
+
value: 'ASC',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Descending',
|
|
102
|
+
value: 'DESC',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Score',
|
|
106
|
+
value: 'SCORE',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
default: 'ASC',
|
|
110
|
+
description: 'The sort order for results',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Expand',
|
|
114
|
+
name: 'expand',
|
|
115
|
+
type: 'multiOptions',
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
name: 'Authorization',
|
|
119
|
+
value: 'authorization',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Authorization Unused',
|
|
123
|
+
value: 'authorization.unused',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Biography',
|
|
127
|
+
value: 'biography',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'Conversation Summary',
|
|
131
|
+
value: 'conversationSummary',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'Date Last Login',
|
|
135
|
+
value: 'dateLastLogin',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Employer Info',
|
|
139
|
+
value: 'employerInfo',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'Geolocation',
|
|
143
|
+
value: 'geolocation',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'Groups',
|
|
147
|
+
value: 'groups',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'Integration Presence',
|
|
151
|
+
value: 'integrationPresence',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'Language Preference',
|
|
155
|
+
value: 'languagePreference',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'Languages',
|
|
159
|
+
value: 'languages',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Last Token Issued',
|
|
163
|
+
value: 'lastTokenIssued',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'Locations',
|
|
167
|
+
value: 'locations',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'Out of Office',
|
|
171
|
+
value: 'outOfOffice',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'Presence',
|
|
175
|
+
value: 'presence',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'Routing Status',
|
|
179
|
+
value: 'routingStatus',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'Skills',
|
|
183
|
+
value: 'skills',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'Station',
|
|
187
|
+
value: 'station',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'Team',
|
|
191
|
+
value: 'team',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Work Plan',
|
|
195
|
+
value: 'workPlan',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'Work Plan Rotation',
|
|
199
|
+
value: 'workPlanRotation',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
default: [],
|
|
203
|
+
description: 'Which fields, if any, to expand',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Integration Presence Source',
|
|
207
|
+
name: 'integrationPresenceSource',
|
|
208
|
+
type: 'options',
|
|
209
|
+
options: [
|
|
210
|
+
{
|
|
211
|
+
name: 'Microsoft Teams',
|
|
212
|
+
value: 'MicrosoftTeams',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'Zoom Phone',
|
|
216
|
+
value: 'ZoomPhone',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'Ring Central',
|
|
220
|
+
value: 'RingCentral',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'Genesys Cloud',
|
|
224
|
+
value: 'PureCloud',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
default: 'PureCloud',
|
|
228
|
+
description: 'Gets an integration presence for a user with the following source. Only Valid when presence is expanded.',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
displayName: 'State',
|
|
232
|
+
name: 'state',
|
|
233
|
+
type: 'options',
|
|
234
|
+
options: [
|
|
235
|
+
{
|
|
236
|
+
name: 'Active',
|
|
237
|
+
value: 'active',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'Inactive',
|
|
241
|
+
value: 'inactive',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'Deleted',
|
|
245
|
+
value: 'deleted',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'Any',
|
|
249
|
+
value: 'any',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
default: 'active',
|
|
253
|
+
description: 'Only list users with this state',
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
},
|
|
257
|
+
];
|
|
258
|
+
//# sourceMappingURL=UserDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDescription.js","sourceRoot":"","sources":["../../../nodes/GenesysCloud/UserDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,Y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,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;qBACf;oBACD;wBACC,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;qBACjB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,KAAK;qBACZ;iBACD;gBACD,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,iCAAiC;aAC9C;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userOperation = userOperation;
|
|
4
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
|
5
|
+
async function userOperation(index) {
|
|
6
|
+
const operation = this.getNodeParameter('operation', index);
|
|
7
|
+
let responseData;
|
|
8
|
+
const qs = {};
|
|
9
|
+
if (operation === 'get') {
|
|
10
|
+
const userId = this.getNodeParameter('userId', index);
|
|
11
|
+
responseData = await GenericFunctions_1.genesysCloudApiRequest.call(this, 'GET', `/api/v2/users/${userId}`, {}, qs);
|
|
12
|
+
}
|
|
13
|
+
else if (operation === 'getAll') {
|
|
14
|
+
const returnAll = this.getNodeParameter('returnAll', index);
|
|
15
|
+
const limit = returnAll ? 0 : this.getNodeParameter('limit', index);
|
|
16
|
+
const options = this.getNodeParameter('options', index);
|
|
17
|
+
Object.assign(qs, options);
|
|
18
|
+
responseData = await GenericFunctions_1.genesysCloudApiRequestAllItems.call(this, 'entities', 'GET', '/api/v2/users', {}, qs, limit);
|
|
19
|
+
}
|
|
20
|
+
return this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=UserOperation.js.map
|
|
@@ -0,0 +1 @@
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AAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAC7B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Layer_1" x="0px" y="0px" viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve"> <style type="text/css"> .st0{fill:none;stroke:#F05224;stroke-width:2;stroke-miterlimit:10;} </style> <path class="st0" d="M1.3,27.1L1.3,27.1c0-3.3,2.7-6.1,6.1-6.1H18c1.6,0,2.9,1.3,2.9,2.9c0,0,0,0,0,0l0,0c0,1.6-1.3,2.9-2.9,2.9 h-3.5c-3.3,0-6.1-2.7-6.1-6.1l0,0c0-3.3,2.7-6.1,6.1-6.1h15.9c5.1,0,9.3,4.1,9.3,9.3c0,0,0,0,0,0l0,0c0,5.1-4.1,9.3-9.3,9.3l0,0H7.4 C4.1,33.1,1.3,30.4,1.3,27.1z"></path> <path class="st0" d="M33.1,28.7h9c2.4,0,4.3,1.9,4.3,4.3l0,0c0,2.4-1.9,4.3-4.3,4.3h-9c-2.4,0-4.3-1.9-4.3-4.3l0,0 C28.7,30.6,30.7,28.7,33.1,28.7z"></path> <path class="st0" d="M22,9.9h9c2.4,0,4.3,1.9,4.3,4.3l0,0c0,2.4-1.9,4.3-4.3,4.3h-9c-2.4,0-4.3-1.9-4.3-4.3l0,0 C17.6,11.9,19.6,9.9,22,9.9z"></path> </svg>
|