@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,184 @@
1
+ function OrgConfig(data) {
2
+ this._brandingId = data.brandingId;
3
+ this._confirmDuration = data.confirmDuration;
4
+ this._defaultDuration = data.defaultDuration;
5
+ this._autoExtend = data.autoExtend;
6
+ this._shareSpeed = data.shareSpeed;
7
+ this._phaseSupportEnabled = data.phaseSupportEnabled;
8
+ this._completionPhases = data.completionPhases;
9
+ this._chatEnabledPhases = data.chatEnabledPhases;
10
+ this._chatEnabledTaskPhases = data.chatEnabledTaskPhases;
11
+ this._pickerDisabledTaskPhases = data.pickerDisabledTaskPhases;
12
+ this._sessionModeEnabled = data.sessionModeEnabled;
13
+ this._keepLocationAlive = data.keepLocationAlive;
14
+ this._etaQueryPeriod = data.etaQueryPeriod;
15
+ this._stopDuration = data.stopDuration;
16
+ this._activeSessionTimeout = data.activeSessionTimeout;
17
+ this._sessionControlMode = data.sessionControlMode;
18
+ this._routingEnabled = data.routingEnabled;
19
+ this._routingProfile = data.routingProfile;
20
+ this._baseGeofenceRadius = data.baseGeofenceRadius;
21
+ this._taskGeofenceRadius = data.taskGeofenceRadius;
22
+ this._advancedXoaProfile = data.advancedXoaProfile;
23
+ this._completeArrivedTask = data.completeArrivedTask;
24
+ this._autoRefresh = data.autoRefresh;
25
+ this._autoRefreshPeriod = data.autoRefreshPeriod;
26
+ this._autoFinish = data.autoFinish;
27
+ this._autoFinishDuration = data.autoFinishDuration;
28
+ this._arrivalPhase = data.arrivalPhase;
29
+ this._finalPhase = data.finalPhase;
30
+ this._areCardsEnabled = data.areCardsEnabled;
31
+ this._isPickupEnabled = data.isPickupEnabled;
32
+ this._areShiftsEnabled = data.areShiftsEnabled;
33
+ this._areShiftsTiedToAuth = data.areShiftsTiedToAuth;
34
+ this._isSchemaLaunch = data.isSchemaLaunch;
35
+ this._liveTaskVisibility = data.liveTaskVisibility;
36
+ this._isSignatureUploadEnabled = data.isSignatureUploadEnabled;
37
+ this._isPhotoUploadEnabled = data.isPhotoUploadEnabled;
38
+ }
39
+
40
+ OrgConfig.prototype.getBrandingId = function() {
41
+ return this._brandingId;
42
+ };
43
+
44
+ OrgConfig.prototype.shouldConfirmDuration = function() {
45
+ return this._confirmDuration;
46
+ };
47
+
48
+ OrgConfig.prototype.getDefaultDuration = function() {
49
+ return this._defaultDuration;
50
+ };
51
+
52
+ OrgConfig.prototype.shouldAutoExtend = function() {
53
+ return this._autoExtend;
54
+ };
55
+
56
+ OrgConfig.prototype.shouldShareSpeed = function() {
57
+ return this._shareSpeed;
58
+ };
59
+
60
+ OrgConfig.prototype.isPhaseSupportEnabled = function() {
61
+ return this._phaseSupportEnabled;
62
+ };
63
+
64
+ OrgConfig.prototype.getCompletionPhases = function() {
65
+ return this._completionPhases;
66
+ };
67
+
68
+ OrgConfig.prototype.getChatEnabledPhases = function() {
69
+ return this._chatEnabledPhases;
70
+ };
71
+
72
+ OrgConfig.prototype.getChatEnabledTaskPhases = function() {
73
+ return this._chatEnabledTaskPhases;
74
+ };
75
+
76
+ OrgConfig.prototype.getPickerDisabledTaskPhases = function() {
77
+ return this._pickerDisabledTaskPhases;
78
+ };
79
+
80
+ OrgConfig.prototype.isSessionModeEnabled = function() {
81
+ return this._sessionModeEnabled;
82
+ };
83
+
84
+ OrgConfig.prototype.shouldKeepLocationAlive = function() {
85
+ return this._keepLocationAlive;
86
+ };
87
+
88
+ OrgConfig.prototype.getEtaQueryPeriod = function() {
89
+ return this._etaQueryPeriod;
90
+ };
91
+
92
+ OrgConfig.prototype.getStopDuration = function() {
93
+ return this._stopDuration;
94
+ };
95
+
96
+ OrgConfig.prototype.getActiveSessionTimeout = function() {
97
+ return this._activeSessionTimeout;
98
+ };
99
+
100
+ OrgConfig.prototype.getSessionControlMode = function() {
101
+ return this._sessionControlMode;
102
+ };
103
+
104
+ OrgConfig.prototype.isRoutingEnabled = function() {
105
+ return this._routingEnabled;
106
+ };
107
+
108
+ OrgConfig.prototype.getRoutingProfile = function() {
109
+ return this._routingProfile;
110
+ };
111
+
112
+ OrgConfig.prototype.getBaseGeofenceRadius = function() {
113
+ return this._baseGeofenceRadius;
114
+ };
115
+
116
+ OrgConfig.prototype.getTaskGeofenceRadius = function() {
117
+ return this._taskGeofenceRadius;
118
+ };
119
+
120
+ OrgConfig.prototype.getAdvancedXoaProfile = function() {
121
+ return this._advancedXoaProfile;
122
+ };
123
+
124
+ OrgConfig.prototype.shouldCompleteArrivedTask = function() {
125
+ return this._completeArrivedTask;
126
+ };
127
+
128
+ OrgConfig.prototype.shouldAutoRefresh = function() {
129
+ return this._autoRefresh;
130
+ };
131
+
132
+ OrgConfig.prototype.getAutoRefreshPeriod = function() {
133
+ return this._autoRefreshPeriod;
134
+ };
135
+
136
+ OrgConfig.prototype.shouldAutoFinish = function() {
137
+ return this._autoFinish;
138
+ };
139
+
140
+ OrgConfig.prototype.getAutoFinishDuration = function() {
141
+ return this._autoFinishDuration;
142
+ };
143
+
144
+ OrgConfig.prototype.getArrivalPhase = function() {
145
+ return this._arrivalPhase;
146
+ };
147
+
148
+ OrgConfig.prototype.getFinalPhase = function() {
149
+ return this._finalPhase;
150
+ };
151
+
152
+ OrgConfig.prototype.areCardsEnabled = function() {
153
+ return this._areCardsEnabled;
154
+ };
155
+
156
+ OrgConfig.prototype.isPickupEnabled = function() {
157
+ return this._isPickupEnabled;
158
+ };
159
+
160
+ OrgConfig.prototype.areShiftsEnabled = function() {
161
+ return this._areShiftsEnabled;
162
+ };
163
+
164
+ OrgConfig.prototype.areShiftsTiedToAuth = function() {
165
+ return this._areShiftsTiedToAuth;
166
+ };
167
+
168
+ OrgConfig.prototype.isSchemaLaunch = function() {
169
+ return this._isSchemaLaunch;
170
+ };
171
+
172
+ OrgConfig.prototype.getLiveTaskVisibility = function() {
173
+ return this._liveTaskVisibility;
174
+ };
175
+
176
+ OrgConfig.prototype.isSignatureUploadEnabled = function() {
177
+ return this._isSignatureUploadEnabled;
178
+ };
179
+
180
+ OrgConfig.prototype.isPhotoUploadEnabled = function() {
181
+ return this._isPhotoUploadEnabled;
182
+ };
183
+
184
+ module.exports = OrgConfig;
@@ -0,0 +1,88 @@
1
+ var OrgConfig = require('./OrgConfig');
2
+ var GlobalConfig = require('./GlobalConfig');
3
+ var Place = require('./Place');
4
+ var Invite = require('./Invite');
5
+
6
+ function Organization(data) {
7
+ this.update(data);
8
+ }
9
+
10
+ Organization.prototype.update = function(data) {
11
+ this._id = data.id;
12
+ this._name = data.name;
13
+ this._adminEmail = data.adminEmail;
14
+ this._glympseApiServer = data.glympseApiServer;
15
+ this._glympseApiKey = data.glympseApiKey;
16
+ this._moderators = [];
17
+ if ( data.moderators ) { this._moderators = data.moderators.map(function(item_data){ return new Invite(item_data); }); }
18
+ this._predefinedMessages = data.predefinedMessages;
19
+
20
+ var o = data.baseLocation;
21
+ if (o) {
22
+ if (this._baseLocation) {
23
+ this._baseLocation.update(o);
24
+ } else {
25
+ this._baseLocation = new Place(o);
26
+ }
27
+ }
28
+
29
+ o = data.globalConfig;
30
+ if (o) {
31
+ if (this._globalConfig) {
32
+ this._globalConfig.update(o);
33
+ } else {
34
+ this._globalConfig = new GlobalConfig(o);
35
+ }
36
+ }
37
+
38
+ o = data.config;
39
+ if (o) {
40
+ if (this._config) {
41
+ this._config.update(o);
42
+ } else {
43
+ this._config = new OrgConfig(o);
44
+ }
45
+ }
46
+ }
47
+
48
+ Organization.prototype.getId = function() {
49
+ return this._id;
50
+ };
51
+
52
+ Organization.prototype.getName = function() {
53
+ return this._name;
54
+ };
55
+
56
+ Organization.prototype.getAdminEmail = function() {
57
+ return this._adminEmail;
58
+ };
59
+
60
+ Organization.prototype.getGlympseApiServer = function() {
61
+ return this._glympseApiServer;
62
+ };
63
+
64
+ Organization.prototype.getGlympseApiKey = function() {
65
+ return this._glympseApiKey;
66
+ };
67
+
68
+ Organization.prototype.getModerators = function() {
69
+ return this._moderators;
70
+ };
71
+
72
+ Organization.prototype.getBaseLocation = function() {
73
+ return this._baseLocation;
74
+ };
75
+
76
+ Organization.prototype.getGlobalConfig = function() {
77
+ return this._globalConfig;
78
+ };
79
+
80
+ Organization.prototype.getConfig = function() {
81
+ return this._config;
82
+ };
83
+
84
+ Organization.prototype.getPredefinedMessages = function() {
85
+ return this._predefinedMessages;
86
+ };
87
+
88
+ module.exports = Organization;
package/www/Pickup.js ADDED
@@ -0,0 +1,119 @@
1
+ var CardMessage = require('./CardMessage');
2
+ var Ticket = require('./Ticket');
3
+ var OrderItem = require('./OrderItem');
4
+ var PickupArrivalData = require('./PickupArrivalData');
5
+ var CustomerMessage = require('./CustomerMessage');
6
+ var ChatMessage = require('./ChatMessage');
7
+
8
+ function Pickup(data) {
9
+ this._id = data.id;
10
+ this._description = data.description;
11
+ this._inviteCode = data.inviteCode;
12
+ this._createdTime = data.createdTime;
13
+ this._dueTime = data.dueTime;
14
+ this._completedTime = data.completedTime;
15
+ this._arrivedTime = data.arrivedTime;
16
+ this._agentId = data.agentId;
17
+ this._manualEta = data.manualEta;
18
+ this._metadata = data.metadata;
19
+ this._phase = data.phase;
20
+ this._foreignId = data.foreignId;
21
+ this._customerName = data.customerName;
22
+ this._notes = data.notes;
23
+ this._chatRoomId = data.chatRoomId;
24
+ this._lastReadSequenceNumber = data.lastReadSequenceNumber;
25
+ if ( null != data.customerTicket ) this._customerTicket = new Ticket(data.customerTicket);
26
+ if ( null != data.customerArrivalData ) this._customerArrivalData = new PickupArrivalData(data.customerArrivalData);
27
+ this._messages = [];
28
+ if ( data.messages ) { this._messages = data.messages.map(function(item_data){ return new CustomerMessage(item_data); }); }
29
+ this._chatMessages = [];
30
+ if ( data.chatMessages ) { this._chatMessages = data.chatMessages.map(function(item_data){ return new ChatMessage(item_data); }); }
31
+ this._orderItems = [];
32
+ if ( data.orderItems ) { this._orderItems = data.orderItems.map(function(item_data){ return new OrderItem(item_data); }); }
33
+ }
34
+
35
+ Pickup.prototype.getId = function() {
36
+ return this._id;
37
+ };
38
+
39
+ Pickup.prototype.getDescription = function() {
40
+ return this._description;
41
+ };
42
+
43
+ Pickup.prototype.getInviteCode = function() {
44
+ return this._inviteCode;
45
+ };
46
+
47
+ Pickup.prototype.getCreatedTime = function() {
48
+ return this._createdTime;
49
+ };
50
+
51
+ Pickup.prototype.getDueTime = function() {
52
+ return this._dueTime;
53
+ };
54
+
55
+ Pickup.prototype.getCompletedTime = function() {
56
+ return this._completedTime;
57
+ };
58
+
59
+ Pickup.prototype.getArrivedTime = function() {
60
+ return this._arrivedTime;
61
+ };
62
+
63
+ Pickup.prototype.getAgentId = function() {
64
+ return this._agentId;
65
+ };
66
+
67
+ Pickup.prototype.getManualEta = function() {
68
+ return this._manualEta;
69
+ };
70
+
71
+ Pickup.prototype.getMetadata = function() {
72
+ return this._metadata;
73
+ };
74
+
75
+ Pickup.prototype.getPhase = function() {
76
+ return this._phase;
77
+ };
78
+
79
+ Pickup.prototype.getForeignId = function() {
80
+ return this._foreignId;
81
+ };
82
+
83
+ Pickup.prototype.getCustomerName = function() {
84
+ return this._customerName;
85
+ };
86
+
87
+ Pickup.prototype.getNotes = function() {
88
+ return this._notes;
89
+ };
90
+
91
+ Pickup.prototype.getChatRoomId = function() {
92
+ return this._chatRoomId;
93
+ };
94
+
95
+ Pickup.prototype.getLastReadSequenceNumber = function() {
96
+ return this._lastReadSequenceNumber;
97
+ };
98
+
99
+ Pickup.prototype.getCustomerTicket = function() {
100
+ return this._customerTicket;
101
+ };
102
+
103
+ Pickup.prototype.getCustomerArrivalData = function() {
104
+ return this._customerArrivalData;
105
+ };
106
+
107
+ Pickup.prototype.getMessages = function() {
108
+ return this._messages;
109
+ };
110
+
111
+ Pickup.prototype.getChatMessages = function() {
112
+ return this._chatMessages;
113
+ };
114
+
115
+ Pickup.prototype.getOrderItems = function() {
116
+ return this._orderItems;
117
+ };
118
+
119
+ module.exports = Pickup;
@@ -0,0 +1,38 @@
1
+ function PickupArrivalData(data) {
2
+ this.update(data);
3
+ }
4
+
5
+ PickupArrivalData.prototype.update = function(data) {
6
+ this._stall = data.stall;
7
+ this._licensePlate = data.licensePlate;
8
+ this._carMake = data.carMake;
9
+ this._carModel = data.carModel;
10
+ this._carColor = data.carColor;
11
+ this._isPickupInStore = data.isPickupInStore;
12
+ }
13
+
14
+ PickupArrivalData.prototype.getStall = function() {
15
+ return this._stall;
16
+ };
17
+
18
+ PickupArrivalData.prototype.getLicensePlate = function() {
19
+ return this._licensePlate;
20
+ };
21
+
22
+ PickupArrivalData.prototype.getCarMake = function() {
23
+ return this._carMake;
24
+ };
25
+
26
+ PickupArrivalData.prototype.getCarModel = function() {
27
+ return this._carModel;
28
+ };
29
+
30
+ PickupArrivalData.prototype.getCarColor = function() {
31
+ return this._carColor;
32
+ };
33
+
34
+ PickupArrivalData.prototype.isPickupInStore = function() {
35
+ return this._isPickupInStore;
36
+ };
37
+
38
+ module.exports = PickupArrivalData;