@como/como-client 0.7.93 → 0.7.95

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 (3) hide show
  1. package/lib/como.js +437 -380
  2. package/package.json +1 -1
  3. package/src/como.js +23 -2
package/lib/como.js CHANGED
@@ -201,7 +201,7 @@ var Como = function () {
201
201
  refreshFailed = false;
202
202
 
203
203
  if (!isExpired) {
204
- _context2.next = 29;
204
+ _context2.next = 30;
205
205
  break;
206
206
  }
207
207
 
@@ -213,7 +213,7 @@ var Como = function () {
213
213
  data = _context2.sent;
214
214
 
215
215
  updateCredentials(data, true);
216
- _context2.next = 29;
216
+ _context2.next = 30;
217
217
  break;
218
218
 
219
219
  case 24:
@@ -224,74 +224,75 @@ var Como = function () {
224
224
  //refresh failed - need to revoke and signOn again
225
225
  initService.logError({ method: 'refreshToken', installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken, error: _context2.t0.message });
226
226
  refreshFailed = true;
227
+ credExist = false;
227
228
 
228
- case 29:
229
+ case 30:
229
230
  interval = 0;
230
231
 
231
- if (!(refreshFailed || !credExist)) {
232
- _context2.next = 51;
232
+ if (credExist) {
233
+ _context2.next = 52;
233
234
  break;
234
235
  }
235
236
 
236
- case 31:
237
+ case 32:
237
238
  if (!(!credExist && interval < 3000)) {
238
- _context2.next = 49;
239
+ _context2.next = 50;
239
240
  break;
240
241
  }
241
242
 
242
- _context2.prev = 32;
243
- _context2.next = 35;
243
+ _context2.prev = 33;
244
+ _context2.next = 36;
244
245
  return this.comoData.initApi.signOn(installationId, locationId, source);
245
246
 
246
- case 35:
247
+ case 36:
247
248
  _data = _context2.sent;
248
249
 
249
250
  updateCredentials(_data, true);
250
251
  credExist = true;
251
- _context2.next = 47;
252
+ _context2.next = 48;
252
253
  break;
253
254
 
254
- case 40:
255
- _context2.prev = 40;
256
- _context2.t1 = _context2['catch'](32);
255
+ case 41:
256
+ _context2.prev = 41;
257
+ _context2.t1 = _context2['catch'](33);
257
258
 
258
259
  console.error('Failed to signOn, installationId:' + installationId + ', locationId:' + locationId + ', source:' + source + ',interval:' + interval + ', error:' + _context2.t1);
259
260
  interval += 1000;
260
261
  initService.logError({ method: 'signOn no accessToken', accessToken: accessToken, isExpired: isExpired, refreshFailed: refreshFailed, credExist: credExist, installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken, interval: interval, error: _context2.t1.message });
261
- _context2.next = 47;
262
+ _context2.next = 48;
262
263
  return new _promise2.default(function (r) {
263
264
  return setTimeout(r, interval);
264
265
  });
265
266
 
266
- case 47:
267
- _context2.next = 31;
267
+ case 48:
268
+ _context2.next = 32;
268
269
  break;
269
270
 
270
- case 49:
271
- _context2.next = 74;
271
+ case 50:
272
+ _context2.next = 75;
272
273
  break;
273
274
 
274
- case 51:
275
+ case 52:
275
276
  if (isExpired) {
276
- _context2.next = 74;
277
+ _context2.next = 75;
277
278
  break;
278
279
  }
279
280
 
280
281
  signOnSuccessfully = false;
281
282
 
282
- case 53:
283
+ case 54:
283
284
  if (!(!signOnSuccessfully && interval < 3000)) {
284
- _context2.next = 74;
285
+ _context2.next = 75;
285
286
  break;
286
287
  }
287
288
 
288
- _context2.prev = 54;
289
+ _context2.prev = 55;
289
290
 
290
291
  console.log('signOn with installationId:' + installationId + ', locationId:' + locationId + ', source:' + source + ',accessToken:' + accessToken);
291
- _context2.next = 58;
292
+ _context2.next = 59;
292
293
  return this.comoData.initApi.signOn(installationId, locationId, source, accessToken);
293
294
 
294
- case 58:
295
+ case 59:
295
296
  _data2 = _context2.sent;
296
297
 
297
298
  console.log('signOn with result " ' + (0, _stringify2.default)(_data2));
@@ -303,37 +304,37 @@ var Como = function () {
303
304
  this.comoData.reCaptchaSiteKey = _data2.config.recaptchaSiteKey;
304
305
  }
305
306
  signOnSuccessfully = true;
306
- _context2.next = 72;
307
+ _context2.next = 73;
307
308
  break;
308
309
 
309
- case 65:
310
- _context2.prev = 65;
311
- _context2.t2 = _context2['catch'](54);
310
+ case 66:
311
+ _context2.prev = 66;
312
+ _context2.t2 = _context2['catch'](55);
312
313
 
313
314
  console.error('Failed signOn with accessToken, installationId:' + installationId + ', locationId:' + locationId + ', source:' + source + ',accessToken:' + accessToken + ', error:' + _context2.t2.message);
314
315
  interval += 1000;
315
316
  initService.logError({ method: 'signOn with credentials', accessToken: accessToken, isExpired: isExpired, refreshFailed: refreshFailed, credExist: credExist, installationId: installationId, locationId: locationId, source: source, refreshToken: refreshToken, interval: interval, error: _context2.t2.message });
316
- _context2.next = 72;
317
+ _context2.next = 73;
317
318
  return new _promise2.default(function (r) {
318
319
  return setTimeout(r, interval);
319
320
  });
320
321
 
321
- case 72:
322
- _context2.next = 53;
322
+ case 73:
323
+ _context2.next = 54;
323
324
  break;
324
325
 
325
- case 74:
326
+ case 75:
326
327
  if (!this.comoData.token) {
327
328
  this.comoData.token = this.comoData.accessToken;
328
329
  }
329
330
  return _context2.abrupt('return', this.getCredentials());
330
331
 
331
- case 76:
332
+ case 77:
332
333
  case 'end':
333
334
  return _context2.stop();
334
335
  }
335
336
  }
336
- }, _callee2, this, [[17, 24], [32, 40], [54, 65]]);
337
+ }, _callee2, this, [[17, 24], [33, 41], [55, 66]]);
337
338
  }));
338
339
 
339
340
  function init(_x, _x2, _x3) {
@@ -364,6 +365,9 @@ var Como = function () {
364
365
  this.comoData.expiresIn = credentials.expiresIn;
365
366
  if (credentials.config) {
366
367
  this.comoData.reCaptchaSiteKey = credentials.config.recaptchaSiteKey;
368
+ if (credentials.config.recaptcha) {
369
+ this.comoData.recaptchaConfig = credentials.config.recaptcha;
370
+ }
367
371
  }
368
372
  }
369
373
  }, {
@@ -688,114 +692,167 @@ var Como = function () {
688
692
  }()
689
693
 
690
694
  /**
691
- *
692
- * @param {string} unsubscribeSms unsubscribe user at location
693
- * @param {string} PhoneNumber phone number to identify user
695
+ * @param {string} language language code
694
696
  */
695
697
 
696
698
  }, {
697
- key: 'unsubscribeSms',
699
+ key: 'updateLanguage',
698
700
  value: function () {
699
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(PhoneNumber) {
700
- var _comoData4, api, locationId, identifier, data, _error$response$data5, code, message;
701
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(language) {
702
+ var api, data, _error$response$data5, code, message;
701
703
 
702
704
  return _regenerator2.default.wrap(function _callee9$(_context9) {
703
705
  while (1) {
704
706
  switch (_context9.prev = _context9.next) {
705
707
  case 0:
706
- _comoData4 = this.comoData, api = _comoData4.api, locationId = _comoData4.locationId;
708
+ api = this.comoData.api;
707
709
  _context9.prev = 1;
708
- identifier = { PhoneNumber: PhoneNumber };
709
- _context9.next = 5;
710
- return api.unsubscribeSms(locationId, identifier);
710
+ _context9.next = 4;
711
+ return api.updateLanguage(language);
711
712
 
712
- case 5:
713
+ case 4:
713
714
  data = _context9.sent;
714
715
  return _context9.abrupt('return', data);
715
716
 
716
- case 9:
717
- _context9.prev = 9;
717
+ case 8:
718
+ _context9.prev = 8;
718
719
  _context9.t0 = _context9['catch'](1);
719
720
 
720
721
  if (!(_context9.t0.response && _context9.t0.response.data)) {
721
- _context9.next = 14;
722
+ _context9.next = 13;
722
723
  break;
723
724
  }
724
725
 
725
726
  _error$response$data5 = _context9.t0.response.data, code = _error$response$data5.code, message = _error$response$data5.message;
726
727
  throw new Error(code || message);
727
728
 
728
- case 14:
729
+ case 13:
729
730
  throw _context9.t0;
730
731
 
731
- case 15:
732
+ case 14:
732
733
  case 'end':
733
734
  return _context9.stop();
734
735
  }
735
736
  }
736
- }, _callee9, this, [[1, 9]]);
737
+ }, _callee9, this, [[1, 8]]);
737
738
  }));
738
739
 
739
- function unsubscribeSms(_x28) {
740
+ function updateLanguage(_x28) {
740
741
  return _ref9.apply(this, arguments);
741
742
  }
742
743
 
743
- return unsubscribeSms;
744
+ return updateLanguage;
744
745
  }()
745
746
 
746
747
  /**
747
748
  *
748
- * @param {Object} identifier an object which identifies the user by its credentials
749
- * @param {string} type login type i.e PhoneNumber/Email/etc
750
- * @param {reCaptchaToken} reCaptcha token for login chalenge
749
+ * @param {string} unsubscribeSms unsubscribe user at location
750
+ * @param {string} PhoneNumber phone number to identify user
751
751
  */
752
752
 
753
753
  }, {
754
- key: 'login',
754
+ key: 'unsubscribeSms',
755
755
  value: function () {
756
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(identifier, type, reCaptchaToken) {
757
- var api, data, _error$response$data6, code, message;
756
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(PhoneNumber) {
757
+ var _comoData4, api, locationId, identifier, data, _error$response$data6, code, message;
758
758
 
759
759
  return _regenerator2.default.wrap(function _callee10$(_context10) {
760
760
  while (1) {
761
761
  switch (_context10.prev = _context10.next) {
762
762
  case 0:
763
- api = this.comoData.api;
763
+ _comoData4 = this.comoData, api = _comoData4.api, locationId = _comoData4.locationId;
764
764
  _context10.prev = 1;
765
- _context10.next = 4;
766
- return api.logIn(type, identifier, reCaptchaToken);
765
+ identifier = { PhoneNumber: PhoneNumber };
766
+ _context10.next = 5;
767
+ return api.unsubscribeSms(locationId, identifier);
767
768
 
768
- case 4:
769
+ case 5:
769
770
  data = _context10.sent;
770
771
  return _context10.abrupt('return', data);
771
772
 
772
- case 8:
773
- _context10.prev = 8;
773
+ case 9:
774
+ _context10.prev = 9;
774
775
  _context10.t0 = _context10['catch'](1);
775
776
 
776
777
  if (!(_context10.t0.response && _context10.t0.response.data)) {
777
- _context10.next = 13;
778
+ _context10.next = 14;
778
779
  break;
779
780
  }
780
781
 
781
782
  _error$response$data6 = _context10.t0.response.data, code = _error$response$data6.code, message = _error$response$data6.message;
782
783
  throw new Error(code || message);
783
784
 
784
- case 13:
785
+ case 14:
785
786
  throw _context10.t0;
786
787
 
787
- case 14:
788
+ case 15:
788
789
  case 'end':
789
790
  return _context10.stop();
790
791
  }
791
792
  }
792
- }, _callee10, this, [[1, 8]]);
793
+ }, _callee10, this, [[1, 9]]);
793
794
  }));
794
795
 
795
- function login(_x29, _x30, _x31) {
796
+ function unsubscribeSms(_x29) {
796
797
  return _ref10.apply(this, arguments);
797
798
  }
798
799
 
800
+ return unsubscribeSms;
801
+ }()
802
+
803
+ /**
804
+ *
805
+ * @param {Object} identifier an object which identifies the user by its credentials
806
+ * @param {string} type login type i.e PhoneNumber/Email/etc
807
+ * @param {reCaptchaToken} reCaptcha token for login chalenge
808
+ */
809
+
810
+ }, {
811
+ key: 'login',
812
+ value: function () {
813
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(identifier, type, reCaptchaToken) {
814
+ var api, data, _error$response$data7, code, message;
815
+
816
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
817
+ while (1) {
818
+ switch (_context11.prev = _context11.next) {
819
+ case 0:
820
+ api = this.comoData.api;
821
+ _context11.prev = 1;
822
+ _context11.next = 4;
823
+ return api.logIn(type, identifier, reCaptchaToken);
824
+
825
+ case 4:
826
+ data = _context11.sent;
827
+ return _context11.abrupt('return', data);
828
+
829
+ case 8:
830
+ _context11.prev = 8;
831
+ _context11.t0 = _context11['catch'](1);
832
+
833
+ if (!(_context11.t0.response && _context11.t0.response.data)) {
834
+ _context11.next = 13;
835
+ break;
836
+ }
837
+
838
+ _error$response$data7 = _context11.t0.response.data, code = _error$response$data7.code, message = _error$response$data7.message;
839
+ throw new Error(code || message);
840
+
841
+ case 13:
842
+ throw _context11.t0;
843
+
844
+ case 14:
845
+ case 'end':
846
+ return _context11.stop();
847
+ }
848
+ }
849
+ }, _callee11, this, [[1, 8]]);
850
+ }));
851
+
852
+ function login(_x30, _x31, _x32) {
853
+ return _ref11.apply(this, arguments);
854
+ }
855
+
799
856
  return login;
800
857
  }()
801
858
 
@@ -810,39 +867,39 @@ var Como = function () {
810
867
  }, {
811
868
  key: 'loginVerify',
812
869
  value: function () {
813
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(identifier, type, code, reCaptchaToken) {
814
- var api, _ref12, consent, _error$response$data7, errCode, message;
870
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(identifier, type, code, reCaptchaToken) {
871
+ var api, _ref13, consent, _error$response$data8, errCode, message;
815
872
 
816
- return _regenerator2.default.wrap(function _callee11$(_context11) {
873
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
817
874
  while (1) {
818
- switch (_context11.prev = _context11.next) {
875
+ switch (_context12.prev = _context12.next) {
819
876
  case 0:
820
877
  api = this.comoData.api;
821
- _context11.prev = 1;
822
- _context11.next = 4;
878
+ _context12.prev = 1;
879
+ _context12.next = 4;
823
880
  return api.logInVerify(code, type, identifier, reCaptchaToken);
824
881
 
825
882
  case 4:
826
- _ref12 = _context11.sent;
827
- consent = _ref12.consent;
883
+ _ref13 = _context12.sent;
884
+ consent = _ref13.consent;
828
885
 
829
886
  this.comoData.consent = consent;
830
- _context11.next = 17;
887
+ _context12.next = 17;
831
888
  break;
832
889
 
833
890
  case 9:
834
- _context11.prev = 9;
835
- _context11.t0 = _context11['catch'](1);
891
+ _context12.prev = 9;
892
+ _context12.t0 = _context12['catch'](1);
836
893
 
837
- if (!(_context11.t0.response && _context11.t0.response.data)) {
838
- _context11.next = 16;
894
+ if (!(_context12.t0.response && _context12.t0.response.data)) {
895
+ _context12.next = 16;
839
896
  break;
840
897
  }
841
898
 
842
- _error$response$data7 = _context11.t0.response.data, errCode = _error$response$data7.code, message = _error$response$data7.message;
899
+ _error$response$data8 = _context12.t0.response.data, errCode = _error$response$data8.code, message = _error$response$data8.message;
843
900
 
844
901
  if (!(message && message === 'Invalid verification Code')) {
845
- _context11.next = 15;
902
+ _context12.next = 15;
846
903
  break;
847
904
  }
848
905
 
@@ -852,21 +909,21 @@ var Como = function () {
852
909
  throw new Error(errCode || message);
853
910
 
854
911
  case 16:
855
- throw _context11.t0;
912
+ throw _context12.t0;
856
913
 
857
914
  case 17:
858
- return _context11.abrupt('return', this.getCredentials());
915
+ return _context12.abrupt('return', this.getCredentials());
859
916
 
860
917
  case 18:
861
918
  case 'end':
862
- return _context11.stop();
919
+ return _context12.stop();
863
920
  }
864
921
  }
865
- }, _callee11, this, [[1, 9]]);
922
+ }, _callee12, this, [[1, 9]]);
866
923
  }));
867
924
 
868
- function loginVerify(_x32, _x33, _x34, _x35) {
869
- return _ref11.apply(this, arguments);
925
+ function loginVerify(_x33, _x34, _x35, _x36) {
926
+ return _ref12.apply(this, arguments);
870
927
  }
871
928
 
872
929
  return loginVerify;
@@ -882,34 +939,34 @@ var Como = function () {
882
939
  }, {
883
940
  key: 'reloadMembership',
884
941
  value: function () {
885
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
942
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
886
943
  var onlyAssetKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
887
944
 
888
945
  var _comoData5, env, locationId, api, membership;
889
946
 
890
- return _regenerator2.default.wrap(function _callee12$(_context12) {
947
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
891
948
  while (1) {
892
- switch (_context12.prev = _context12.next) {
949
+ switch (_context13.prev = _context13.next) {
893
950
  case 0:
894
951
  _comoData5 = this.comoData, env = _comoData5.env_params, locationId = _comoData5.locationId, api = _comoData5.api;
895
- _context12.next = 3;
952
+ _context13.next = 3;
896
953
  return api.getUserAtLocation(env.zapp_root, locationId, onlyAssetKeys);
897
954
 
898
955
  case 3:
899
- membership = _context12.sent;
956
+ membership = _context13.sent;
900
957
 
901
958
  this.comoData.membership = membership;
902
959
 
903
960
  case 5:
904
961
  case 'end':
905
- return _context12.stop();
962
+ return _context13.stop();
906
963
  }
907
964
  }
908
- }, _callee12, this);
965
+ }, _callee13, this);
909
966
  }));
910
967
 
911
968
  function reloadMembership() {
912
- return _ref13.apply(this, arguments);
969
+ return _ref14.apply(this, arguments);
913
970
  }
914
971
 
915
972
  return reloadMembership;
@@ -922,26 +979,26 @@ var Como = function () {
922
979
  }, {
923
980
  key: 'openApp',
924
981
  value: function () {
925
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(data) {
982
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(data) {
926
983
  var _comoData6, api, locationId, env;
927
984
 
928
- return _regenerator2.default.wrap(function _callee13$(_context13) {
985
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
929
986
  while (1) {
930
- switch (_context13.prev = _context13.next) {
987
+ switch (_context14.prev = _context14.next) {
931
988
  case 0:
932
989
  _comoData6 = this.comoData, api = _comoData6.api, locationId = _comoData6.locationId, env = _comoData6.env_params;
933
- return _context13.abrupt('return', api.openApp(env.zapp_root, locationId, data));
990
+ return _context14.abrupt('return', api.openApp(env.zapp_root, locationId, data));
934
991
 
935
992
  case 2:
936
993
  case 'end':
937
- return _context13.stop();
994
+ return _context14.stop();
938
995
  }
939
996
  }
940
- }, _callee13, this);
997
+ }, _callee14, this);
941
998
  }));
942
999
 
943
- function openApp(_x37) {
944
- return _ref14.apply(this, arguments);
1000
+ function openApp(_x38) {
1001
+ return _ref15.apply(this, arguments);
945
1002
  }
946
1003
 
947
1004
  return openApp;
@@ -956,33 +1013,33 @@ var Como = function () {
956
1013
  }, {
957
1014
  key: 'clientUpdateMembership',
958
1015
  value: function () {
959
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(pushEnable, locationEnable) {
1016
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(pushEnable, locationEnable) {
960
1017
  var _comoData7, api, locationId, token, env;
961
1018
 
962
- return _regenerator2.default.wrap(function _callee14$(_context14) {
1019
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
963
1020
  while (1) {
964
- switch (_context14.prev = _context14.next) {
1021
+ switch (_context15.prev = _context15.next) {
965
1022
  case 0:
966
1023
  _comoData7 = this.comoData, api = _comoData7.api, locationId = _comoData7.locationId, token = _comoData7.token, env = _comoData7.env_params;
967
- _context14.prev = 1;
968
- return _context14.abrupt('return', api.clientUpdateMembership(env.services_root, locationId, pushEnable, locationEnable));
1024
+ _context15.prev = 1;
1025
+ return _context15.abrupt('return', api.clientUpdateMembership(env.services_root, locationId, pushEnable, locationEnable));
969
1026
 
970
1027
  case 5:
971
- _context14.prev = 5;
972
- _context14.t0 = _context14['catch'](1);
1028
+ _context15.prev = 5;
1029
+ _context15.t0 = _context15['catch'](1);
973
1030
 
974
- console.log('clientUpdateMembership failed, token:' + token + ', locationId:' + locationId + ', error: ' + _context14.t0);
1031
+ console.log('clientUpdateMembership failed, token:' + token + ', locationId:' + locationId + ', error: ' + _context15.t0);
975
1032
 
976
1033
  case 8:
977
1034
  case 'end':
978
- return _context14.stop();
1035
+ return _context15.stop();
979
1036
  }
980
1037
  }
981
- }, _callee14, this, [[1, 5]]);
1038
+ }, _callee15, this, [[1, 5]]);
982
1039
  }));
983
1040
 
984
- function clientUpdateMembership(_x38, _x39) {
985
- return _ref15.apply(this, arguments);
1041
+ function clientUpdateMembership(_x39, _x40) {
1042
+ return _ref16.apply(this, arguments);
986
1043
  }
987
1044
 
988
1045
  return clientUpdateMembership;
@@ -996,18 +1053,18 @@ var Como = function () {
996
1053
  }, {
997
1054
  key: 'downloadMainResource',
998
1055
  value: function () {
999
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(resourceId) {
1056
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(resourceId) {
1000
1057
  var resource, err, _comoData8, env, api, responseJson;
1001
1058
 
1002
- return _regenerator2.default.wrap(function _callee15$(_context15) {
1059
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
1003
1060
  while (1) {
1004
- switch (_context15.prev = _context15.next) {
1061
+ switch (_context16.prev = _context16.next) {
1005
1062
  case 0:
1006
- _context15.prev = 0;
1063
+ _context16.prev = 0;
1007
1064
  resource = this.comoData.mainResourcesMap[resourceId];
1008
1065
 
1009
1066
  if (resource) {
1010
- _context15.next = 5;
1067
+ _context16.next = 5;
1011
1068
  break;
1012
1069
  }
1013
1070
 
@@ -1016,34 +1073,34 @@ var Como = function () {
1016
1073
 
1017
1074
  case 5:
1018
1075
  _comoData8 = this.comoData, env = _comoData8.env_params, api = _comoData8.api;
1019
- _context15.next = 8;
1076
+ _context16.next = 8;
1020
1077
  return api.getLoyaltyResource(env.services_root_cdn, resource.id, 'Namespace' in resource ? resource.Namespace : 'location_' + this.comoData.locationId, resource.Version, this.comoData.locationId);
1021
1078
 
1022
1079
  case 8:
1023
- responseJson = _context15.sent;
1080
+ responseJson = _context16.sent;
1024
1081
 
1025
1082
 
1026
1083
  this.comoData.mainResources[resourceId] = responseJson;
1027
- _context15.next = 16;
1084
+ _context16.next = 16;
1028
1085
  break;
1029
1086
 
1030
1087
  case 12:
1031
- _context15.prev = 12;
1032
- _context15.t0 = _context15['catch'](0);
1088
+ _context16.prev = 12;
1089
+ _context16.t0 = _context16['catch'](0);
1033
1090
 
1034
- console.log('downloadMainResource failed, resourceId:' + resourceId + ', locationId:' + this.comoData.locationId + ', this.comoData.mainResourcesMap: ' + this.comoData.mainResourcesMap + ', error: ' + _context15.t0);
1035
- throw new Error(_context15.t0);
1091
+ console.log('downloadMainResource failed, resourceId:' + resourceId + ', locationId:' + this.comoData.locationId + ', this.comoData.mainResourcesMap: ' + this.comoData.mainResourcesMap + ', error: ' + _context16.t0);
1092
+ throw new Error(_context16.t0);
1036
1093
 
1037
1094
  case 16:
1038
1095
  case 'end':
1039
- return _context15.stop();
1096
+ return _context16.stop();
1040
1097
  }
1041
1098
  }
1042
- }, _callee15, this, [[0, 12]]);
1099
+ }, _callee16, this, [[0, 12]]);
1043
1100
  }));
1044
1101
 
1045
- function downloadMainResource(_x40) {
1046
- return _ref16.apply(this, arguments);
1102
+ function downloadMainResource(_x41) {
1103
+ return _ref17.apply(this, arguments);
1047
1104
  }
1048
1105
 
1049
1106
  return downloadMainResource;
@@ -1057,18 +1114,18 @@ var Como = function () {
1057
1114
  }, {
1058
1115
  key: 'reloadLocationState',
1059
1116
  value: function () {
1060
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
1117
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17() {
1061
1118
  var api, state, mainResources;
1062
- return _regenerator2.default.wrap(function _callee16$(_context16) {
1119
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
1063
1120
  while (1) {
1064
- switch (_context16.prev = _context16.next) {
1121
+ switch (_context17.prev = _context17.next) {
1065
1122
  case 0:
1066
1123
  api = this.comoData.api;
1067
- _context16.next = 3;
1124
+ _context17.next = 3;
1068
1125
  return api.getLocationState(this.comoData.env_params.zapp_root, this.comoData.locationId);
1069
1126
 
1070
1127
  case 3:
1071
- state = _context16.sent;
1128
+ state = _context17.sent;
1072
1129
 
1073
1130
  this.comoData.locationState = state;
1074
1131
  mainResources = state.MainResources.Resource;
@@ -1081,14 +1138,14 @@ var Como = function () {
1081
1138
 
1082
1139
  case 7:
1083
1140
  case 'end':
1084
- return _context16.stop();
1141
+ return _context17.stop();
1085
1142
  }
1086
1143
  }
1087
- }, _callee16, this);
1144
+ }, _callee17, this);
1088
1145
  }));
1089
1146
 
1090
1147
  function reloadLocationState() {
1091
- return _ref17.apply(this, arguments);
1148
+ return _ref18.apply(this, arguments);
1092
1149
  }
1093
1150
 
1094
1151
  return reloadLocationState;
@@ -1101,35 +1158,35 @@ var Como = function () {
1101
1158
  }, {
1102
1159
  key: 'getAppClientID',
1103
1160
  value: function () {
1104
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17() {
1161
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18() {
1105
1162
  var _comoData9, env, locationId, api, responseJson;
1106
1163
 
1107
- return _regenerator2.default.wrap(function _callee17$(_context17) {
1164
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
1108
1165
  while (1) {
1109
- switch (_context17.prev = _context17.next) {
1166
+ switch (_context18.prev = _context18.next) {
1110
1167
  case 0:
1111
1168
  _comoData9 = this.comoData, env = _comoData9.env_params, locationId = _comoData9.locationId, api = _comoData9.api;
1112
- _context17.next = 3;
1169
+ _context18.next = 3;
1113
1170
  return this.refreshTokenIfNeeded();
1114
1171
 
1115
1172
  case 3:
1116
- _context17.next = 5;
1173
+ _context18.next = 5;
1117
1174
  return api.getShortUserId(env.zapp_root, locationId);
1118
1175
 
1119
1176
  case 5:
1120
- responseJson = _context17.sent;
1121
- return _context17.abrupt('return', responseJson.ID);
1177
+ responseJson = _context18.sent;
1178
+ return _context18.abrupt('return', responseJson.ID);
1122
1179
 
1123
1180
  case 7:
1124
1181
  case 'end':
1125
- return _context17.stop();
1182
+ return _context18.stop();
1126
1183
  }
1127
1184
  }
1128
- }, _callee17, this);
1185
+ }, _callee18, this);
1129
1186
  }));
1130
1187
 
1131
1188
  function getAppClientID() {
1132
- return _ref18.apply(this, arguments);
1189
+ return _ref19.apply(this, arguments);
1133
1190
  }
1134
1191
 
1135
1192
  return getAppClientID;
@@ -1142,31 +1199,31 @@ var Como = function () {
1142
1199
  }, {
1143
1200
  key: 'getPaymentCode',
1144
1201
  value: function () {
1145
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18() {
1202
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19() {
1146
1203
  var _comoData10, env, locationId, api, responseJson;
1147
1204
 
1148
- return _regenerator2.default.wrap(function _callee18$(_context18) {
1205
+ return _regenerator2.default.wrap(function _callee19$(_context19) {
1149
1206
  while (1) {
1150
- switch (_context18.prev = _context18.next) {
1207
+ switch (_context19.prev = _context19.next) {
1151
1208
  case 0:
1152
1209
  _comoData10 = this.comoData, env = _comoData10.env_params, locationId = _comoData10.locationId, api = _comoData10.api;
1153
- _context18.next = 3;
1210
+ _context19.next = 3;
1154
1211
  return api.getPaymentCode(env.zapp_root, locationId);
1155
1212
 
1156
1213
  case 3:
1157
- responseJson = _context18.sent;
1158
- return _context18.abrupt('return', responseJson.VerificationCode);
1214
+ responseJson = _context19.sent;
1215
+ return _context19.abrupt('return', responseJson.VerificationCode);
1159
1216
 
1160
1217
  case 5:
1161
1218
  case 'end':
1162
- return _context18.stop();
1219
+ return _context19.stop();
1163
1220
  }
1164
1221
  }
1165
- }, _callee18, this);
1222
+ }, _callee19, this);
1166
1223
  }));
1167
1224
 
1168
1225
  function getPaymentCode() {
1169
- return _ref19.apply(this, arguments);
1226
+ return _ref20.apply(this, arguments);
1170
1227
  }
1171
1228
 
1172
1229
  return getPaymentCode;
@@ -1179,47 +1236,47 @@ var Como = function () {
1179
1236
  }, {
1180
1237
  key: 'logout',
1181
1238
  value: function () {
1182
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19() {
1183
- var api, response, _error$response$data8, errCode, message;
1239
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20() {
1240
+ var api, response, _error$response$data9, errCode, message;
1184
1241
 
1185
- return _regenerator2.default.wrap(function _callee19$(_context19) {
1242
+ return _regenerator2.default.wrap(function _callee20$(_context20) {
1186
1243
  while (1) {
1187
- switch (_context19.prev = _context19.next) {
1244
+ switch (_context20.prev = _context20.next) {
1188
1245
  case 0:
1189
1246
  api = this.comoData.api;
1190
- _context19.prev = 1;
1191
- _context19.next = 4;
1247
+ _context20.prev = 1;
1248
+ _context20.next = 4;
1192
1249
  return api.logOut();
1193
1250
 
1194
1251
  case 4:
1195
- response = _context19.sent;
1196
- return _context19.abrupt('return', response);
1252
+ response = _context20.sent;
1253
+ return _context20.abrupt('return', response);
1197
1254
 
1198
1255
  case 8:
1199
- _context19.prev = 8;
1200
- _context19.t0 = _context19['catch'](1);
1256
+ _context20.prev = 8;
1257
+ _context20.t0 = _context20['catch'](1);
1201
1258
 
1202
- if (!(_context19.t0.response && _context19.t0.response.data)) {
1203
- _context19.next = 13;
1259
+ if (!(_context20.t0.response && _context20.t0.response.data)) {
1260
+ _context20.next = 13;
1204
1261
  break;
1205
1262
  }
1206
1263
 
1207
- _error$response$data8 = _context19.t0.response.data, errCode = _error$response$data8.code, message = _error$response$data8.message;
1264
+ _error$response$data9 = _context20.t0.response.data, errCode = _error$response$data9.code, message = _error$response$data9.message;
1208
1265
  throw new Error(errCode || message);
1209
1266
 
1210
1267
  case 13:
1211
- throw _context19.t0;
1268
+ throw _context20.t0;
1212
1269
 
1213
1270
  case 14:
1214
1271
  case 'end':
1215
- return _context19.stop();
1272
+ return _context20.stop();
1216
1273
  }
1217
1274
  }
1218
- }, _callee19, this, [[1, 8]]);
1275
+ }, _callee20, this, [[1, 8]]);
1219
1276
  }));
1220
1277
 
1221
1278
  function logout() {
1222
- return _ref20.apply(this, arguments);
1279
+ return _ref21.apply(this, arguments);
1223
1280
  }
1224
1281
 
1225
1282
  return logout;
@@ -1233,35 +1290,35 @@ var Como = function () {
1233
1290
  }, {
1234
1291
  key: 'redeemAsset',
1235
1292
  value: function () {
1236
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20(assetKey) {
1293
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21(assetKey) {
1237
1294
  var _comoData11, env, locationId, api, responseJson;
1238
1295
 
1239
- return _regenerator2.default.wrap(function _callee20$(_context20) {
1296
+ return _regenerator2.default.wrap(function _callee21$(_context21) {
1240
1297
  while (1) {
1241
- switch (_context20.prev = _context20.next) {
1298
+ switch (_context21.prev = _context21.next) {
1242
1299
  case 0:
1243
1300
  _comoData11 = this.comoData, env = _comoData11.env_params, locationId = _comoData11.locationId, api = _comoData11.api;
1244
- _context20.next = 3;
1301
+ _context21.next = 3;
1245
1302
  return this.refreshTokenIfNeeded();
1246
1303
 
1247
1304
  case 3:
1248
- _context20.next = 5;
1305
+ _context21.next = 5;
1249
1306
  return api.redeemAsset(env.zapp_root, locationId, assetKey);
1250
1307
 
1251
1308
  case 5:
1252
- responseJson = _context20.sent;
1253
- return _context20.abrupt('return', responseJson);
1309
+ responseJson = _context21.sent;
1310
+ return _context21.abrupt('return', responseJson);
1254
1311
 
1255
1312
  case 7:
1256
1313
  case 'end':
1257
- return _context20.stop();
1314
+ return _context21.stop();
1258
1315
  }
1259
1316
  }
1260
- }, _callee20, this);
1317
+ }, _callee21, this);
1261
1318
  }));
1262
1319
 
1263
- function redeemAsset(_x41) {
1264
- return _ref21.apply(this, arguments);
1320
+ function redeemAsset(_x42) {
1321
+ return _ref22.apply(this, arguments);
1265
1322
  }
1266
1323
 
1267
1324
  return redeemAsset;
@@ -1275,31 +1332,31 @@ var Como = function () {
1275
1332
  }, {
1276
1333
  key: 'purchaseAsset',
1277
1334
  value: function () {
1278
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21(itemId) {
1335
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee22(itemId) {
1279
1336
  var _comoData12, env, locationId, api, responseJson;
1280
1337
 
1281
- return _regenerator2.default.wrap(function _callee21$(_context21) {
1338
+ return _regenerator2.default.wrap(function _callee22$(_context22) {
1282
1339
  while (1) {
1283
- switch (_context21.prev = _context21.next) {
1340
+ switch (_context22.prev = _context22.next) {
1284
1341
  case 0:
1285
1342
  _comoData12 = this.comoData, env = _comoData12.env_params, locationId = _comoData12.locationId, api = _comoData12.api;
1286
- _context21.next = 3;
1343
+ _context22.next = 3;
1287
1344
  return api.purchaseAsset(env.zapp_root, locationId, itemId);
1288
1345
 
1289
1346
  case 3:
1290
- responseJson = _context21.sent;
1291
- return _context21.abrupt('return', responseJson);
1347
+ responseJson = _context22.sent;
1348
+ return _context22.abrupt('return', responseJson);
1292
1349
 
1293
1350
  case 5:
1294
1351
  case 'end':
1295
- return _context21.stop();
1352
+ return _context22.stop();
1296
1353
  }
1297
1354
  }
1298
- }, _callee21, this);
1355
+ }, _callee22, this);
1299
1356
  }));
1300
1357
 
1301
- function purchaseAsset(_x42) {
1302
- return _ref22.apply(this, arguments);
1358
+ function purchaseAsset(_x43) {
1359
+ return _ref23.apply(this, arguments);
1303
1360
  }
1304
1361
 
1305
1362
  return purchaseAsset;
@@ -1307,31 +1364,31 @@ var Como = function () {
1307
1364
  }, {
1308
1365
  key: 'getUserPointShopDataAPI2',
1309
1366
  value: function () {
1310
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee22() {
1367
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee23() {
1311
1368
  var _comoData13, env, locationId, api, responseJson;
1312
1369
 
1313
- return _regenerator2.default.wrap(function _callee22$(_context22) {
1370
+ return _regenerator2.default.wrap(function _callee23$(_context23) {
1314
1371
  while (1) {
1315
- switch (_context22.prev = _context22.next) {
1372
+ switch (_context23.prev = _context23.next) {
1316
1373
  case 0:
1317
1374
  _comoData13 = this.comoData, env = _comoData13.env_params, locationId = _comoData13.locationId, api = _comoData13.api;
1318
- _context22.next = 3;
1375
+ _context23.next = 3;
1319
1376
  return api.getUserPointShopDataAPI2(env.zapp_root, locationId);
1320
1377
 
1321
1378
  case 3:
1322
- responseJson = _context22.sent;
1323
- return _context22.abrupt('return', responseJson);
1379
+ responseJson = _context23.sent;
1380
+ return _context23.abrupt('return', responseJson);
1324
1381
 
1325
1382
  case 5:
1326
1383
  case 'end':
1327
- return _context22.stop();
1384
+ return _context23.stop();
1328
1385
  }
1329
1386
  }
1330
- }, _callee22, this);
1387
+ }, _callee23, this);
1331
1388
  }));
1332
1389
 
1333
1390
  function getUserPointShopDataAPI2() {
1334
- return _ref23.apply(this, arguments);
1391
+ return _ref24.apply(this, arguments);
1335
1392
  }
1336
1393
 
1337
1394
  return getUserPointShopDataAPI2;
@@ -1339,31 +1396,31 @@ var Como = function () {
1339
1396
  }, {
1340
1397
  key: 'purchaseAssetAPI2',
1341
1398
  value: function () {
1342
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee23(assetID) {
1399
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee24(assetID) {
1343
1400
  var _comoData14, env, locationId, api, responseJson;
1344
1401
 
1345
- return _regenerator2.default.wrap(function _callee23$(_context23) {
1402
+ return _regenerator2.default.wrap(function _callee24$(_context24) {
1346
1403
  while (1) {
1347
- switch (_context23.prev = _context23.next) {
1404
+ switch (_context24.prev = _context24.next) {
1348
1405
  case 0:
1349
1406
  _comoData14 = this.comoData, env = _comoData14.env_params, locationId = _comoData14.locationId, api = _comoData14.api;
1350
- _context23.next = 3;
1407
+ _context24.next = 3;
1351
1408
  return api.purchaseAssetAPI2(env.zapp_root, locationId, assetID);
1352
1409
 
1353
1410
  case 3:
1354
- responseJson = _context23.sent;
1355
- return _context23.abrupt('return', responseJson);
1411
+ responseJson = _context24.sent;
1412
+ return _context24.abrupt('return', responseJson);
1356
1413
 
1357
1414
  case 5:
1358
1415
  case 'end':
1359
- return _context23.stop();
1416
+ return _context24.stop();
1360
1417
  }
1361
1418
  }
1362
- }, _callee23, this);
1419
+ }, _callee24, this);
1363
1420
  }));
1364
1421
 
1365
- function purchaseAssetAPI2(_x43) {
1366
- return _ref24.apply(this, arguments);
1422
+ function purchaseAssetAPI2(_x44) {
1423
+ return _ref25.apply(this, arguments);
1367
1424
  }
1368
1425
 
1369
1426
  return purchaseAssetAPI2;
@@ -1377,32 +1434,32 @@ var Como = function () {
1377
1434
  }, {
1378
1435
  key: 'reloadAssets',
1379
1436
  value: function () {
1380
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee24() {
1437
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee25() {
1381
1438
  var _comoData15, env, locationId, api, responseJson;
1382
1439
 
1383
- return _regenerator2.default.wrap(function _callee24$(_context24) {
1440
+ return _regenerator2.default.wrap(function _callee25$(_context25) {
1384
1441
  while (1) {
1385
- switch (_context24.prev = _context24.next) {
1442
+ switch (_context25.prev = _context25.next) {
1386
1443
  case 0:
1387
1444
  _comoData15 = this.comoData, env = _comoData15.env_params, locationId = _comoData15.locationId, api = _comoData15.api;
1388
- _context24.next = 3;
1445
+ _context25.next = 3;
1389
1446
  return api.memberAssets(env.services_root, locationId);
1390
1447
 
1391
1448
  case 3:
1392
- responseJson = _context24.sent;
1449
+ responseJson = _context25.sent;
1393
1450
 
1394
1451
  this.comoData.assets = responseJson;
1395
1452
 
1396
1453
  case 5:
1397
1454
  case 'end':
1398
- return _context24.stop();
1455
+ return _context25.stop();
1399
1456
  }
1400
1457
  }
1401
- }, _callee24, this);
1458
+ }, _callee25, this);
1402
1459
  }));
1403
1460
 
1404
1461
  function reloadAssets() {
1405
- return _ref25.apply(this, arguments);
1462
+ return _ref26.apply(this, arguments);
1406
1463
  }
1407
1464
 
1408
1465
  return reloadAssets;
@@ -1450,16 +1507,16 @@ var Como = function () {
1450
1507
  }, {
1451
1508
  key: 'downloadMainResources',
1452
1509
  value: function () {
1453
- var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee25() {
1510
+ var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee26() {
1454
1511
  var resources, downloadMainResource, downloads;
1455
- return _regenerator2.default.wrap(function _callee25$(_context25) {
1512
+ return _regenerator2.default.wrap(function _callee26$(_context26) {
1456
1513
  while (1) {
1457
- switch (_context25.prev = _context25.next) {
1514
+ switch (_context26.prev = _context26.next) {
1458
1515
  case 0:
1459
1516
  resources = ['LocationData', 'Menu', 'Updates', 'TCAlts', 'AppTexts', 'DefaultAppTexts'];
1460
1517
  downloadMainResource = this.downloadMainResource.bind(this);
1461
1518
  downloads = resources.map(downloadMainResource);
1462
- _context25.next = 5;
1519
+ _context26.next = 5;
1463
1520
  return _promise2.default.all(downloads);
1464
1521
 
1465
1522
  case 5:
@@ -1467,14 +1524,14 @@ var Como = function () {
1467
1524
 
1468
1525
  case 6:
1469
1526
  case 'end':
1470
- return _context25.stop();
1527
+ return _context26.stop();
1471
1528
  }
1472
1529
  }
1473
- }, _callee25, this);
1530
+ }, _callee26, this);
1474
1531
  }));
1475
1532
 
1476
1533
  function downloadMainResources() {
1477
- return _ref26.apply(this, arguments);
1534
+ return _ref27.apply(this, arguments);
1478
1535
  }
1479
1536
 
1480
1537
  return downloadMainResources;
@@ -1659,33 +1716,33 @@ var Como = function () {
1659
1716
  }, {
1660
1717
  key: 'getRegistrationUrl',
1661
1718
  value: function () {
1662
- var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee26(overrides) {
1719
+ var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee27(overrides) {
1663
1720
  var _comoData23, token, installationId, locationId, env;
1664
1721
 
1665
- return _regenerator2.default.wrap(function _callee26$(_context26) {
1722
+ return _regenerator2.default.wrap(function _callee27$(_context27) {
1666
1723
  while (1) {
1667
- switch (_context26.prev = _context26.next) {
1724
+ switch (_context27.prev = _context27.next) {
1668
1725
  case 0:
1669
- _context26.next = 2;
1726
+ _context27.next = 2;
1670
1727
  return this.refreshTokenIfNeeded();
1671
1728
 
1672
1729
  case 2:
1673
1730
  _comoData23 = this.comoData, token = _comoData23.token, installationId = _comoData23.installationId, locationId = _comoData23.locationId, env = _comoData23.env_params;
1674
- return _context26.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/register?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1731
+ return _context27.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/register?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1675
1732
  installationId: installationId,
1676
1733
  disableSuccessScreen: 'true'
1677
1734
  }, overrides)));
1678
1735
 
1679
1736
  case 4:
1680
1737
  case 'end':
1681
- return _context26.stop();
1738
+ return _context27.stop();
1682
1739
  }
1683
1740
  }
1684
- }, _callee26, this);
1741
+ }, _callee27, this);
1685
1742
  }));
1686
1743
 
1687
- function getRegistrationUrl(_x44) {
1688
- return _ref27.apply(this, arguments);
1744
+ function getRegistrationUrl(_x45) {
1745
+ return _ref28.apply(this, arguments);
1689
1746
  }
1690
1747
 
1691
1748
  return getRegistrationUrl;
@@ -1698,33 +1755,33 @@ var Como = function () {
1698
1755
  }, {
1699
1756
  key: 'getProfileUrl',
1700
1757
  value: function () {
1701
- var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee27(overrides) {
1758
+ var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee28(overrides) {
1702
1759
  var _comoData24, token, installationId, locationId, env;
1703
1760
 
1704
- return _regenerator2.default.wrap(function _callee27$(_context27) {
1761
+ return _regenerator2.default.wrap(function _callee28$(_context28) {
1705
1762
  while (1) {
1706
- switch (_context27.prev = _context27.next) {
1763
+ switch (_context28.prev = _context28.next) {
1707
1764
  case 0:
1708
- _context27.next = 2;
1765
+ _context28.next = 2;
1709
1766
  return this.refreshTokenIfNeeded();
1710
1767
 
1711
1768
  case 2:
1712
1769
  _comoData24 = this.comoData, token = _comoData24.token, installationId = _comoData24.installationId, locationId = _comoData24.locationId, env = _comoData24.env_params;
1713
- return _context27.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/profile?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1770
+ return _context28.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/profile?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1714
1771
  installationId: installationId,
1715
1772
  disableSuccessScreen: 'true'
1716
1773
  }, overrides)));
1717
1774
 
1718
1775
  case 4:
1719
1776
  case 'end':
1720
- return _context27.stop();
1777
+ return _context28.stop();
1721
1778
  }
1722
1779
  }
1723
- }, _callee27, this);
1780
+ }, _callee28, this);
1724
1781
  }));
1725
1782
 
1726
- function getProfileUrl(_x45) {
1727
- return _ref28.apply(this, arguments);
1783
+ function getProfileUrl(_x46) {
1784
+ return _ref29.apply(this, arguments);
1728
1785
  }
1729
1786
 
1730
1787
  return getProfileUrl;
@@ -1737,30 +1794,30 @@ var Como = function () {
1737
1794
  }, {
1738
1795
  key: 'getLoginUrl',
1739
1796
  value: function () {
1740
- var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee28() {
1797
+ var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee29() {
1741
1798
  var _comoData25, token, locationId, env;
1742
1799
 
1743
- return _regenerator2.default.wrap(function _callee28$(_context28) {
1800
+ return _regenerator2.default.wrap(function _callee29$(_context29) {
1744
1801
  while (1) {
1745
- switch (_context28.prev = _context28.next) {
1802
+ switch (_context29.prev = _context29.next) {
1746
1803
  case 0:
1747
- _context28.next = 2;
1804
+ _context29.next = 2;
1748
1805
  return this.refreshTokenIfNeeded();
1749
1806
 
1750
1807
  case 2:
1751
1808
  _comoData25 = this.comoData, token = _comoData25.token, locationId = _comoData25.locationId, env = _comoData25.env_params;
1752
- return _context28.abrupt('return', env.app_modules_root + '/login?token=' + token + '&locationid=' + locationId);
1809
+ return _context29.abrupt('return', env.app_modules_root + '/login?token=' + token + '&locationid=' + locationId);
1753
1810
 
1754
1811
  case 4:
1755
1812
  case 'end':
1756
- return _context28.stop();
1813
+ return _context29.stop();
1757
1814
  }
1758
1815
  }
1759
- }, _callee28, this);
1816
+ }, _callee29, this);
1760
1817
  }));
1761
1818
 
1762
1819
  function getLoginUrl() {
1763
- return _ref29.apply(this, arguments);
1820
+ return _ref30.apply(this, arguments);
1764
1821
  }
1765
1822
 
1766
1823
  return getLoginUrl;
@@ -1773,31 +1830,31 @@ var Como = function () {
1773
1830
  }, {
1774
1831
  key: 'getDataPortabilityUrl',
1775
1832
  value: function () {
1776
- var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee29(url, overrides) {
1833
+ var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee30(url, overrides) {
1777
1834
  var installationId;
1778
- return _regenerator2.default.wrap(function _callee29$(_context29) {
1835
+ return _regenerator2.default.wrap(function _callee30$(_context30) {
1779
1836
  while (1) {
1780
- switch (_context29.prev = _context29.next) {
1837
+ switch (_context30.prev = _context30.next) {
1781
1838
  case 0:
1782
- _context29.next = 2;
1839
+ _context30.next = 2;
1783
1840
  return this.refreshTokenIfNeeded();
1784
1841
 
1785
1842
  case 2:
1786
1843
  installationId = this.comoData.installationId;
1787
- return _context29.abrupt('return', urlsUtils.appendQuery('' + url, (0, _extends3.default)({
1844
+ return _context30.abrupt('return', urlsUtils.appendQuery('' + url, (0, _extends3.default)({
1788
1845
  installationId: installationId
1789
1846
  }, overrides)));
1790
1847
 
1791
1848
  case 4:
1792
1849
  case 'end':
1793
- return _context29.stop();
1850
+ return _context30.stop();
1794
1851
  }
1795
1852
  }
1796
- }, _callee29, this);
1853
+ }, _callee30, this);
1797
1854
  }));
1798
1855
 
1799
- function getDataPortabilityUrl(_x46, _x47) {
1800
- return _ref30.apply(this, arguments);
1856
+ function getDataPortabilityUrl(_x47, _x48) {
1857
+ return _ref31.apply(this, arguments);
1801
1858
  }
1802
1859
 
1803
1860
  return getDataPortabilityUrl;
@@ -1810,29 +1867,29 @@ var Como = function () {
1810
1867
  }, {
1811
1868
  key: 'getAppModulesLegacyBaseUrl',
1812
1869
  value: function () {
1813
- var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee30() {
1870
+ var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee31() {
1814
1871
  var env;
1815
- return _regenerator2.default.wrap(function _callee30$(_context30) {
1872
+ return _regenerator2.default.wrap(function _callee31$(_context31) {
1816
1873
  while (1) {
1817
- switch (_context30.prev = _context30.next) {
1874
+ switch (_context31.prev = _context31.next) {
1818
1875
  case 0:
1819
- _context30.next = 2;
1876
+ _context31.next = 2;
1820
1877
  return this.refreshTokenIfNeeded();
1821
1878
 
1822
1879
  case 2:
1823
1880
  env = this.comoData.env_params;
1824
- return _context30.abrupt('return', '' + env.app_modules_legacy_root);
1881
+ return _context31.abrupt('return', '' + env.app_modules_legacy_root);
1825
1882
 
1826
1883
  case 4:
1827
1884
  case 'end':
1828
- return _context30.stop();
1885
+ return _context31.stop();
1829
1886
  }
1830
1887
  }
1831
- }, _callee30, this);
1888
+ }, _callee31, this);
1832
1889
  }));
1833
1890
 
1834
1891
  function getAppModulesLegacyBaseUrl() {
1835
- return _ref31.apply(this, arguments);
1892
+ return _ref32.apply(this, arguments);
1836
1893
  }
1837
1894
 
1838
1895
  return getAppModulesLegacyBaseUrl;
@@ -1929,26 +1986,26 @@ var Como = function () {
1929
1986
  }, {
1930
1987
  key: 'getRegionConfig',
1931
1988
  value: function () {
1932
- var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee31() {
1989
+ var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee32() {
1933
1990
  var _comoData28, api, locationId, env;
1934
1991
 
1935
- return _regenerator2.default.wrap(function _callee31$(_context31) {
1992
+ return _regenerator2.default.wrap(function _callee32$(_context32) {
1936
1993
  while (1) {
1937
- switch (_context31.prev = _context31.next) {
1994
+ switch (_context32.prev = _context32.next) {
1938
1995
  case 0:
1939
1996
  _comoData28 = this.comoData, api = _comoData28.api, locationId = _comoData28.locationId, env = _comoData28.env_params;
1940
- return _context31.abrupt('return', api.getClientBusinessBackend(env.zapp_root, locationId));
1997
+ return _context32.abrupt('return', api.getClientBusinessBackend(env.zapp_root, locationId));
1941
1998
 
1942
1999
  case 2:
1943
2000
  case 'end':
1944
- return _context31.stop();
2001
+ return _context32.stop();
1945
2002
  }
1946
2003
  }
1947
- }, _callee31, this);
2004
+ }, _callee32, this);
1948
2005
  }));
1949
2006
 
1950
2007
  function getRegionConfig() {
1951
- return _ref32.apply(this, arguments);
2008
+ return _ref33.apply(this, arguments);
1952
2009
  }
1953
2010
 
1954
2011
  return getRegionConfig;
@@ -1971,26 +2028,26 @@ var Como = function () {
1971
2028
  }, {
1972
2029
  key: 'addPaymentMethod',
1973
2030
  value: function () {
1974
- var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee32(cardToken) {
2031
+ var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee33(cardToken) {
1975
2032
  var _comoData30, api, locationId, token, env;
1976
2033
 
1977
- return _regenerator2.default.wrap(function _callee32$(_context32) {
2034
+ return _regenerator2.default.wrap(function _callee33$(_context33) {
1978
2035
  while (1) {
1979
- switch (_context32.prev = _context32.next) {
2036
+ switch (_context33.prev = _context33.next) {
1980
2037
  case 0:
1981
2038
  _comoData30 = this.comoData, api = _comoData30.api, locationId = _comoData30.locationId, token = _comoData30.token, env = _comoData30.env_params;
1982
- return _context32.abrupt('return', api.addPaymentMethod(env.services_root, locationId, token, cardToken));
2039
+ return _context33.abrupt('return', api.addPaymentMethod(env.services_root, locationId, token, cardToken));
1983
2040
 
1984
2041
  case 2:
1985
2042
  case 'end':
1986
- return _context32.stop();
2043
+ return _context33.stop();
1987
2044
  }
1988
2045
  }
1989
- }, _callee32, this);
2046
+ }, _callee33, this);
1990
2047
  }));
1991
2048
 
1992
- function addPaymentMethod(_x49) {
1993
- return _ref33.apply(this, arguments);
2049
+ function addPaymentMethod(_x50) {
2050
+ return _ref34.apply(this, arguments);
1994
2051
  }
1995
2052
 
1996
2053
  return addPaymentMethod;
@@ -1998,26 +2055,26 @@ var Como = function () {
1998
2055
  }, {
1999
2056
  key: 'knowYourData',
2000
2057
  value: function () {
2001
- var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee33(email) {
2058
+ var _ref35 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee34(email) {
2002
2059
  var _comoData31, api, locationId, env;
2003
2060
 
2004
- return _regenerator2.default.wrap(function _callee33$(_context33) {
2061
+ return _regenerator2.default.wrap(function _callee34$(_context34) {
2005
2062
  while (1) {
2006
- switch (_context33.prev = _context33.next) {
2063
+ switch (_context34.prev = _context34.next) {
2007
2064
  case 0:
2008
2065
  _comoData31 = this.comoData, api = _comoData31.api, locationId = _comoData31.locationId, env = _comoData31.env_params;
2009
- return _context33.abrupt('return', api.knowYourData(env.services_root, locationId, email));
2066
+ return _context34.abrupt('return', api.knowYourData(env.services_root, locationId, email));
2010
2067
 
2011
2068
  case 2:
2012
2069
  case 'end':
2013
- return _context33.stop();
2070
+ return _context34.stop();
2014
2071
  }
2015
2072
  }
2016
- }, _callee33, this);
2073
+ }, _callee34, this);
2017
2074
  }));
2018
2075
 
2019
- function knowYourData(_x50) {
2020
- return _ref34.apply(this, arguments);
2076
+ function knowYourData(_x51) {
2077
+ return _ref35.apply(this, arguments);
2021
2078
  }
2022
2079
 
2023
2080
  return knowYourData;
@@ -2025,26 +2082,26 @@ var Como = function () {
2025
2082
  }, {
2026
2083
  key: 'consentWithdraw',
2027
2084
  value: function () {
2028
- var _ref35 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee34(consentData) {
2085
+ var _ref36 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee35(consentData) {
2029
2086
  var _comoData32, api, locationId, env;
2030
2087
 
2031
- return _regenerator2.default.wrap(function _callee34$(_context34) {
2088
+ return _regenerator2.default.wrap(function _callee35$(_context35) {
2032
2089
  while (1) {
2033
- switch (_context34.prev = _context34.next) {
2090
+ switch (_context35.prev = _context35.next) {
2034
2091
  case 0:
2035
2092
  _comoData32 = this.comoData, api = _comoData32.api, locationId = _comoData32.locationId, env = _comoData32.env_params;
2036
- return _context34.abrupt('return', api.consentWithdraw(env.services_root, locationId, consentData));
2093
+ return _context35.abrupt('return', api.consentWithdraw(env.services_root, locationId, consentData));
2037
2094
 
2038
2095
  case 2:
2039
2096
  case 'end':
2040
- return _context34.stop();
2097
+ return _context35.stop();
2041
2098
  }
2042
2099
  }
2043
- }, _callee34, this);
2100
+ }, _callee35, this);
2044
2101
  }));
2045
2102
 
2046
- function consentWithdraw(_x51) {
2047
- return _ref35.apply(this, arguments);
2103
+ function consentWithdraw(_x52) {
2104
+ return _ref36.apply(this, arguments);
2048
2105
  }
2049
2106
 
2050
2107
  return consentWithdraw;
@@ -2052,31 +2109,31 @@ var Como = function () {
2052
2109
  }, {
2053
2110
  key: 'getPaymentMethods',
2054
2111
  value: function () {
2055
- var _ref36 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee35() {
2112
+ var _ref37 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee36() {
2056
2113
  var _comoData33, env, locationId, api, responseJson;
2057
2114
 
2058
- return _regenerator2.default.wrap(function _callee35$(_context35) {
2115
+ return _regenerator2.default.wrap(function _callee36$(_context36) {
2059
2116
  while (1) {
2060
- switch (_context35.prev = _context35.next) {
2117
+ switch (_context36.prev = _context36.next) {
2061
2118
  case 0:
2062
2119
  _comoData33 = this.comoData, env = _comoData33.env_params, locationId = _comoData33.locationId, api = _comoData33.api;
2063
- _context35.next = 3;
2120
+ _context36.next = 3;
2064
2121
  return api.getPaymentMethods(env.services_root, locationId);
2065
2122
 
2066
2123
  case 3:
2067
- responseJson = _context35.sent;
2068
- return _context35.abrupt('return', responseJson);
2124
+ responseJson = _context36.sent;
2125
+ return _context36.abrupt('return', responseJson);
2069
2126
 
2070
2127
  case 5:
2071
2128
  case 'end':
2072
- return _context35.stop();
2129
+ return _context36.stop();
2073
2130
  }
2074
2131
  }
2075
- }, _callee35, this);
2132
+ }, _callee36, this);
2076
2133
  }));
2077
2134
 
2078
2135
  function getPaymentMethods() {
2079
- return _ref36.apply(this, arguments);
2136
+ return _ref37.apply(this, arguments);
2080
2137
  }
2081
2138
 
2082
2139
  return getPaymentMethods;
@@ -2093,31 +2150,31 @@ var Como = function () {
2093
2150
  }, {
2094
2151
  key: 'payInApp',
2095
2152
  value: function () {
2096
- var _ref37 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee36(amount, creditCardToken, itemName, itemNumber, membershipKey) {
2153
+ var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee37(amount, creditCardToken, itemName, itemNumber, membershipKey) {
2097
2154
  var _comoData34, env, token, locationId, api, responseJson;
2098
2155
 
2099
- return _regenerator2.default.wrap(function _callee36$(_context36) {
2156
+ return _regenerator2.default.wrap(function _callee37$(_context37) {
2100
2157
  while (1) {
2101
- switch (_context36.prev = _context36.next) {
2158
+ switch (_context37.prev = _context37.next) {
2102
2159
  case 0:
2103
2160
  _comoData34 = this.comoData, env = _comoData34.env_params, token = _comoData34.token, locationId = _comoData34.locationId, api = _comoData34.api;
2104
- _context36.next = 3;
2161
+ _context37.next = 3;
2105
2162
  return api.payInApp(env.services_root, locationId, token, amount, creditCardToken, itemName, itemNumber, membershipKey);
2106
2163
 
2107
2164
  case 3:
2108
- responseJson = _context36.sent;
2109
- return _context36.abrupt('return', responseJson);
2165
+ responseJson = _context37.sent;
2166
+ return _context37.abrupt('return', responseJson);
2110
2167
 
2111
2168
  case 5:
2112
2169
  case 'end':
2113
- return _context36.stop();
2170
+ return _context37.stop();
2114
2171
  }
2115
2172
  }
2116
- }, _callee36, this);
2173
+ }, _callee37, this);
2117
2174
  }));
2118
2175
 
2119
- function payInApp(_x52, _x53, _x54, _x55, _x56) {
2120
- return _ref37.apply(this, arguments);
2176
+ function payInApp(_x53, _x54, _x55, _x56, _x57) {
2177
+ return _ref38.apply(this, arguments);
2121
2178
  }
2122
2179
 
2123
2180
  return payInApp;
@@ -2130,31 +2187,31 @@ var Como = function () {
2130
2187
  }, {
2131
2188
  key: 'deletePayment',
2132
2189
  value: function () {
2133
- var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee37(creditCardToken) {
2190
+ var _ref39 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee38(creditCardToken) {
2134
2191
  var _comoData35, env, token, locationId, api, responseJson;
2135
2192
 
2136
- return _regenerator2.default.wrap(function _callee37$(_context37) {
2193
+ return _regenerator2.default.wrap(function _callee38$(_context38) {
2137
2194
  while (1) {
2138
- switch (_context37.prev = _context37.next) {
2195
+ switch (_context38.prev = _context38.next) {
2139
2196
  case 0:
2140
2197
  _comoData35 = this.comoData, env = _comoData35.env_params, token = _comoData35.token, locationId = _comoData35.locationId, api = _comoData35.api;
2141
- _context37.next = 3;
2198
+ _context38.next = 3;
2142
2199
  return api.deletePayment(env.services_root, locationId, token, creditCardToken);
2143
2200
 
2144
2201
  case 3:
2145
- responseJson = _context37.sent;
2146
- return _context37.abrupt('return', responseJson);
2202
+ responseJson = _context38.sent;
2203
+ return _context38.abrupt('return', responseJson);
2147
2204
 
2148
2205
  case 5:
2149
2206
  case 'end':
2150
- return _context37.stop();
2207
+ return _context38.stop();
2151
2208
  }
2152
2209
  }
2153
- }, _callee37, this);
2210
+ }, _callee38, this);
2154
2211
  }));
2155
2212
 
2156
- function deletePayment(_x57) {
2157
- return _ref38.apply(this, arguments);
2213
+ function deletePayment(_x58) {
2214
+ return _ref39.apply(this, arguments);
2158
2215
  }
2159
2216
 
2160
2217
  return deletePayment;
@@ -2166,32 +2223,32 @@ var Como = function () {
2166
2223
  }, {
2167
2224
  key: 'getMemberMessages',
2168
2225
  value: function () {
2169
- var _ref39 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee38(tag, limit, offset) {
2226
+ var _ref40 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee39(tag, limit, offset) {
2170
2227
  var fetchExpiredMessages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2171
2228
 
2172
2229
  var _comoData36, api, locationId, env;
2173
2230
 
2174
- return _regenerator2.default.wrap(function _callee38$(_context38) {
2231
+ return _regenerator2.default.wrap(function _callee39$(_context39) {
2175
2232
  while (1) {
2176
- switch (_context38.prev = _context38.next) {
2233
+ switch (_context39.prev = _context39.next) {
2177
2234
  case 0:
2178
2235
  _comoData36 = this.comoData, api = _comoData36.api, locationId = _comoData36.locationId, env = _comoData36.env_params;
2179
- _context38.next = 3;
2236
+ _context39.next = 3;
2180
2237
  return this.refreshTokenIfNeeded();
2181
2238
 
2182
2239
  case 3:
2183
- return _context38.abrupt('return', api.getMemberMessages(env.services_root, locationId, tag, limit, offset, fetchExpiredMessages));
2240
+ return _context39.abrupt('return', api.getMemberMessages(env.services_root, locationId, tag, limit, offset, fetchExpiredMessages));
2184
2241
 
2185
2242
  case 4:
2186
2243
  case 'end':
2187
- return _context38.stop();
2244
+ return _context39.stop();
2188
2245
  }
2189
2246
  }
2190
- }, _callee38, this);
2247
+ }, _callee39, this);
2191
2248
  }));
2192
2249
 
2193
- function getMemberMessages(_x58, _x59, _x60) {
2194
- return _ref39.apply(this, arguments);
2250
+ function getMemberMessages(_x59, _x60, _x61) {
2251
+ return _ref40.apply(this, arguments);
2195
2252
  }
2196
2253
 
2197
2254
  return getMemberMessages;
@@ -2222,26 +2279,26 @@ var Como = function () {
2222
2279
  }, {
2223
2280
  key: 'budgetTransfer',
2224
2281
  value: function () {
2225
- var _ref40 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee39(receiver, sender, amount, wallet) {
2282
+ var _ref41 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee40(receiver, sender, amount, wallet) {
2226
2283
  var _comoData38, api, locationId, env;
2227
2284
 
2228
- return _regenerator2.default.wrap(function _callee39$(_context39) {
2285
+ return _regenerator2.default.wrap(function _callee40$(_context40) {
2229
2286
  while (1) {
2230
- switch (_context39.prev = _context39.next) {
2287
+ switch (_context40.prev = _context40.next) {
2231
2288
  case 0:
2232
2289
  _comoData38 = this.comoData, api = _comoData38.api, locationId = _comoData38.locationId, env = _comoData38.env_params;
2233
- return _context39.abrupt('return', api.budgetTransfer(env.services_root, locationId, receiver, sender, amount, wallet));
2290
+ return _context40.abrupt('return', api.budgetTransfer(env.services_root, locationId, receiver, sender, amount, wallet));
2234
2291
 
2235
2292
  case 2:
2236
2293
  case 'end':
2237
- return _context39.stop();
2294
+ return _context40.stop();
2238
2295
  }
2239
2296
  }
2240
- }, _callee39, this);
2297
+ }, _callee40, this);
2241
2298
  }));
2242
2299
 
2243
- function budgetTransfer(_x62, _x63, _x64, _x65) {
2244
- return _ref40.apply(this, arguments);
2300
+ function budgetTransfer(_x63, _x64, _x65, _x66) {
2301
+ return _ref41.apply(this, arguments);
2245
2302
  }
2246
2303
 
2247
2304
  return budgetTransfer;
@@ -2268,26 +2325,26 @@ var Como = function () {
2268
2325
  }, {
2269
2326
  key: 'budgetTransferClaim',
2270
2327
  value: function () {
2271
- var _ref41 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee40(claimCode) {
2328
+ var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee41(claimCode) {
2272
2329
  var _comoData40, api, locationId, env;
2273
2330
 
2274
- return _regenerator2.default.wrap(function _callee40$(_context40) {
2331
+ return _regenerator2.default.wrap(function _callee41$(_context41) {
2275
2332
  while (1) {
2276
- switch (_context40.prev = _context40.next) {
2333
+ switch (_context41.prev = _context41.next) {
2277
2334
  case 0:
2278
2335
  _comoData40 = this.comoData, api = _comoData40.api, locationId = _comoData40.locationId, env = _comoData40.env_params;
2279
- return _context40.abrupt('return', api.budgetTransferClaim(env.services_root, locationId, claimCode));
2336
+ return _context41.abrupt('return', api.budgetTransferClaim(env.services_root, locationId, claimCode));
2280
2337
 
2281
2338
  case 2:
2282
2339
  case 'end':
2283
- return _context40.stop();
2340
+ return _context41.stop();
2284
2341
  }
2285
2342
  }
2286
- }, _callee40, this);
2343
+ }, _callee41, this);
2287
2344
  }));
2288
2345
 
2289
- function budgetTransferClaim(_x66) {
2290
- return _ref41.apply(this, arguments);
2346
+ function budgetTransferClaim(_x67) {
2347
+ return _ref42.apply(this, arguments);
2291
2348
  }
2292
2349
 
2293
2350
  return budgetTransferClaim;
@@ -2320,26 +2377,26 @@ var Como = function () {
2320
2377
  }, {
2321
2378
  key: 'logUserAction',
2322
2379
  value: function () {
2323
- var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee41(action, logData) {
2380
+ var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee42(action, logData) {
2324
2381
  var _comoData42, env, locationId, api;
2325
2382
 
2326
- return _regenerator2.default.wrap(function _callee41$(_context41) {
2383
+ return _regenerator2.default.wrap(function _callee42$(_context42) {
2327
2384
  while (1) {
2328
- switch (_context41.prev = _context41.next) {
2385
+ switch (_context42.prev = _context42.next) {
2329
2386
  case 0:
2330
2387
  _comoData42 = this.comoData, env = _comoData42.env_params, locationId = _comoData42.locationId, api = _comoData42.api;
2331
- return _context41.abrupt('return', api.logUserAction(env.zapp_root, locationId, action, logData));
2388
+ return _context42.abrupt('return', api.logUserAction(env.zapp_root, locationId, action, logData));
2332
2389
 
2333
2390
  case 2:
2334
2391
  case 'end':
2335
- return _context41.stop();
2392
+ return _context42.stop();
2336
2393
  }
2337
2394
  }
2338
- }, _callee41, this);
2395
+ }, _callee42, this);
2339
2396
  }));
2340
2397
 
2341
- function logUserAction(_x67, _x68) {
2342
- return _ref42.apply(this, arguments);
2398
+ function logUserAction(_x68, _x69) {
2399
+ return _ref43.apply(this, arguments);
2343
2400
  }
2344
2401
 
2345
2402
  return logUserAction;
@@ -2354,26 +2411,26 @@ var Como = function () {
2354
2411
  }, {
2355
2412
  key: 'getPurchaseHistory',
2356
2413
  value: function () {
2357
- var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee42(limit, offset) {
2414
+ var _ref44 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee43(limit, offset) {
2358
2415
  var _comoData43, locationId, api, membership;
2359
2416
 
2360
- return _regenerator2.default.wrap(function _callee42$(_context42) {
2417
+ return _regenerator2.default.wrap(function _callee43$(_context43) {
2361
2418
  while (1) {
2362
- switch (_context42.prev = _context42.next) {
2419
+ switch (_context43.prev = _context43.next) {
2363
2420
  case 0:
2364
2421
  _comoData43 = this.comoData, locationId = _comoData43.locationId, api = _comoData43.api, membership = _comoData43.membership;
2365
- return _context42.abrupt('return', api.getPurchaseHistory(locationId, membership.Key, limit, offset));
2422
+ return _context43.abrupt('return', api.getPurchaseHistory(locationId, membership.Key, limit, offset));
2366
2423
 
2367
2424
  case 2:
2368
2425
  case 'end':
2369
- return _context42.stop();
2426
+ return _context43.stop();
2370
2427
  }
2371
2428
  }
2372
- }, _callee42, this);
2429
+ }, _callee43, this);
2373
2430
  }));
2374
2431
 
2375
- function getPurchaseHistory(_x69, _x70) {
2376
- return _ref43.apply(this, arguments);
2432
+ function getPurchaseHistory(_x70, _x71) {
2433
+ return _ref44.apply(this, arguments);
2377
2434
  }
2378
2435
 
2379
2436
  return getPurchaseHistory;