@tiledesk/tiledesk-server 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +3 -0
- package/package.json +2 -2
- package/routes/project_user.js +10 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tiledesk/tiledesk-server",
|
3
3
|
"description": "The Tiledesk server module",
|
4
|
-
"version": "2.5.
|
4
|
+
"version": "2.5.3",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
47
47
|
"@tiledesk/tiledesk-telegram-connector": "^0.1.10",
|
48
48
|
"@tiledesk/tiledesk-tybot-connector": "^0.2.56",
|
49
|
-
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.
|
49
|
+
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.64",
|
50
50
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.7",
|
51
51
|
"@tiledesk/tiledesk-chatbot-templates": "^0.1.2",
|
52
52
|
"@tiledesk/tiledesk-client": "^0.10.10",
|
package/routes/project_user.js
CHANGED
@@ -195,7 +195,7 @@ router.post('/', [passport.authenticate(['basic', 'jwt'], { session: false }), v
|
|
195
195
|
uuid_user: uuidv4(),
|
196
196
|
// role: RoleConstants.USER,
|
197
197
|
// - Create project_user endpoint by agent (Ticketing) now is with Guest Role
|
198
|
-
role: RoleConstants.GUEST,
|
198
|
+
role: RoleConstants.GUEST,
|
199
199
|
user_available: false,
|
200
200
|
tags: req.body.tags,
|
201
201
|
createdBy: req.user.id,
|
@@ -228,6 +228,11 @@ router.put('/', [passport.authenticate(['basic', 'jwt'], { session: false }), va
|
|
228
228
|
if (req.body.max_assigned_chat!=undefined) {
|
229
229
|
update.max_assigned_chat = req.body.max_assigned_chat;
|
230
230
|
}
|
231
|
+
|
232
|
+
if (req.body.number_assigned_requests!=undefined) {
|
233
|
+
update.number_assigned_requests = req.body.number_assigned_requests;
|
234
|
+
}
|
235
|
+
|
231
236
|
if (req.body.attributes!=undefined) {
|
232
237
|
update.attributes = req.body.attributes;
|
233
238
|
}
|
@@ -287,6 +292,10 @@ router.put('/:project_userid', [passport.authenticate(['basic', 'jwt'], { sessio
|
|
287
292
|
update.max_assigned_chat = req.body.max_assigned_chat;
|
288
293
|
}
|
289
294
|
|
295
|
+
if (req.body.number_assigned_requests!=undefined) {
|
296
|
+
update.number_assigned_requests = req.body.number_assigned_requests;
|
297
|
+
}
|
298
|
+
|
290
299
|
if (req.body.attributes!=undefined) {
|
291
300
|
update.attributes = req.body.attributes;
|
292
301
|
}
|