@como/como-client 0.7.92 → 0.7.94

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