zocrmsdkmiblu 0.2.7 → 0.2.9
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/README.md +19 -19
- package/lib/js/OAuth.js +65 -65
- package/lib/js/REST_API/Records.js +90 -82
- package/lib/js/REST_API/actions.js +30 -30
- package/lib/js/REST_API/attachments.js +43 -43
- package/lib/js/REST_API/functions.js +22 -22
- package/lib/js/REST_API/org.js +17 -17
- package/lib/js/REST_API/settings.js +306 -45
- package/lib/js/REST_API/users.js +18 -18
- package/lib/js/ZCRMRestClient.js +348 -348
- package/lib/js/crmapi.js +32 -32
- package/lib/js/mysql/mysql_util.js +161 -161
- package/lib/js/util.js +267 -267
- package/package.json +28 -28
|
@@ -1,46 +1,307 @@
|
|
|
1
|
-
var util = require('../util');
|
|
2
|
-
|
|
3
|
-
var settings = function settings()
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
getFields : function (input)
|
|
8
|
-
{
|
|
9
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
-
},
|
|
11
|
-
getLayouts : function (input)
|
|
12
|
-
{
|
|
13
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/layouts/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
-
},
|
|
15
|
-
getCustomViews : function (input)
|
|
16
|
-
{
|
|
17
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
18
|
-
},
|
|
19
|
-
updateCustomViews : function (input)
|
|
20
|
-
{
|
|
21
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.PUT, true));//No I18N
|
|
22
|
-
},
|
|
23
|
-
getModules : function (input)
|
|
24
|
-
{
|
|
25
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/modules" + ((input && input.module) ? "/" + input.module : ""), HTTP_METHODS.GET, false));//No I18N
|
|
26
|
-
},
|
|
27
|
-
getRoles : function (input)
|
|
28
|
-
{
|
|
29
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
30
|
-
},
|
|
31
|
-
getProfiles : function (input)
|
|
32
|
-
{
|
|
33
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
34
|
-
},
|
|
35
|
-
getRelatedLists : function (input)
|
|
36
|
-
{
|
|
37
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/related_lists/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
38
|
-
},
|
|
39
|
-
getInventoryTemplates : function (input)
|
|
40
|
-
{
|
|
41
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/inventory_templates/{id}", HTTP_METHODS.GET, false));//No I18N
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
var util = require('../util');
|
|
2
|
+
|
|
3
|
+
var settings = function settings()
|
|
4
|
+
{
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
getFields : function (input)
|
|
8
|
+
{
|
|
9
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
+
},
|
|
11
|
+
getLayouts : function (input)
|
|
12
|
+
{
|
|
13
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/layouts/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
+
},
|
|
15
|
+
getCustomViews : function (input)
|
|
16
|
+
{
|
|
17
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
18
|
+
},
|
|
19
|
+
updateCustomViews : function (input)
|
|
20
|
+
{
|
|
21
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.PUT, true));//No I18N
|
|
22
|
+
},
|
|
23
|
+
getModules : function (input)
|
|
24
|
+
{
|
|
25
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/modules" + ((input && input.module) ? "/" + input.module : ""), HTTP_METHODS.GET, false));//No I18N
|
|
26
|
+
},
|
|
27
|
+
getRoles : function (input)
|
|
28
|
+
{
|
|
29
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
30
|
+
},
|
|
31
|
+
getProfiles : function (input)
|
|
32
|
+
{
|
|
33
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
34
|
+
},
|
|
35
|
+
getRelatedLists : function (input)
|
|
36
|
+
{
|
|
37
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/related_lists/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
38
|
+
},
|
|
39
|
+
getInventoryTemplates : function (input)
|
|
40
|
+
{
|
|
41
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/inventory_templates/{id}", HTTP_METHODS.GET, false));//No I18N
|
|
42
|
+
},
|
|
43
|
+
updateVariableCRM : function (input)
|
|
44
|
+
{
|
|
45
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables/{id}", HTTP_METHODS.PUT, false));//No I18N
|
|
46
|
+
},
|
|
47
|
+
getVariableCRM : function (input)
|
|
48
|
+
{
|
|
49
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
50
|
+
},
|
|
51
|
+
getAllVariables : function (input)
|
|
52
|
+
{
|
|
53
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables", HTTP_METHODS.GET, true));//No I18N
|
|
54
|
+
},
|
|
55
|
+
createVariableCRM : function (input)
|
|
56
|
+
{
|
|
57
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables", HTTP_METHODS.POST, true));//No I18N
|
|
58
|
+
},
|
|
59
|
+
getAllVariablesByCategory : function (input)
|
|
60
|
+
{
|
|
61
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables/{category}", HTTP_METHODS.GET, true));//No I18N
|
|
62
|
+
},
|
|
63
|
+
updateVariableByCategory : function (input)
|
|
64
|
+
{
|
|
65
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables/{category}", HTTP_METHODS.PUT, true));//No I18N
|
|
66
|
+
},
|
|
67
|
+
deleteVariableCRM : function (input)
|
|
68
|
+
{
|
|
69
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/variables/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
70
|
+
},
|
|
71
|
+
updateWorkflow : function (input)
|
|
72
|
+
{
|
|
73
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow", HTTP_METHODS.PUT, true));//No I18N
|
|
74
|
+
},
|
|
75
|
+
getWorkflow : function (input)
|
|
76
|
+
{
|
|
77
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow", HTTP_METHODS.GET, true));//No I18N
|
|
78
|
+
},
|
|
79
|
+
updateApprovalProcess : function (input)
|
|
80
|
+
{
|
|
81
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/approval_process", HTTP_METHODS.PUT, true));//No I18N
|
|
82
|
+
},
|
|
83
|
+
getApprovalProcess : function (input)
|
|
84
|
+
{
|
|
85
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/approval_process", HTTP_METHODS.GET, true));//No I18N
|
|
86
|
+
},
|
|
87
|
+
getAllApprovalProcesses : function (input)
|
|
88
|
+
{
|
|
89
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/approval_process", HTTP_METHODS.GET, true));//No I18N
|
|
90
|
+
},
|
|
91
|
+
createApprovalProcess : function (input)
|
|
92
|
+
{
|
|
93
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/approval_process", HTTP_METHODS.POST, true));//No I18N
|
|
94
|
+
},
|
|
95
|
+
deleteApprovalProcess : function (input)
|
|
96
|
+
{
|
|
97
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/approval_process", HTTP_METHODS.DELETE, true));//No I18N
|
|
98
|
+
},
|
|
99
|
+
updateWorkflowTasks : function (input)
|
|
100
|
+
{
|
|
101
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_tasks", HTTP_METHODS.PUT, true));//No I18N
|
|
102
|
+
},
|
|
103
|
+
getWorkflowTasks : function (input)
|
|
104
|
+
{
|
|
105
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_tasks", HTTP_METHODS.GET, true));//No I18N
|
|
106
|
+
},
|
|
107
|
+
createWorkflowTasks : function (input)
|
|
108
|
+
{
|
|
109
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_tasks", HTTP_METHODS.POST, true));//No I18N
|
|
110
|
+
},
|
|
111
|
+
deleteWorkflowTasks : function (input)
|
|
112
|
+
{
|
|
113
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_tasks/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
114
|
+
},
|
|
115
|
+
getAllWorkflowTasks : function (input)
|
|
116
|
+
{
|
|
117
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_tasks", HTTP_METHODS.GET, true));//No I18N
|
|
118
|
+
},
|
|
119
|
+
updateWorkflowRules : function (input)
|
|
120
|
+
{
|
|
121
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_rules", HTTP_METHODS.PUT, true));//No I18N
|
|
122
|
+
},
|
|
123
|
+
getWorkflowRules : function (input)
|
|
124
|
+
{
|
|
125
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_rules", HTTP_METHODS.GET, true));//No I18N
|
|
126
|
+
},
|
|
127
|
+
createWorkflowRules : function (input)
|
|
128
|
+
{
|
|
129
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_rules", HTTP_METHODS.POST, true));//No I18N
|
|
130
|
+
},
|
|
131
|
+
deleteWorkflowRules : function (input)
|
|
132
|
+
{
|
|
133
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_rules", HTTP_METHODS.DELETE, true));//No I18N
|
|
134
|
+
},
|
|
135
|
+
getAllWorkflowRules : function (input)
|
|
136
|
+
{
|
|
137
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/workflow_rules", HTTP_METHODS.GET, true));//No I18N
|
|
138
|
+
},
|
|
139
|
+
updateTags : function (input)
|
|
140
|
+
{
|
|
141
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/tags", HTTP_METHODS.PUT, true));//No I18N
|
|
142
|
+
},
|
|
143
|
+
getTags : function (input)
|
|
144
|
+
{
|
|
145
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/tags", HTTP_METHODS.GET, true));//No I18N
|
|
146
|
+
},
|
|
147
|
+
createTags : function (input)
|
|
148
|
+
{
|
|
149
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/tags", HTTP_METHODS.POST, true));//No I18N
|
|
150
|
+
},
|
|
151
|
+
deleteTags : function (input)
|
|
152
|
+
{
|
|
153
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/tags/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
154
|
+
},
|
|
155
|
+
getAllTags : function (input)
|
|
156
|
+
{
|
|
157
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/tags", HTTP_METHODS.GET, true));//No I18N
|
|
158
|
+
},
|
|
159
|
+
updateFieldLabel : function (input)
|
|
160
|
+
{
|
|
161
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields", HTTP_METHODS.PUT, true));//No I18N
|
|
162
|
+
},
|
|
163
|
+
getFieldLabel : function (input)
|
|
164
|
+
{
|
|
165
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields", HTTP_METHODS.GET, true));//No I18N
|
|
166
|
+
},
|
|
167
|
+
createFieldLabel : function (input)
|
|
168
|
+
{
|
|
169
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields", HTTP_METHODS.POST, true));//No I18N
|
|
170
|
+
},
|
|
171
|
+
deleteFieldLabel : function (input)
|
|
172
|
+
{
|
|
173
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
174
|
+
},
|
|
175
|
+
getAllFieldLabel : function (input)
|
|
176
|
+
{
|
|
177
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields", HTTP_METHODS.GET, true));//No I18N
|
|
178
|
+
},
|
|
179
|
+
updateCustomButtons : function (input)
|
|
180
|
+
{
|
|
181
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_buttons", HTTP_METHODS.PUT, true));//No I18N
|
|
182
|
+
},
|
|
183
|
+
getCustomButtons : function (input)
|
|
184
|
+
{
|
|
185
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_buttons", HTTP_METHODS.GET, true));//No I18N
|
|
186
|
+
},
|
|
187
|
+
createCustomButtons : function (input)
|
|
188
|
+
{
|
|
189
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_buttons", HTTP_METHODS.POST, true));//No I18N
|
|
190
|
+
},
|
|
191
|
+
deleteCustomButtons : function (input)
|
|
192
|
+
{
|
|
193
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_buttons/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
194
|
+
},
|
|
195
|
+
getAllCustomButtons : function (input)
|
|
196
|
+
{
|
|
197
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_buttons", HTTP_METHODS.GET, true));//No I18N
|
|
198
|
+
},
|
|
199
|
+
updateGroups : function (input)
|
|
200
|
+
{
|
|
201
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.PUT, true));//No I18N
|
|
202
|
+
},
|
|
203
|
+
getGroups : function (input)
|
|
204
|
+
{
|
|
205
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.GET, true));//No I18N
|
|
206
|
+
},
|
|
207
|
+
createGroups : function (input)
|
|
208
|
+
{
|
|
209
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.POST, true));//No I18N
|
|
210
|
+
},
|
|
211
|
+
deleteGroups : function (input)
|
|
212
|
+
{
|
|
213
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
214
|
+
},
|
|
215
|
+
getAllGroups : function (input)
|
|
216
|
+
{
|
|
217
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.GET, true));//No I18N
|
|
218
|
+
},
|
|
219
|
+
updateProfiles : function (input)
|
|
220
|
+
{
|
|
221
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles", HTTP_METHODS.PUT, true));//No I18N
|
|
222
|
+
},
|
|
223
|
+
getProfiles : function (input)
|
|
224
|
+
{
|
|
225
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles", HTTP_METHODS.GET, true));//No I18N
|
|
226
|
+
},
|
|
227
|
+
createProfiles : function (input)
|
|
228
|
+
{
|
|
229
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles", HTTP_METHODS.POST, true));//No I18N
|
|
230
|
+
},
|
|
231
|
+
deleteProfiles : function (input)
|
|
232
|
+
{
|
|
233
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
234
|
+
},
|
|
235
|
+
getAllProfiles : function (input)
|
|
236
|
+
{
|
|
237
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles", HTTP_METHODS.GET, true));//No I18N
|
|
238
|
+
},
|
|
239
|
+
updateRoles : function (input)
|
|
240
|
+
{
|
|
241
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles", HTTP_METHODS.PUT, true));//No I18N
|
|
242
|
+
},
|
|
243
|
+
getRoles : function (input)
|
|
244
|
+
{
|
|
245
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles", HTTP_METHODS.GET, true));//No I18N
|
|
246
|
+
},
|
|
247
|
+
createRoles : function (input)
|
|
248
|
+
{
|
|
249
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles", HTTP_METHODS.POST, true));//No I18N
|
|
250
|
+
},
|
|
251
|
+
deleteRoles : function (input)
|
|
252
|
+
{
|
|
253
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
254
|
+
},
|
|
255
|
+
getAllRoles : function (input)
|
|
256
|
+
{
|
|
257
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles", HTTP_METHODS.GET, true));//No I18N
|
|
258
|
+
},
|
|
259
|
+
updateUsers : function (input)
|
|
260
|
+
{
|
|
261
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users", HTTP_METHODS.PUT, true));//No I18N
|
|
262
|
+
},
|
|
263
|
+
getUsers : function (input)
|
|
264
|
+
{
|
|
265
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users", HTTP_METHODS.GET, true));//No I18N
|
|
266
|
+
},
|
|
267
|
+
createUsers : function (input)
|
|
268
|
+
{
|
|
269
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users", HTTP_METHODS.POST, true));//No I18N
|
|
270
|
+
},
|
|
271
|
+
deleteUsers : function (input)
|
|
272
|
+
{
|
|
273
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
274
|
+
},
|
|
275
|
+
getAllUsers : function (input)
|
|
276
|
+
{
|
|
277
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users", HTTP_METHODS.GET, true));//No I18N
|
|
278
|
+
},
|
|
279
|
+
updateGroups : function (input)
|
|
280
|
+
{
|
|
281
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.PUT, true));//No I18N
|
|
282
|
+
},
|
|
283
|
+
getGroups : function (input)
|
|
284
|
+
{
|
|
285
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.GET, true));//No I18N
|
|
286
|
+
},
|
|
287
|
+
createGroups : function (input)
|
|
288
|
+
{
|
|
289
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.POST, true));//No I18N
|
|
290
|
+
},
|
|
291
|
+
deleteGroups : function (input)
|
|
292
|
+
{
|
|
293
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups/{id}", HTTP_METHODS.DELETE, true));//No I18N
|
|
294
|
+
},
|
|
295
|
+
getAllGroups : function (input)
|
|
296
|
+
{
|
|
297
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/groups", HTTP_METHODS.GET, true));//No I18N
|
|
298
|
+
},
|
|
299
|
+
updateBulk : function (input)
|
|
300
|
+
{
|
|
301
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/users/bulk_update", HTTP_METHODS.PUT, true));//No I18N
|
|
302
|
+
},
|
|
303
|
+
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
46
307
|
module.exports = settings;
|
package/lib/js/REST_API/users.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var util = require('../util');
|
|
2
|
-
|
|
3
|
-
var users = function users()
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
get : function (input)
|
|
8
|
-
{
|
|
9
|
-
return util.promiseResponse(util.constructRequestDetails(input, "users/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
-
},
|
|
11
|
-
getUsersType : function (input)
|
|
12
|
-
{
|
|
13
|
-
return util.promiseResponse(util.constructRequestDetails(input, "users", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
-
},
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
var util = require('../util');
|
|
2
|
+
|
|
3
|
+
var users = function users()
|
|
4
|
+
{
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
get : function (input)
|
|
8
|
+
{
|
|
9
|
+
return util.promiseResponse(util.constructRequestDetails(input, "users/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
+
},
|
|
11
|
+
getUsersType : function (input)
|
|
12
|
+
{
|
|
13
|
+
return util.promiseResponse(util.constructRequestDetails(input, "users", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
19
|
module.exports = users;
|