@glympse-inc/com.glympse.enroute 2.105.232

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.
Files changed (45) hide show
  1. package/package.json +34 -0
  2. package/plugin.xml +262 -0
  3. package/scripts/iosFixPCH.js +38 -0
  4. package/src/android/BootReceiver.java +13 -0
  5. package/src/android/EnRoutePlugin.java +1867 -0
  6. package/src/android/HealthCheckJobService.java +225 -0
  7. package/src/android/LocationAccuracyChecker.java +49 -0
  8. package/src/android/ManagerWrapper.java +205 -0
  9. package/src/android/NotificationService.java +81 -0
  10. package/src/android/PushReceiver.java +90 -0
  11. package/src/android/enroute/aars/enrouteapi-aar.gradle +17 -0
  12. package/src/android/enroute/aars/glympseapi-aar.gradle +17 -0
  13. package/src/android/enroute/aars/glympseapipush-aar.gradle +17 -0
  14. package/src/android/enroute/aars/glympseapitoolbox-aar.gradle +17 -0
  15. package/src/android/gradle/build.gradle +25 -0
  16. package/src/ios/EnRoutePlugin.h +128 -0
  17. package/src/ios/EnRoutePlugin.mm +1258 -0
  18. package/src/ios/EnRouteWrapper.h +30 -0
  19. package/src/ios/EnRouteWrapper.mm +176 -0
  20. package/www/Agent.js +48 -0
  21. package/www/AgentManager.js +422 -0
  22. package/www/CardMessage.js +49 -0
  23. package/www/ChatMessage.js +29 -0
  24. package/www/CustomerMessage.js +18 -0
  25. package/www/EnRouteManager.js +613 -0
  26. package/www/EtaPlanner.js +129 -0
  27. package/www/GlobalConfig.js +13 -0
  28. package/www/Invite.js +93 -0
  29. package/www/LatLng.js +28 -0
  30. package/www/Location.js +63 -0
  31. package/www/Native.js +215 -0
  32. package/www/Operation.js +67 -0
  33. package/www/OrderItem.js +43 -0
  34. package/www/OrgConfig.js +184 -0
  35. package/www/Organization.js +88 -0
  36. package/www/Pickup.js +119 -0
  37. package/www/PickupArrivalData.js +38 -0
  38. package/www/PickupManager.js +512 -0
  39. package/www/Place.js +33 -0
  40. package/www/Session.js +87 -0
  41. package/www/SessionManager.js +431 -0
  42. package/www/Task.js +106 -0
  43. package/www/TaskManager.js +443 -0
  44. package/www/Ticket.js +205 -0
  45. package/www/Track.js +75 -0
@@ -0,0 +1,30 @@
1
+ //------------------------------------------------------------------------------
2
+ //
3
+ // Copyright (c) 2014 Glympse Inc. All rights reserved.
4
+ //
5
+ //------------------------------------------------------------------------------
6
+
7
+ #import <Foundation/Foundation.h>
8
+ #import "EnRouteApi.h"
9
+ #import <Network/Network.h>
10
+
11
+ @interface EnRouteWrapper : NSObject
12
+ {
13
+ Glympse::EnRoute::GEnRouteManager _manager;
14
+ bool _stopped;
15
+ nw_path_monitor_t _pathMonitor;
16
+ bool _networkConstrained;
17
+
18
+ bool _cellularDataAvailable;
19
+ }
20
+
21
+ + (EnRouteWrapper*)instance;
22
+
23
+ - (Glympse::EnRoute::GEnRouteManager)manager;
24
+
25
+ - (void)create;
26
+ - (void)stop;
27
+ - (bool)isNetworkConstrained;
28
+ - (bool)isCellularDataAvailable;
29
+
30
+ @end
@@ -0,0 +1,176 @@
1
+ //------------------------------------------------------------------------------
2
+ //
3
+ // Copyright (c) 2014 Glympse Inc. All rights reserved.
4
+ //
5
+ //------------------------------------------------------------------------------
6
+
7
+ #import "EnRouteWrapper.h"
8
+ #import <CoreLocation/CoreLocation.h>
9
+ #import <Network/Network.h>
10
+ #import <CoreTelephony/CTCellularData.h>
11
+
12
+ @interface EnRouteWrapper () <GETListener>
13
+
14
+ @end
15
+
16
+ @implementation EnRouteWrapper
17
+
18
+ #pragma mark - Manager Lifecycle
19
+
20
+ - (Glympse::EnRoute::GEnRouteManager)manager
21
+ {
22
+ if ( _stopped )
23
+ {
24
+ [self create];
25
+ _stopped = false;
26
+ }
27
+ return _manager;
28
+ }
29
+
30
+ - (void)create
31
+ {
32
+ bool active = false;
33
+ if ( NULL != _manager )
34
+ {
35
+ active = _manager->isActive();
36
+ }
37
+ [self createManager];
38
+ _manager->setActive(active);
39
+ [GETHelpers subscribe:self onManager:_manager];
40
+ [self setupNetworkMonitor];
41
+ [self setupCellularDataNotifier];
42
+ }
43
+
44
+ - (void)stop
45
+ {
46
+ _manager->stop();
47
+ }
48
+
49
+ - (void)createManager
50
+ {
51
+ _manager = Glympse::EnRoute::EnRouteFactory::createEnRouteManager();
52
+ }
53
+
54
+ - (void)setupNetworkMonitor
55
+ {
56
+ self->_networkConstrained = false;
57
+ if (@available(iOS 13.0, *)) {
58
+ self->_pathMonitor = nw_path_monitor_create_with_type(nw_interface_type_cellular);
59
+ nw_path_monitor_set_update_handler(self->_pathMonitor, ^(nw_path_t _Nonnull path) {
60
+ self->_networkConstrained = nw_path_is_constrained(path);
61
+ NSLog(@"Path is constrained - %d", self->_networkConstrained);
62
+ });
63
+ nw_path_monitor_start(self->_pathMonitor);
64
+ }
65
+ }
66
+
67
+ - (bool)isNetworkConstrained
68
+ {
69
+ return self->_networkConstrained;
70
+ }
71
+
72
+ - (void)setupCellularDataNotifier
73
+ {
74
+ self->_cellularDataAvailable = false;
75
+ CTCellularData *cellularData = [[CTCellularData alloc] init];
76
+ // 0, kCTCellularDataRestrictedStateUnknown
77
+ // 1, kCTCellularDataRestricted
78
+ // 2, kCTCellularDataNotRestricted
79
+ [cellularData setCellularDataRestrictionDidUpdateNotifier:^(CTCellularDataRestrictedState state) {
80
+ NSLog(@"%ld", state);
81
+ self->_cellularDataAvailable = cellularData.restrictedState ==kCTCellularDataNotRestricted?true:false;
82
+ }];
83
+ }
84
+
85
+ - (bool)isCellularDataAvailable
86
+ {
87
+ return self->_cellularDataAvailable;
88
+ }
89
+
90
+ #pragma mark - GETListener
91
+
92
+ - (void)eventsOccurred:(const Glympse::GSource&)source listener:(Glympse::int32)listener events:(Glympse::int32)events param1:(const Glympse::GCommonObj&)param1 param2:(const Glympse::GCommonObj&)param2
93
+ {
94
+ if ( Glympse::EnRoute::EE::LISTENER_ENROUTE_MANAGER == listener )
95
+ {
96
+ if ( 0 != ( events & Glympse::EnRoute::EE::ENROUTE_MANAGER_STARTED ) )
97
+ {
98
+ [self started];
99
+ }
100
+ if ( 0 != ( events & Glympse::EnRoute::EE::ENROUTE_MANAGER_STOPPED ) )
101
+ {
102
+ [self stopped];
103
+ }
104
+ if ( 0 != ( events & Glympse::EnRoute::EE::ENROUTE_MANAGER_SHOW_NOTIFICATION) )
105
+ {
106
+ [self showNotification:(Glympse::GPrimitive)param1];
107
+ }
108
+ }
109
+ }
110
+
111
+ - (void)started
112
+ {
113
+
114
+ }
115
+
116
+ - (void)stopped
117
+ {
118
+ _stopped = true;
119
+ }
120
+
121
+ - (void)showNotification:(const Glympse::GPrimitive&)config
122
+ {
123
+ UILocalNotification* localNotification = [[UILocalNotification alloc] init];
124
+ localNotification.fireDate = [[NSDate date] dateByAddingTimeInterval:0.1];
125
+ localNotification.timeZone = [NSTimeZone defaultTimeZone];
126
+
127
+ Glympse::GString message = config->getString(Glympse::CoreFactory::createString("message"));
128
+ if ( NULL == message )
129
+ {
130
+ return;
131
+ }
132
+
133
+ localNotification.alertBody = NSLocalizedString([NSString stringWithUTF8String:message->getBytes()], "");
134
+ //localNotification.soundName = UILocalNotificationDefaultSoundName;
135
+ localNotification.applicationIconBadgeNumber = [UIApplication sharedApplication].applicationIconBadgeNumber;
136
+
137
+ Glympse::GString pickupId = config->getString(Glympse::CoreFactory::createString("pickup_id"));
138
+ if ( NULL != pickupId )
139
+ {
140
+ NSString* pickupIdString = [NSString stringWithUTF8String:pickupId->getBytes()];
141
+ NSDictionary *infoDict = [NSDictionary dictionaryWithObjectsAndKeys:@"PickupMessage", @"NOTIF_TYPE", pickupIdString, @"PICKUP_ID", nil];
142
+ localNotification.userInfo = infoDict;
143
+ }
144
+
145
+ [[UIApplication sharedApplication] presentLocalNotificationNow:localNotification];
146
+ }
147
+
148
+ #pragma mark - Singleton Initialization
149
+
150
+ static EnRouteWrapper* sharedInstance = nil;
151
+
152
+ + (EnRouteWrapper *)instance
153
+ {
154
+ static dispatch_once_t dispatchOncePredicate = 0;
155
+ dispatch_once(&dispatchOncePredicate, ^{
156
+ sharedInstance = [[super allocWithZone:NULL] init];
157
+ [sharedInstance singletonInit];
158
+ });
159
+ return sharedInstance;
160
+ }
161
+
162
+ + (id)allocWithZone:(NSZone *)zone
163
+ {
164
+ // If coder misunderstands this is a singleton, behave properly with
165
+ // ref count +1 on alloc anyway, and still return singleton!
166
+ return [EnRouteWrapper instance];
167
+ }
168
+
169
+ - (void)singletonInit
170
+ {
171
+ // Create first manager.
172
+ [self create];
173
+ _stopped = false;
174
+ }
175
+
176
+ @end
package/www/Agent.js ADDED
@@ -0,0 +1,48 @@
1
+ function Agent(data) {
2
+ this.update(data);
3
+ }
4
+
5
+ Agent.prototype.update = function(data) {
6
+ this._id = data.id;
7
+ this._glympseUsername = data.glympseUsername;
8
+ this._glympseAvatarUrl = data.glympseAvatarUrl;
9
+ this._name = data.name;
10
+ this._displayName = data.displayName;
11
+ this._email = data.email;
12
+ this._roles = data.roles;
13
+ this._tags = data.tags;
14
+ }
15
+
16
+ Agent.prototype.getId = function() {
17
+ return this._id;
18
+ };
19
+
20
+ Agent.prototype.getGlympseUsername = function() {
21
+ return this._glympseUsername;
22
+ };
23
+
24
+ Agent.prototype.getGlympseAvatarUrl = function() {
25
+ return this._glympseAvatarUrl;
26
+ };
27
+
28
+ Agent.prototype.getName = function() {
29
+ return this._name;
30
+ };
31
+
32
+ Agent.prototype.getDisplayName = function() {
33
+ return this._displayName;
34
+ };
35
+
36
+ Agent.prototype.getEmail = function() {
37
+ return this._email;
38
+ };
39
+
40
+ Agent.prototype.getRoles = function() {
41
+ return this._roles;
42
+ };
43
+
44
+ Agent.prototype.getTags = function() {
45
+ return this._tags;
46
+ };
47
+
48
+ module.exports = Agent;
@@ -0,0 +1,422 @@
1
+ var Agent = require('./Agent');
2
+
3
+ var _baseUrl = 'api.enterprise.glympse.com'
4
+ var _listeners = [];
5
+ var _authToken;
6
+
7
+ var _selfId;
8
+
9
+ var _agents = [];
10
+ var _agentMap = {};
11
+
12
+ var _noop = function(){};
13
+
14
+ function spreadAgentListChanged() {
15
+ console.log("spreadAgentListChanged");
16
+ spreadEvent('agentListChanged');
17
+ };
18
+
19
+ function spreadAgentUpdated(agent) {
20
+ console.log("spreadAgentUpdated");
21
+ if(agent.getId() === _selfId){
22
+ refreshSelf(function() {
23
+ spreadEvent('agentUpdated');
24
+ });
25
+ }
26
+ }
27
+
28
+ function spreadAgentUpdateFailed() {
29
+ console.log("spreadAgentUpdateFailed");
30
+ spreadEvent('agentUpdateFailed');
31
+ };
32
+
33
+ function spreadEvent(event, params) {
34
+ if (_listeners) {
35
+ for (var index = 0; index < _listeners.length; ++index){
36
+ var listener = _listeners[index];
37
+ if ( typeof listener[event] == 'function' )
38
+ {
39
+ listener[event].apply(listener, params);
40
+ }
41
+ }
42
+ }
43
+ };
44
+
45
+ function refreshSelf(callback) {
46
+
47
+ var success = function(body) {
48
+ console.log('success');
49
+
50
+ var selfAgent = buildAgent(body);
51
+ _selfId = selfAgent.getId();
52
+ _agentMap[_selfId] = selfAgent;
53
+ // console.debug('[agent-service] refresh agent success', selfAgent);
54
+ if (callback) {
55
+ callback();
56
+ }
57
+ };
58
+
59
+ var failure = function(response) {
60
+ console.debug('[agent-service] refresh agent failed'/*, response*/);
61
+ };
62
+
63
+ sendRestCall(buildUrl('agent/self?avatar=true'), 'GET', 'application/json', null, success, failure);
64
+ };
65
+
66
+ function refreshAgentList() {
67
+
68
+ var success = function(body) {
69
+
70
+ // Retain the self agent if it exists
71
+ let selfAgent = _agentMap[_selfId];
72
+ _agents = [];
73
+ _agentMap = {};
74
+ for (var index = 0; index < body.length; ++index){
75
+ var agentBody = body[index];
76
+
77
+ // If this is the self agent, preserve the avatar url so that it's not overwritten
78
+ if (agentBody._id === _selfId && !!selfAgent) {
79
+ agentBody.glympse.avatar_url = selfAgent._glympseAvatarUrl;
80
+ }
81
+ var agent = buildAgent(agentBody);
82
+ _agents.push(agent);
83
+ _agentMap[agent.getId()] = agent;
84
+ }
85
+ // TODO: This will always spread the event when the call returns, regardless of a change to the list
86
+ spreadAgentListChanged();
87
+ };
88
+
89
+ var failure = function(response) {
90
+ console.debug('[agent-service] refresh agent list failed'/*, response*/);
91
+ };
92
+
93
+ sendRestCall(buildUrl('org/self/agents'), 'GET', 'application/json', null, success, failure);
94
+ };
95
+
96
+ function sendRestCall(endpoint, method, contentType, body, success, failure) {
97
+
98
+ if ( !_authToken ) {
99
+ if (failure)
100
+ {
101
+ failure();
102
+ }
103
+ return;
104
+ }
105
+
106
+ var request = new XMLHttpRequest();
107
+ request.open(method, endpoint);
108
+ request.setRequestHeader('Content-Type', contentType);
109
+ request.setRequestHeader('Authorization', 'Bearer ' + _authToken);
110
+ request.onreadystatechange = function() {
111
+ if (request.readyState != 4) {
112
+ return;
113
+ }
114
+ if (request.status != 200 ) {
115
+ if ( failure ) {
116
+ failure(request.responseText);
117
+ }
118
+ return;
119
+ }
120
+ var response = JSON.parse(request.responseText);
121
+ var body = response.body;
122
+ if ( success ) {
123
+ success(body);
124
+ }
125
+ }
126
+
127
+ if ( method === 'GET' ) {
128
+ request.send();
129
+ }
130
+ else if ( method === 'POST' ) {
131
+ if ( contentType === 'application/json')
132
+ {
133
+ request.send(JSON.stringify(body));
134
+ }
135
+ else if (contentType === 'image/jpeg' || contentType === 'image/png' )
136
+ {
137
+ request.send(body);
138
+ }
139
+ }
140
+ };
141
+
142
+ function buildAgent(object) {
143
+ var data = {};
144
+ data.id = object._id;
145
+ data.glympseUsername = object.glympse.username;
146
+ data.glympseAvatarUrl = object.glympse.avatar_url;
147
+ data.name = object.name;
148
+ data.displayName = object.display_name;
149
+ data.email = object.email;
150
+ data.roles = object.roles;
151
+ data.tags = object.tags;
152
+
153
+ return new Agent(data);
154
+ };
155
+
156
+ function buildUrl(url) {
157
+ return "https://" + _baseUrl + "/api/v1/" + url;
158
+ };
159
+
160
+ function findAgentById(id) {
161
+ return _agentMap[id] || null;
162
+ }
163
+
164
+ module.exports = {
165
+
166
+ init: function(authToken) {
167
+ console.log("agentManager init");
168
+ _authToken = authToken;
169
+ refreshSelf();
170
+ },
171
+
172
+ addListener: function(listener) {
173
+ if ( !listener )
174
+ {
175
+ console.log('Null listener not supported');
176
+ return;
177
+ }
178
+
179
+ var index = _listeners.indexOf(listener);
180
+ if (index > -1)
181
+ {
182
+ console.log('Listener already registered!');
183
+ return;
184
+ }
185
+
186
+ _listeners.push(listener);
187
+ },
188
+
189
+ removeListener: function(listener) {
190
+ var index = _listeners.indexOf(listener);
191
+ if (index > -1) {
192
+ _listeners.splice(index, 1);
193
+ }
194
+ },
195
+
196
+ setBaseUrl: function(baseUrl) {
197
+ _baseUrl = baseUrl;
198
+ },
199
+
200
+ getSelf: function() {
201
+ if ( _selfId )
202
+ {
203
+ return findAgentById(_selfId)
204
+ }
205
+ return _selfAgent;
206
+ },
207
+
208
+ getAgents: function(){
209
+ return _agents;
210
+ },
211
+
212
+ refreshAgents: function(){
213
+ refreshAgentList();
214
+ },
215
+
216
+ getAgentSignature: function(agent, success, failure){
217
+
218
+ var internalSuccess = function(body) {
219
+
220
+ if ( body && body.hasOwnProperty('signature') && body.hasOwnProperty('sequence') ) {
221
+ var signature = body.signature;
222
+ var sequence = body.sequence;
223
+ success(signature, sequence);
224
+ }
225
+ else {
226
+ failure(body);
227
+ }
228
+ };
229
+
230
+ var internalFailure = function(response) {
231
+ failure(response);
232
+ };
233
+
234
+ var url = buildUrl('agent/' + agent.getId() + '/voip/signature?type=signature');
235
+ sendRestCall(url, 'GET', 'application/json', null, internalSuccess, internalFailure);
236
+ },
237
+
238
+ createAgent: function(username, name, password){
239
+
240
+ var success = function(body) {
241
+ refreshAgentList();
242
+ };
243
+
244
+ var failure = function(response) {
245
+ spreadAgentListChanged();
246
+ };
247
+
248
+ var url = buildUrl('org/self/create_agent');
249
+
250
+ var body = {};
251
+ body['type'] = 'tracking';
252
+ body['username'] = username;
253
+ body['name'] = name;
254
+ if ( password ) {
255
+ body['password'] = password;
256
+ }
257
+ body['roles'] = 'agent';
258
+
259
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
260
+ },
261
+
262
+ updateAgentName: function(agent, name) {
263
+
264
+ var success = function(body) {
265
+ spreadAgentUpdated(agent);
266
+ };
267
+
268
+ var failure = function(response) {
269
+ spreadAgentUpdateFailed(agent);
270
+ };
271
+
272
+ var url = buildUrl('agent/' + agent.getId() + '/profile_update');
273
+ var body = {};
274
+ body['name'] = name;
275
+
276
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
277
+ },
278
+
279
+ updateAgentDisplayName: function(agent, displayName) {
280
+
281
+ var success = function(body) {
282
+ spreadAgentUpdated(agent);
283
+ };
284
+
285
+ var failure = function(response) {
286
+ spreadAgentUpdateFailed(agent);
287
+ };
288
+
289
+ var url = buildUrl('agent/' + agent.getId() + '/profile_update');
290
+ var body = {};
291
+ body['display_name'] = displayName;
292
+
293
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
294
+ },
295
+
296
+ updateAgentEmail: function(agent, email) {
297
+
298
+ var success = function(body) {
299
+ spreadAgentUpdated(agent);
300
+ };
301
+
302
+ var failure = function(response) {
303
+ spreadAgentUpdateFailed(agent);
304
+ };
305
+
306
+ var url = buildUrl('agent/' + agent.getId() + '/profile_update');
307
+ var body = {};
308
+ body['email'] = email;
309
+
310
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
311
+ },
312
+
313
+ updateAgentPassword: function(agent, password) {
314
+
315
+ var success = function(body) {
316
+ spreadAgentUpdated(agent);
317
+ };
318
+
319
+ var failure = function(response) {
320
+ spreadAgentUpdateFailed(agent);
321
+ };
322
+
323
+ var url = buildUrl('agent/' + agent.getId() + '/link_account');
324
+ var body = {};
325
+ body['type'] = 'tracking';
326
+ var profile = {};
327
+ profile['password'] = password;
328
+ body['profile'] = profile;
329
+
330
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
331
+ },
332
+
333
+ updateAgentAvatar: function(agent, avatar, contentType) {
334
+
335
+ var success = function(body) {
336
+ spreadAgentUpdated(agent);
337
+ };
338
+
339
+ var failure = function(response) {
340
+ spreadAgentUpdateFailed(agent);
341
+ };
342
+
343
+ var url = buildUrl('agent/' + agent.getId() + '/update_avatar');
344
+
345
+ sendRestCall(url, 'POST', contentType, avatar, success, failure);
346
+ },
347
+
348
+ updateAgentRoles: function(agent, roles){
349
+
350
+ var success = function(body) {
351
+ spreadAgentUpdated(agent);
352
+ };
353
+
354
+ var failure = function(response) {
355
+ spreadAgentUpdateFailed(agent);
356
+ };
357
+
358
+ var url = buildUrl('agent/' + agent.getId() + '/set_roles');
359
+
360
+ sendRestCall(url, 'POST', 'application/json', roles, success, failure);
361
+ },
362
+
363
+ updateAgentTags: function(agent, tags){
364
+
365
+ var success = function(body) {
366
+ spreadAgentUpdated(agent);
367
+ };
368
+
369
+ var failure = function(response) {
370
+ spreadAgentUpdateFailed(agent);
371
+ };
372
+
373
+ var url = buildUrl('agent/' + agent.getId() + '/update');
374
+
375
+ var body = {};
376
+
377
+ body['tags'] = tags;
378
+
379
+ sendRestCall(url, 'POST', 'application/json', body, success, failure);
380
+ },
381
+
382
+ deleteAgent: function(agent){
383
+
384
+ var success = function(body) {
385
+ refreshAgentList();
386
+ };
387
+
388
+ var failure = function(response) {
389
+ // If the delete really did fail, then the list didn't change, BUT we need to fire any event since the call is finished
390
+ spreadAgentListChanged();
391
+ };
392
+
393
+ var url = buildUrl('agent/' + agent.getId() + '/remove');
394
+
395
+ sendRestCall(url, 'GET', 'application/json', null, success, failure);
396
+ },
397
+
398
+ submitAgentFeedback: function(feedbackType, comments) {
399
+
400
+ var success = function(body) {
401
+ console.log('feedback success: ' + body);
402
+ };
403
+
404
+ var failure = function(response) {
405
+ console.log('feedback failed: ' + response);
406
+ };
407
+
408
+ sendRestCall(buildUrl('feedback/agents/submit')
409
+ , 'POST'
410
+ , 'application/json'
411
+ , { comment: comments,
412
+ items: [ { _id: 127, value: feedbackType } ]
413
+ }
414
+ , success
415
+ , failure
416
+ );
417
+ },
418
+
419
+ findAgentById: function(agentId){
420
+ return _agentMap[agentId];
421
+ }
422
+ };