@como/como-client 0.9.1 → 0.9.2

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
@@ -922,6 +922,95 @@ var Como = function () {
922
922
  return login;
923
923
  }()
924
924
 
925
+ /**
926
+ * Social login via Firebase SSO (Google/Facebook/Apple).
927
+ * @param {Object} params
928
+ * @param {string} params.socialId - Firebase user UID
929
+ * @param {string} params.provider - Social provider (google/facebook/apple)
930
+ * @param {string} params.idToken - Firebase ID token
931
+ * @returns {Promise<Object>} { success, accessToken, refreshToken, consent } or { success: false, userExists: false }
932
+ */
933
+
934
+ }, {
935
+ key: 'socialLogin',
936
+ value: function () {
937
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(_ref14) {
938
+ var socialId = _ref14.socialId,
939
+ provider = _ref14.provider,
940
+ idToken = _ref14.idToken;
941
+
942
+ var api, data, _error$response$data9, code, message;
943
+
944
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
945
+ while (1) {
946
+ switch (_context13.prev = _context13.next) {
947
+ case 0:
948
+ api = this.comoData.api;
949
+ _context13.prev = 1;
950
+ _context13.next = 4;
951
+ return api.socialLogin(socialId, provider, idToken);
952
+
953
+ case 4:
954
+ data = _context13.sent;
955
+ return _context13.abrupt('return', data);
956
+
957
+ case 8:
958
+ _context13.prev = 8;
959
+ _context13.t0 = _context13['catch'](1);
960
+
961
+ if (!(_context13.t0.response && _context13.t0.response.data)) {
962
+ _context13.next = 13;
963
+ break;
964
+ }
965
+
966
+ _error$response$data9 = _context13.t0.response.data, code = _error$response$data9.code, message = _error$response$data9.message;
967
+ throw new Error(code || message);
968
+
969
+ case 13:
970
+ throw _context13.t0;
971
+
972
+ case 14:
973
+ case 'end':
974
+ return _context13.stop();
975
+ }
976
+ }
977
+ }, _callee13, this, [[1, 8]]);
978
+ }));
979
+
980
+ function socialLogin(_x38) {
981
+ return _ref13.apply(this, arguments);
982
+ }
983
+
984
+ return socialLogin;
985
+ }()
986
+ }, {
987
+ key: 'socialLoginCheck',
988
+ value: function () {
989
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(_ref16) {
990
+ var socialId = _ref16.socialId,
991
+ provider = _ref16.provider,
992
+ idToken = _ref16.idToken;
993
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
994
+ while (1) {
995
+ switch (_context14.prev = _context14.next) {
996
+ case 0:
997
+ return _context14.abrupt('return', this.socialLogin({ socialId: socialId, provider: provider, idToken: idToken }));
998
+
999
+ case 1:
1000
+ case 'end':
1001
+ return _context14.stop();
1002
+ }
1003
+ }
1004
+ }, _callee14, this);
1005
+ }));
1006
+
1007
+ function socialLoginCheck(_x39) {
1008
+ return _ref15.apply(this, arguments);
1009
+ }
1010
+
1011
+ return socialLoginCheck;
1012
+ }()
1013
+
925
1014
  /**
926
1015
  *
927
1016
  * @param {Object} identifier key-value identifiers
@@ -935,39 +1024,39 @@ var Como = function () {
935
1024
  }, {
936
1025
  key: 'loginVerify',
937
1026
  value: function () {
938
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(identifier, type, code, reCaptchaToken, recaptchaTokenType, devicePlatform) {
939
- var api, _ref14, consent, _error$response$data9, errCode, message;
1027
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(identifier, type, code, reCaptchaToken, recaptchaTokenType, devicePlatform) {
1028
+ var api, _ref18, consent, _error$response$data10, errCode, message;
940
1029
 
941
- return _regenerator2.default.wrap(function _callee13$(_context13) {
1030
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
942
1031
  while (1) {
943
- switch (_context13.prev = _context13.next) {
1032
+ switch (_context15.prev = _context15.next) {
944
1033
  case 0:
945
1034
  api = this.comoData.api;
946
- _context13.prev = 1;
947
- _context13.next = 4;
1035
+ _context15.prev = 1;
1036
+ _context15.next = 4;
948
1037
  return api.logInVerify(code, type, identifier, reCaptchaToken, recaptchaTokenType, devicePlatform);
949
1038
 
950
1039
  case 4:
951
- _ref14 = _context13.sent;
952
- consent = _ref14.consent;
1040
+ _ref18 = _context15.sent;
1041
+ consent = _ref18.consent;
953
1042
 
954
1043
  this.comoData.consent = consent;
955
- _context13.next = 17;
1044
+ _context15.next = 17;
956
1045
  break;
957
1046
 
958
1047
  case 9:
959
- _context13.prev = 9;
960
- _context13.t0 = _context13['catch'](1);
1048
+ _context15.prev = 9;
1049
+ _context15.t0 = _context15['catch'](1);
961
1050
 
962
- if (!(_context13.t0.response && _context13.t0.response.data)) {
963
- _context13.next = 16;
1051
+ if (!(_context15.t0.response && _context15.t0.response.data)) {
1052
+ _context15.next = 16;
964
1053
  break;
965
1054
  }
966
1055
 
967
- _error$response$data9 = _context13.t0.response.data, errCode = _error$response$data9.code, message = _error$response$data9.message;
1056
+ _error$response$data10 = _context15.t0.response.data, errCode = _error$response$data10.code, message = _error$response$data10.message;
968
1057
 
969
1058
  if (!(message && message === 'Invalid verification Code')) {
970
- _context13.next = 15;
1059
+ _context15.next = 15;
971
1060
  break;
972
1061
  }
973
1062
 
@@ -977,21 +1066,21 @@ var Como = function () {
977
1066
  throw new Error(errCode || message);
978
1067
 
979
1068
  case 16:
980
- throw _context13.t0;
1069
+ throw _context15.t0;
981
1070
 
982
1071
  case 17:
983
- return _context13.abrupt('return', this.getCredentials());
1072
+ return _context15.abrupt('return', this.getCredentials());
984
1073
 
985
1074
  case 18:
986
1075
  case 'end':
987
- return _context13.stop();
1076
+ return _context15.stop();
988
1077
  }
989
1078
  }
990
- }, _callee13, this, [[1, 9]]);
1079
+ }, _callee15, this, [[1, 9]]);
991
1080
  }));
992
1081
 
993
- function loginVerify(_x38, _x39, _x40, _x41, _x42, _x43) {
994
- return _ref13.apply(this, arguments);
1082
+ function loginVerify(_x40, _x41, _x42, _x43, _x44, _x45) {
1083
+ return _ref17.apply(this, arguments);
995
1084
  }
996
1085
 
997
1086
  return loginVerify;
@@ -1007,34 +1096,34 @@ var Como = function () {
1007
1096
  }, {
1008
1097
  key: 'reloadMembership',
1009
1098
  value: function () {
1010
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1099
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
1011
1100
  var onlyAssetKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1012
1101
 
1013
1102
  var _comoData6, env, locationId, api, membership;
1014
1103
 
1015
- return _regenerator2.default.wrap(function _callee14$(_context14) {
1104
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
1016
1105
  while (1) {
1017
- switch (_context14.prev = _context14.next) {
1106
+ switch (_context16.prev = _context16.next) {
1018
1107
  case 0:
1019
1108
  _comoData6 = this.comoData, env = _comoData6.env_params, locationId = _comoData6.locationId, api = _comoData6.api;
1020
- _context14.next = 3;
1109
+ _context16.next = 3;
1021
1110
  return api.getUserAtLocation(env.zapp_root, locationId, onlyAssetKeys);
1022
1111
 
1023
1112
  case 3:
1024
- membership = _context14.sent;
1113
+ membership = _context16.sent;
1025
1114
 
1026
1115
  this.comoData.membership = membership;
1027
1116
 
1028
1117
  case 5:
1029
1118
  case 'end':
1030
- return _context14.stop();
1119
+ return _context16.stop();
1031
1120
  }
1032
1121
  }
1033
- }, _callee14, this);
1122
+ }, _callee16, this);
1034
1123
  }));
1035
1124
 
1036
1125
  function reloadMembership() {
1037
- return _ref15.apply(this, arguments);
1126
+ return _ref19.apply(this, arguments);
1038
1127
  }
1039
1128
 
1040
1129
  return reloadMembership;
@@ -1047,26 +1136,26 @@ var Como = function () {
1047
1136
  }, {
1048
1137
  key: 'openApp',
1049
1138
  value: function () {
1050
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(data) {
1139
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(data) {
1051
1140
  var _comoData7, api, locationId, env;
1052
1141
 
1053
- return _regenerator2.default.wrap(function _callee15$(_context15) {
1142
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
1054
1143
  while (1) {
1055
- switch (_context15.prev = _context15.next) {
1144
+ switch (_context17.prev = _context17.next) {
1056
1145
  case 0:
1057
1146
  _comoData7 = this.comoData, api = _comoData7.api, locationId = _comoData7.locationId, env = _comoData7.env_params;
1058
- return _context15.abrupt('return', api.openApp(env.zapp_root, locationId, data));
1147
+ return _context17.abrupt('return', api.openApp(env.zapp_root, locationId, data));
1059
1148
 
1060
1149
  case 2:
1061
1150
  case 'end':
1062
- return _context15.stop();
1151
+ return _context17.stop();
1063
1152
  }
1064
1153
  }
1065
- }, _callee15, this);
1154
+ }, _callee17, this);
1066
1155
  }));
1067
1156
 
1068
- function openApp(_x45) {
1069
- return _ref16.apply(this, arguments);
1157
+ function openApp(_x47) {
1158
+ return _ref20.apply(this, arguments);
1070
1159
  }
1071
1160
 
1072
1161
  return openApp;
@@ -1081,33 +1170,33 @@ var Como = function () {
1081
1170
  }, {
1082
1171
  key: 'clientUpdateMembership',
1083
1172
  value: function () {
1084
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(pushEnable, locationEnable) {
1173
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(pushEnable, locationEnable) {
1085
1174
  var _comoData8, api, locationId, token, env;
1086
1175
 
1087
- return _regenerator2.default.wrap(function _callee16$(_context16) {
1176
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
1088
1177
  while (1) {
1089
- switch (_context16.prev = _context16.next) {
1178
+ switch (_context18.prev = _context18.next) {
1090
1179
  case 0:
1091
1180
  _comoData8 = this.comoData, api = _comoData8.api, locationId = _comoData8.locationId, token = _comoData8.token, env = _comoData8.env_params;
1092
- _context16.prev = 1;
1093
- return _context16.abrupt('return', api.clientUpdateMembership(env.services_root, locationId, pushEnable, locationEnable));
1181
+ _context18.prev = 1;
1182
+ return _context18.abrupt('return', api.clientUpdateMembership(env.services_root, locationId, pushEnable, locationEnable));
1094
1183
 
1095
1184
  case 5:
1096
- _context16.prev = 5;
1097
- _context16.t0 = _context16['catch'](1);
1185
+ _context18.prev = 5;
1186
+ _context18.t0 = _context18['catch'](1);
1098
1187
 
1099
- console.log('clientUpdateMembership failed, token:' + token + ', locationId:' + locationId + ', error: ' + _context16.t0);
1188
+ console.log('clientUpdateMembership failed, token:' + token + ', locationId:' + locationId + ', error: ' + _context18.t0);
1100
1189
 
1101
1190
  case 8:
1102
1191
  case 'end':
1103
- return _context16.stop();
1192
+ return _context18.stop();
1104
1193
  }
1105
1194
  }
1106
- }, _callee16, this, [[1, 5]]);
1195
+ }, _callee18, this, [[1, 5]]);
1107
1196
  }));
1108
1197
 
1109
- function clientUpdateMembership(_x46, _x47) {
1110
- return _ref17.apply(this, arguments);
1198
+ function clientUpdateMembership(_x48, _x49) {
1199
+ return _ref21.apply(this, arguments);
1111
1200
  }
1112
1201
 
1113
1202
  return clientUpdateMembership;
@@ -1121,18 +1210,18 @@ var Como = function () {
1121
1210
  }, {
1122
1211
  key: 'downloadMainResource',
1123
1212
  value: function () {
1124
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(resourceId) {
1213
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(resourceId) {
1125
1214
  var resource, err, _comoData9, env, api, responseJson;
1126
1215
 
1127
- return _regenerator2.default.wrap(function _callee17$(_context17) {
1216
+ return _regenerator2.default.wrap(function _callee19$(_context19) {
1128
1217
  while (1) {
1129
- switch (_context17.prev = _context17.next) {
1218
+ switch (_context19.prev = _context19.next) {
1130
1219
  case 0:
1131
- _context17.prev = 0;
1220
+ _context19.prev = 0;
1132
1221
  resource = this.comoData.mainResourcesMap[resourceId];
1133
1222
 
1134
1223
  if (resource) {
1135
- _context17.next = 5;
1224
+ _context19.next = 5;
1136
1225
  break;
1137
1226
  }
1138
1227
 
@@ -1141,34 +1230,34 @@ var Como = function () {
1141
1230
 
1142
1231
  case 5:
1143
1232
  _comoData9 = this.comoData, env = _comoData9.env_params, api = _comoData9.api;
1144
- _context17.next = 8;
1233
+ _context19.next = 8;
1145
1234
  return api.getLoyaltyResource(env.services_root_cdn, resource.id, 'Namespace' in resource ? resource.Namespace : 'location_' + this.comoData.locationId, resource.Version, this.comoData.locationId);
1146
1235
 
1147
1236
  case 8:
1148
- responseJson = _context17.sent;
1237
+ responseJson = _context19.sent;
1149
1238
 
1150
1239
 
1151
1240
  this.comoData.mainResources[resourceId] = responseJson;
1152
- _context17.next = 16;
1241
+ _context19.next = 16;
1153
1242
  break;
1154
1243
 
1155
1244
  case 12:
1156
- _context17.prev = 12;
1157
- _context17.t0 = _context17['catch'](0);
1245
+ _context19.prev = 12;
1246
+ _context19.t0 = _context19['catch'](0);
1158
1247
 
1159
- console.log('downloadMainResource failed, resourceId:' + resourceId + ', locationId:' + this.comoData.locationId + ', this.comoData.mainResourcesMap: ' + this.comoData.mainResourcesMap + ', error: ' + _context17.t0);
1160
- throw new Error(_context17.t0);
1248
+ console.log('downloadMainResource failed, resourceId:' + resourceId + ', locationId:' + this.comoData.locationId + ', this.comoData.mainResourcesMap: ' + this.comoData.mainResourcesMap + ', error: ' + _context19.t0);
1249
+ throw new Error(_context19.t0);
1161
1250
 
1162
1251
  case 16:
1163
1252
  case 'end':
1164
- return _context17.stop();
1253
+ return _context19.stop();
1165
1254
  }
1166
1255
  }
1167
- }, _callee17, this, [[0, 12]]);
1256
+ }, _callee19, this, [[0, 12]]);
1168
1257
  }));
1169
1258
 
1170
- function downloadMainResource(_x48) {
1171
- return _ref18.apply(this, arguments);
1259
+ function downloadMainResource(_x50) {
1260
+ return _ref22.apply(this, arguments);
1172
1261
  }
1173
1262
 
1174
1263
  return downloadMainResource;
@@ -1182,18 +1271,18 @@ var Como = function () {
1182
1271
  }, {
1183
1272
  key: 'reloadLocationState',
1184
1273
  value: function () {
1185
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18() {
1274
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20() {
1186
1275
  var api, state, mainResources;
1187
- return _regenerator2.default.wrap(function _callee18$(_context18) {
1276
+ return _regenerator2.default.wrap(function _callee20$(_context20) {
1188
1277
  while (1) {
1189
- switch (_context18.prev = _context18.next) {
1278
+ switch (_context20.prev = _context20.next) {
1190
1279
  case 0:
1191
1280
  api = this.comoData.api;
1192
- _context18.next = 3;
1281
+ _context20.next = 3;
1193
1282
  return api.getLocationState(this.comoData.env_params.zapp_root, this.comoData.locationId);
1194
1283
 
1195
1284
  case 3:
1196
- state = _context18.sent;
1285
+ state = _context20.sent;
1197
1286
 
1198
1287
  this.comoData.locationState = state;
1199
1288
  mainResources = state.MainResources.Resource;
@@ -1206,14 +1295,14 @@ var Como = function () {
1206
1295
 
1207
1296
  case 7:
1208
1297
  case 'end':
1209
- return _context18.stop();
1298
+ return _context20.stop();
1210
1299
  }
1211
1300
  }
1212
- }, _callee18, this);
1301
+ }, _callee20, this);
1213
1302
  }));
1214
1303
 
1215
1304
  function reloadLocationState() {
1216
- return _ref19.apply(this, arguments);
1305
+ return _ref23.apply(this, arguments);
1217
1306
  }
1218
1307
 
1219
1308
  return reloadLocationState;
@@ -1226,35 +1315,35 @@ var Como = function () {
1226
1315
  }, {
1227
1316
  key: 'getAppClientID',
1228
1317
  value: function () {
1229
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19() {
1318
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21() {
1230
1319
  var _comoData10, env, locationId, api, responseJson;
1231
1320
 
1232
- return _regenerator2.default.wrap(function _callee19$(_context19) {
1321
+ return _regenerator2.default.wrap(function _callee21$(_context21) {
1233
1322
  while (1) {
1234
- switch (_context19.prev = _context19.next) {
1323
+ switch (_context21.prev = _context21.next) {
1235
1324
  case 0:
1236
1325
  _comoData10 = this.comoData, env = _comoData10.env_params, locationId = _comoData10.locationId, api = _comoData10.api;
1237
- _context19.next = 3;
1326
+ _context21.next = 3;
1238
1327
  return this.refreshTokenIfNeeded();
1239
1328
 
1240
1329
  case 3:
1241
- _context19.next = 5;
1330
+ _context21.next = 5;
1242
1331
  return api.getShortUserId(env.zapp_root, locationId);
1243
1332
 
1244
1333
  case 5:
1245
- responseJson = _context19.sent;
1246
- return _context19.abrupt('return', responseJson.ID);
1334
+ responseJson = _context21.sent;
1335
+ return _context21.abrupt('return', responseJson.ID);
1247
1336
 
1248
1337
  case 7:
1249
1338
  case 'end':
1250
- return _context19.stop();
1339
+ return _context21.stop();
1251
1340
  }
1252
1341
  }
1253
- }, _callee19, this);
1342
+ }, _callee21, this);
1254
1343
  }));
1255
1344
 
1256
1345
  function getAppClientID() {
1257
- return _ref20.apply(this, arguments);
1346
+ return _ref24.apply(this, arguments);
1258
1347
  }
1259
1348
 
1260
1349
  return getAppClientID;
@@ -1267,31 +1356,31 @@ var Como = function () {
1267
1356
  }, {
1268
1357
  key: 'getPaymentCode',
1269
1358
  value: function () {
1270
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20() {
1359
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee22() {
1271
1360
  var _comoData11, env, locationId, api, responseJson;
1272
1361
 
1273
- return _regenerator2.default.wrap(function _callee20$(_context20) {
1362
+ return _regenerator2.default.wrap(function _callee22$(_context22) {
1274
1363
  while (1) {
1275
- switch (_context20.prev = _context20.next) {
1364
+ switch (_context22.prev = _context22.next) {
1276
1365
  case 0:
1277
1366
  _comoData11 = this.comoData, env = _comoData11.env_params, locationId = _comoData11.locationId, api = _comoData11.api;
1278
- _context20.next = 3;
1367
+ _context22.next = 3;
1279
1368
  return api.getPaymentCode(env.zapp_root, locationId);
1280
1369
 
1281
1370
  case 3:
1282
- responseJson = _context20.sent;
1283
- return _context20.abrupt('return', responseJson.VerificationCode);
1371
+ responseJson = _context22.sent;
1372
+ return _context22.abrupt('return', responseJson.VerificationCode);
1284
1373
 
1285
1374
  case 5:
1286
1375
  case 'end':
1287
- return _context20.stop();
1376
+ return _context22.stop();
1288
1377
  }
1289
1378
  }
1290
- }, _callee20, this);
1379
+ }, _callee22, this);
1291
1380
  }));
1292
1381
 
1293
1382
  function getPaymentCode() {
1294
- return _ref21.apply(this, arguments);
1383
+ return _ref25.apply(this, arguments);
1295
1384
  }
1296
1385
 
1297
1386
  return getPaymentCode;
@@ -1304,47 +1393,47 @@ var Como = function () {
1304
1393
  }, {
1305
1394
  key: 'logout',
1306
1395
  value: function () {
1307
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21() {
1308
- var api, response, _error$response$data10, errCode, message;
1396
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee23() {
1397
+ var api, response, _error$response$data11, errCode, message;
1309
1398
 
1310
- return _regenerator2.default.wrap(function _callee21$(_context21) {
1399
+ return _regenerator2.default.wrap(function _callee23$(_context23) {
1311
1400
  while (1) {
1312
- switch (_context21.prev = _context21.next) {
1401
+ switch (_context23.prev = _context23.next) {
1313
1402
  case 0:
1314
1403
  api = this.comoData.api;
1315
- _context21.prev = 1;
1316
- _context21.next = 4;
1404
+ _context23.prev = 1;
1405
+ _context23.next = 4;
1317
1406
  return api.logOut();
1318
1407
 
1319
1408
  case 4:
1320
- response = _context21.sent;
1321
- return _context21.abrupt('return', response);
1409
+ response = _context23.sent;
1410
+ return _context23.abrupt('return', response);
1322
1411
 
1323
1412
  case 8:
1324
- _context21.prev = 8;
1325
- _context21.t0 = _context21['catch'](1);
1413
+ _context23.prev = 8;
1414
+ _context23.t0 = _context23['catch'](1);
1326
1415
 
1327
- if (!(_context21.t0.response && _context21.t0.response.data)) {
1328
- _context21.next = 13;
1416
+ if (!(_context23.t0.response && _context23.t0.response.data)) {
1417
+ _context23.next = 13;
1329
1418
  break;
1330
1419
  }
1331
1420
 
1332
- _error$response$data10 = _context21.t0.response.data, errCode = _error$response$data10.code, message = _error$response$data10.message;
1421
+ _error$response$data11 = _context23.t0.response.data, errCode = _error$response$data11.code, message = _error$response$data11.message;
1333
1422
  throw new Error(errCode || message);
1334
1423
 
1335
1424
  case 13:
1336
- throw _context21.t0;
1425
+ throw _context23.t0;
1337
1426
 
1338
1427
  case 14:
1339
1428
  case 'end':
1340
- return _context21.stop();
1429
+ return _context23.stop();
1341
1430
  }
1342
1431
  }
1343
- }, _callee21, this, [[1, 8]]);
1432
+ }, _callee23, this, [[1, 8]]);
1344
1433
  }));
1345
1434
 
1346
1435
  function logout() {
1347
- return _ref22.apply(this, arguments);
1436
+ return _ref26.apply(this, arguments);
1348
1437
  }
1349
1438
 
1350
1439
  return logout;
@@ -1358,35 +1447,35 @@ var Como = function () {
1358
1447
  }, {
1359
1448
  key: 'redeemAsset',
1360
1449
  value: function () {
1361
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee22(assetKey) {
1450
+ var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee24(assetKey) {
1362
1451
  var _comoData12, env, locationId, api, responseJson;
1363
1452
 
1364
- return _regenerator2.default.wrap(function _callee22$(_context22) {
1453
+ return _regenerator2.default.wrap(function _callee24$(_context24) {
1365
1454
  while (1) {
1366
- switch (_context22.prev = _context22.next) {
1455
+ switch (_context24.prev = _context24.next) {
1367
1456
  case 0:
1368
1457
  _comoData12 = this.comoData, env = _comoData12.env_params, locationId = _comoData12.locationId, api = _comoData12.api;
1369
- _context22.next = 3;
1458
+ _context24.next = 3;
1370
1459
  return this.refreshTokenIfNeeded();
1371
1460
 
1372
1461
  case 3:
1373
- _context22.next = 5;
1462
+ _context24.next = 5;
1374
1463
  return api.redeemAsset(env.zapp_root, locationId, assetKey);
1375
1464
 
1376
1465
  case 5:
1377
- responseJson = _context22.sent;
1378
- return _context22.abrupt('return', responseJson);
1466
+ responseJson = _context24.sent;
1467
+ return _context24.abrupt('return', responseJson);
1379
1468
 
1380
1469
  case 7:
1381
1470
  case 'end':
1382
- return _context22.stop();
1471
+ return _context24.stop();
1383
1472
  }
1384
1473
  }
1385
- }, _callee22, this);
1474
+ }, _callee24, this);
1386
1475
  }));
1387
1476
 
1388
- function redeemAsset(_x49) {
1389
- return _ref23.apply(this, arguments);
1477
+ function redeemAsset(_x51) {
1478
+ return _ref27.apply(this, arguments);
1390
1479
  }
1391
1480
 
1392
1481
  return redeemAsset;
@@ -1400,31 +1489,31 @@ var Como = function () {
1400
1489
  }, {
1401
1490
  key: 'purchaseAsset',
1402
1491
  value: function () {
1403
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee23(itemId) {
1492
+ var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee25(itemId) {
1404
1493
  var _comoData13, env, locationId, api, responseJson;
1405
1494
 
1406
- return _regenerator2.default.wrap(function _callee23$(_context23) {
1495
+ return _regenerator2.default.wrap(function _callee25$(_context25) {
1407
1496
  while (1) {
1408
- switch (_context23.prev = _context23.next) {
1497
+ switch (_context25.prev = _context25.next) {
1409
1498
  case 0:
1410
1499
  _comoData13 = this.comoData, env = _comoData13.env_params, locationId = _comoData13.locationId, api = _comoData13.api;
1411
- _context23.next = 3;
1500
+ _context25.next = 3;
1412
1501
  return api.purchaseAsset(env.zapp_root, locationId, itemId);
1413
1502
 
1414
1503
  case 3:
1415
- responseJson = _context23.sent;
1416
- return _context23.abrupt('return', responseJson);
1504
+ responseJson = _context25.sent;
1505
+ return _context25.abrupt('return', responseJson);
1417
1506
 
1418
1507
  case 5:
1419
1508
  case 'end':
1420
- return _context23.stop();
1509
+ return _context25.stop();
1421
1510
  }
1422
1511
  }
1423
- }, _callee23, this);
1512
+ }, _callee25, this);
1424
1513
  }));
1425
1514
 
1426
- function purchaseAsset(_x50) {
1427
- return _ref24.apply(this, arguments);
1515
+ function purchaseAsset(_x52) {
1516
+ return _ref28.apply(this, arguments);
1428
1517
  }
1429
1518
 
1430
1519
  return purchaseAsset;
@@ -1432,31 +1521,31 @@ var Como = function () {
1432
1521
  }, {
1433
1522
  key: 'getUserPointShopDataAPI2',
1434
1523
  value: function () {
1435
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee24() {
1524
+ var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee26() {
1436
1525
  var _comoData14, env, locationId, api, responseJson;
1437
1526
 
1438
- return _regenerator2.default.wrap(function _callee24$(_context24) {
1527
+ return _regenerator2.default.wrap(function _callee26$(_context26) {
1439
1528
  while (1) {
1440
- switch (_context24.prev = _context24.next) {
1529
+ switch (_context26.prev = _context26.next) {
1441
1530
  case 0:
1442
1531
  _comoData14 = this.comoData, env = _comoData14.env_params, locationId = _comoData14.locationId, api = _comoData14.api;
1443
- _context24.next = 3;
1532
+ _context26.next = 3;
1444
1533
  return api.getUserPointShopDataAPI2(env.zapp_root, locationId);
1445
1534
 
1446
1535
  case 3:
1447
- responseJson = _context24.sent;
1448
- return _context24.abrupt('return', responseJson);
1536
+ responseJson = _context26.sent;
1537
+ return _context26.abrupt('return', responseJson);
1449
1538
 
1450
1539
  case 5:
1451
1540
  case 'end':
1452
- return _context24.stop();
1541
+ return _context26.stop();
1453
1542
  }
1454
1543
  }
1455
- }, _callee24, this);
1544
+ }, _callee26, this);
1456
1545
  }));
1457
1546
 
1458
1547
  function getUserPointShopDataAPI2() {
1459
- return _ref25.apply(this, arguments);
1548
+ return _ref29.apply(this, arguments);
1460
1549
  }
1461
1550
 
1462
1551
  return getUserPointShopDataAPI2;
@@ -1464,31 +1553,31 @@ var Como = function () {
1464
1553
  }, {
1465
1554
  key: 'purchaseAssetAPI2',
1466
1555
  value: function () {
1467
- var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee25(assetID) {
1556
+ var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee27(assetID) {
1468
1557
  var _comoData15, env, locationId, api, responseJson;
1469
1558
 
1470
- return _regenerator2.default.wrap(function _callee25$(_context25) {
1559
+ return _regenerator2.default.wrap(function _callee27$(_context27) {
1471
1560
  while (1) {
1472
- switch (_context25.prev = _context25.next) {
1561
+ switch (_context27.prev = _context27.next) {
1473
1562
  case 0:
1474
1563
  _comoData15 = this.comoData, env = _comoData15.env_params, locationId = _comoData15.locationId, api = _comoData15.api;
1475
- _context25.next = 3;
1564
+ _context27.next = 3;
1476
1565
  return api.purchaseAssetAPI2(env.zapp_root, locationId, assetID);
1477
1566
 
1478
1567
  case 3:
1479
- responseJson = _context25.sent;
1480
- return _context25.abrupt('return', responseJson);
1568
+ responseJson = _context27.sent;
1569
+ return _context27.abrupt('return', responseJson);
1481
1570
 
1482
1571
  case 5:
1483
1572
  case 'end':
1484
- return _context25.stop();
1573
+ return _context27.stop();
1485
1574
  }
1486
1575
  }
1487
- }, _callee25, this);
1576
+ }, _callee27, this);
1488
1577
  }));
1489
1578
 
1490
- function purchaseAssetAPI2(_x51) {
1491
- return _ref26.apply(this, arguments);
1579
+ function purchaseAssetAPI2(_x53) {
1580
+ return _ref30.apply(this, arguments);
1492
1581
  }
1493
1582
 
1494
1583
  return purchaseAssetAPI2;
@@ -1502,32 +1591,32 @@ var Como = function () {
1502
1591
  }, {
1503
1592
  key: 'reloadAssets',
1504
1593
  value: function () {
1505
- var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee26() {
1594
+ var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee28() {
1506
1595
  var _comoData16, env, locationId, api, responseJson;
1507
1596
 
1508
- return _regenerator2.default.wrap(function _callee26$(_context26) {
1597
+ return _regenerator2.default.wrap(function _callee28$(_context28) {
1509
1598
  while (1) {
1510
- switch (_context26.prev = _context26.next) {
1599
+ switch (_context28.prev = _context28.next) {
1511
1600
  case 0:
1512
1601
  _comoData16 = this.comoData, env = _comoData16.env_params, locationId = _comoData16.locationId, api = _comoData16.api;
1513
- _context26.next = 3;
1602
+ _context28.next = 3;
1514
1603
  return api.memberAssets(env.services_root, locationId);
1515
1604
 
1516
1605
  case 3:
1517
- responseJson = _context26.sent;
1606
+ responseJson = _context28.sent;
1518
1607
 
1519
1608
  this.comoData.assets = responseJson;
1520
1609
 
1521
1610
  case 5:
1522
1611
  case 'end':
1523
- return _context26.stop();
1612
+ return _context28.stop();
1524
1613
  }
1525
1614
  }
1526
- }, _callee26, this);
1615
+ }, _callee28, this);
1527
1616
  }));
1528
1617
 
1529
1618
  function reloadAssets() {
1530
- return _ref27.apply(this, arguments);
1619
+ return _ref31.apply(this, arguments);
1531
1620
  }
1532
1621
 
1533
1622
  return reloadAssets;
@@ -1575,16 +1664,16 @@ var Como = function () {
1575
1664
  }, {
1576
1665
  key: 'downloadMainResources',
1577
1666
  value: function () {
1578
- var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee27() {
1667
+ var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee29() {
1579
1668
  var resources, downloadMainResource, downloads;
1580
- return _regenerator2.default.wrap(function _callee27$(_context27) {
1669
+ return _regenerator2.default.wrap(function _callee29$(_context29) {
1581
1670
  while (1) {
1582
- switch (_context27.prev = _context27.next) {
1671
+ switch (_context29.prev = _context29.next) {
1583
1672
  case 0:
1584
1673
  resources = ['LocationData', 'Menu', 'Updates', 'TCAlts', 'AppTexts', 'DefaultAppTexts'];
1585
1674
  downloadMainResource = this.downloadMainResource.bind(this);
1586
1675
  downloads = resources.map(downloadMainResource);
1587
- _context27.next = 5;
1676
+ _context29.next = 5;
1588
1677
  return _promise2.default.all(downloads);
1589
1678
 
1590
1679
  case 5:
@@ -1592,14 +1681,14 @@ var Como = function () {
1592
1681
 
1593
1682
  case 6:
1594
1683
  case 'end':
1595
- return _context27.stop();
1684
+ return _context29.stop();
1596
1685
  }
1597
1686
  }
1598
- }, _callee27, this);
1687
+ }, _callee29, this);
1599
1688
  }));
1600
1689
 
1601
1690
  function downloadMainResources() {
1602
- return _ref28.apply(this, arguments);
1691
+ return _ref32.apply(this, arguments);
1603
1692
  }
1604
1693
 
1605
1694
  return downloadMainResources;
@@ -1774,27 +1863,27 @@ var Como = function () {
1774
1863
  }, {
1775
1864
  key: 'getRecaptchaConfig',
1776
1865
  value: function () {
1777
- var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee28() {
1778
- return _regenerator2.default.wrap(function _callee28$(_context28) {
1866
+ var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee30() {
1867
+ return _regenerator2.default.wrap(function _callee30$(_context30) {
1779
1868
  while (1) {
1780
- switch (_context28.prev = _context28.next) {
1869
+ switch (_context30.prev = _context30.next) {
1781
1870
  case 0:
1782
- _context28.next = 2;
1871
+ _context30.next = 2;
1783
1872
  return this.refreshTokenIfNeeded();
1784
1873
 
1785
1874
  case 2:
1786
- return _context28.abrupt('return', this.comoData.recaptchaConfig);
1875
+ return _context30.abrupt('return', this.comoData.recaptchaConfig);
1787
1876
 
1788
1877
  case 3:
1789
1878
  case 'end':
1790
- return _context28.stop();
1879
+ return _context30.stop();
1791
1880
  }
1792
1881
  }
1793
- }, _callee28, this);
1882
+ }, _callee30, this);
1794
1883
  }));
1795
1884
 
1796
1885
  function getRecaptchaConfig() {
1797
- return _ref29.apply(this, arguments);
1886
+ return _ref33.apply(this, arguments);
1798
1887
  }
1799
1888
 
1800
1889
  return getRecaptchaConfig;
@@ -1807,33 +1896,33 @@ var Como = function () {
1807
1896
  }, {
1808
1897
  key: 'getRegistrationUrl',
1809
1898
  value: function () {
1810
- var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee29(overrides) {
1899
+ var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee31(overrides) {
1811
1900
  var _comoData24, token, installationId, locationId, env;
1812
1901
 
1813
- return _regenerator2.default.wrap(function _callee29$(_context29) {
1902
+ return _regenerator2.default.wrap(function _callee31$(_context31) {
1814
1903
  while (1) {
1815
- switch (_context29.prev = _context29.next) {
1904
+ switch (_context31.prev = _context31.next) {
1816
1905
  case 0:
1817
- _context29.next = 2;
1906
+ _context31.next = 2;
1818
1907
  return this.refreshTokenIfNeeded();
1819
1908
 
1820
1909
  case 2:
1821
1910
  _comoData24 = this.comoData, token = _comoData24.token, installationId = _comoData24.installationId, locationId = _comoData24.locationId, env = _comoData24.env_params;
1822
- return _context29.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/register?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1911
+ return _context31.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/register?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1823
1912
  installationId: installationId,
1824
1913
  disableSuccessScreen: 'true'
1825
1914
  }, overrides)));
1826
1915
 
1827
1916
  case 4:
1828
1917
  case 'end':
1829
- return _context29.stop();
1918
+ return _context31.stop();
1830
1919
  }
1831
1920
  }
1832
- }, _callee29, this);
1921
+ }, _callee31, this);
1833
1922
  }));
1834
1923
 
1835
- function getRegistrationUrl(_x52) {
1836
- return _ref30.apply(this, arguments);
1924
+ function getRegistrationUrl(_x54) {
1925
+ return _ref34.apply(this, arguments);
1837
1926
  }
1838
1927
 
1839
1928
  return getRegistrationUrl;
@@ -1846,33 +1935,33 @@ var Como = function () {
1846
1935
  }, {
1847
1936
  key: 'getProfileUrl',
1848
1937
  value: function () {
1849
- var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee30(overrides) {
1938
+ var _ref35 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee32(overrides) {
1850
1939
  var _comoData25, token, installationId, locationId, env;
1851
1940
 
1852
- return _regenerator2.default.wrap(function _callee30$(_context30) {
1941
+ return _regenerator2.default.wrap(function _callee32$(_context32) {
1853
1942
  while (1) {
1854
- switch (_context30.prev = _context30.next) {
1943
+ switch (_context32.prev = _context32.next) {
1855
1944
  case 0:
1856
- _context30.next = 2;
1945
+ _context32.next = 2;
1857
1946
  return this.refreshTokenIfNeeded();
1858
1947
 
1859
1948
  case 2:
1860
1949
  _comoData25 = this.comoData, token = _comoData25.token, installationId = _comoData25.installationId, locationId = _comoData25.locationId, env = _comoData25.env_params;
1861
- return _context30.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/profile?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1950
+ return _context32.abrupt('return', urlsUtils.appendQuery(env.app_modules_root + '/profile?token=' + token + '&locationid=' + locationId, (0, _extends3.default)({}, this.getCredentials(), {
1862
1951
  installationId: installationId,
1863
1952
  disableSuccessScreen: 'true'
1864
1953
  }, overrides)));
1865
1954
 
1866
1955
  case 4:
1867
1956
  case 'end':
1868
- return _context30.stop();
1957
+ return _context32.stop();
1869
1958
  }
1870
1959
  }
1871
- }, _callee30, this);
1960
+ }, _callee32, this);
1872
1961
  }));
1873
1962
 
1874
- function getProfileUrl(_x53) {
1875
- return _ref31.apply(this, arguments);
1963
+ function getProfileUrl(_x55) {
1964
+ return _ref35.apply(this, arguments);
1876
1965
  }
1877
1966
 
1878
1967
  return getProfileUrl;
@@ -1885,30 +1974,30 @@ var Como = function () {
1885
1974
  }, {
1886
1975
  key: 'getLoginUrl',
1887
1976
  value: function () {
1888
- var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee31() {
1977
+ var _ref36 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee33() {
1889
1978
  var _comoData26, token, locationId, env;
1890
1979
 
1891
- return _regenerator2.default.wrap(function _callee31$(_context31) {
1980
+ return _regenerator2.default.wrap(function _callee33$(_context33) {
1892
1981
  while (1) {
1893
- switch (_context31.prev = _context31.next) {
1982
+ switch (_context33.prev = _context33.next) {
1894
1983
  case 0:
1895
- _context31.next = 2;
1984
+ _context33.next = 2;
1896
1985
  return this.refreshTokenIfNeeded();
1897
1986
 
1898
1987
  case 2:
1899
1988
  _comoData26 = this.comoData, token = _comoData26.token, locationId = _comoData26.locationId, env = _comoData26.env_params;
1900
- return _context31.abrupt('return', env.app_modules_root + '/login?token=' + token + '&locationid=' + locationId);
1989
+ return _context33.abrupt('return', env.app_modules_root + '/login?token=' + token + '&locationid=' + locationId);
1901
1990
 
1902
1991
  case 4:
1903
1992
  case 'end':
1904
- return _context31.stop();
1993
+ return _context33.stop();
1905
1994
  }
1906
1995
  }
1907
- }, _callee31, this);
1996
+ }, _callee33, this);
1908
1997
  }));
1909
1998
 
1910
1999
  function getLoginUrl() {
1911
- return _ref32.apply(this, arguments);
2000
+ return _ref36.apply(this, arguments);
1912
2001
  }
1913
2002
 
1914
2003
  return getLoginUrl;
@@ -1921,31 +2010,31 @@ var Como = function () {
1921
2010
  }, {
1922
2011
  key: 'getDataPortabilityUrl',
1923
2012
  value: function () {
1924
- var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee32(url, overrides) {
2013
+ var _ref37 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee34(url, overrides) {
1925
2014
  var installationId;
1926
- return _regenerator2.default.wrap(function _callee32$(_context32) {
2015
+ return _regenerator2.default.wrap(function _callee34$(_context34) {
1927
2016
  while (1) {
1928
- switch (_context32.prev = _context32.next) {
2017
+ switch (_context34.prev = _context34.next) {
1929
2018
  case 0:
1930
- _context32.next = 2;
2019
+ _context34.next = 2;
1931
2020
  return this.refreshTokenIfNeeded();
1932
2021
 
1933
2022
  case 2:
1934
2023
  installationId = this.comoData.installationId;
1935
- return _context32.abrupt('return', urlsUtils.appendQuery('' + url, (0, _extends3.default)({
2024
+ return _context34.abrupt('return', urlsUtils.appendQuery('' + url, (0, _extends3.default)({
1936
2025
  installationId: installationId
1937
2026
  }, overrides)));
1938
2027
 
1939
2028
  case 4:
1940
2029
  case 'end':
1941
- return _context32.stop();
2030
+ return _context34.stop();
1942
2031
  }
1943
2032
  }
1944
- }, _callee32, this);
2033
+ }, _callee34, this);
1945
2034
  }));
1946
2035
 
1947
- function getDataPortabilityUrl(_x54, _x55) {
1948
- return _ref33.apply(this, arguments);
2036
+ function getDataPortabilityUrl(_x56, _x57) {
2037
+ return _ref37.apply(this, arguments);
1949
2038
  }
1950
2039
 
1951
2040
  return getDataPortabilityUrl;
@@ -1958,29 +2047,29 @@ var Como = function () {
1958
2047
  }, {
1959
2048
  key: 'getAppModulesLegacyBaseUrl',
1960
2049
  value: function () {
1961
- var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee33() {
2050
+ var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee35() {
1962
2051
  var env;
1963
- return _regenerator2.default.wrap(function _callee33$(_context33) {
2052
+ return _regenerator2.default.wrap(function _callee35$(_context35) {
1964
2053
  while (1) {
1965
- switch (_context33.prev = _context33.next) {
2054
+ switch (_context35.prev = _context35.next) {
1966
2055
  case 0:
1967
- _context33.next = 2;
2056
+ _context35.next = 2;
1968
2057
  return this.refreshTokenIfNeeded();
1969
2058
 
1970
2059
  case 2:
1971
2060
  env = this.comoData.env_params;
1972
- return _context33.abrupt('return', '' + env.app_modules_legacy_root);
2061
+ return _context35.abrupt('return', '' + env.app_modules_legacy_root);
1973
2062
 
1974
2063
  case 4:
1975
2064
  case 'end':
1976
- return _context33.stop();
2065
+ return _context35.stop();
1977
2066
  }
1978
2067
  }
1979
- }, _callee33, this);
2068
+ }, _callee35, this);
1980
2069
  }));
1981
2070
 
1982
2071
  function getAppModulesLegacyBaseUrl() {
1983
- return _ref34.apply(this, arguments);
2072
+ return _ref38.apply(this, arguments);
1984
2073
  }
1985
2074
 
1986
2075
  return getAppModulesLegacyBaseUrl;
@@ -2082,26 +2171,26 @@ var Como = function () {
2082
2171
  }, {
2083
2172
  key: 'getRegionConfig',
2084
2173
  value: function () {
2085
- var _ref35 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee34() {
2174
+ var _ref39 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee36() {
2086
2175
  var _comoData30, api, locationId, env;
2087
2176
 
2088
- return _regenerator2.default.wrap(function _callee34$(_context34) {
2177
+ return _regenerator2.default.wrap(function _callee36$(_context36) {
2089
2178
  while (1) {
2090
- switch (_context34.prev = _context34.next) {
2179
+ switch (_context36.prev = _context36.next) {
2091
2180
  case 0:
2092
2181
  _comoData30 = this.comoData, api = _comoData30.api, locationId = _comoData30.locationId, env = _comoData30.env_params;
2093
- return _context34.abrupt('return', api.getClientBusinessBackend(env.zapp_root, locationId));
2182
+ return _context36.abrupt('return', api.getClientBusinessBackend(env.zapp_root, locationId));
2094
2183
 
2095
2184
  case 2:
2096
2185
  case 'end':
2097
- return _context34.stop();
2186
+ return _context36.stop();
2098
2187
  }
2099
2188
  }
2100
- }, _callee34, this);
2189
+ }, _callee36, this);
2101
2190
  }));
2102
2191
 
2103
2192
  function getRegionConfig() {
2104
- return _ref35.apply(this, arguments);
2193
+ return _ref39.apply(this, arguments);
2105
2194
  }
2106
2195
 
2107
2196
  return getRegionConfig;
@@ -2124,26 +2213,26 @@ var Como = function () {
2124
2213
  }, {
2125
2214
  key: 'addPaymentMethod',
2126
2215
  value: function () {
2127
- var _ref36 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee35(cardToken) {
2216
+ var _ref40 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee37(cardToken) {
2128
2217
  var _comoData32, api, locationId, token, env;
2129
2218
 
2130
- return _regenerator2.default.wrap(function _callee35$(_context35) {
2219
+ return _regenerator2.default.wrap(function _callee37$(_context37) {
2131
2220
  while (1) {
2132
- switch (_context35.prev = _context35.next) {
2221
+ switch (_context37.prev = _context37.next) {
2133
2222
  case 0:
2134
2223
  _comoData32 = this.comoData, api = _comoData32.api, locationId = _comoData32.locationId, token = _comoData32.token, env = _comoData32.env_params;
2135
- return _context35.abrupt('return', api.addPaymentMethod(env.services_root, locationId, token, cardToken));
2224
+ return _context37.abrupt('return', api.addPaymentMethod(env.services_root, locationId, token, cardToken));
2136
2225
 
2137
2226
  case 2:
2138
2227
  case 'end':
2139
- return _context35.stop();
2228
+ return _context37.stop();
2140
2229
  }
2141
2230
  }
2142
- }, _callee35, this);
2231
+ }, _callee37, this);
2143
2232
  }));
2144
2233
 
2145
- function addPaymentMethod(_x57) {
2146
- return _ref36.apply(this, arguments);
2234
+ function addPaymentMethod(_x59) {
2235
+ return _ref40.apply(this, arguments);
2147
2236
  }
2148
2237
 
2149
2238
  return addPaymentMethod;
@@ -2151,26 +2240,26 @@ var Como = function () {
2151
2240
  }, {
2152
2241
  key: 'knowYourData',
2153
2242
  value: function () {
2154
- var _ref37 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee36(email) {
2243
+ var _ref41 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee38(email) {
2155
2244
  var _comoData33, api, locationId, env;
2156
2245
 
2157
- return _regenerator2.default.wrap(function _callee36$(_context36) {
2246
+ return _regenerator2.default.wrap(function _callee38$(_context38) {
2158
2247
  while (1) {
2159
- switch (_context36.prev = _context36.next) {
2248
+ switch (_context38.prev = _context38.next) {
2160
2249
  case 0:
2161
2250
  _comoData33 = this.comoData, api = _comoData33.api, locationId = _comoData33.locationId, env = _comoData33.env_params;
2162
- return _context36.abrupt('return', api.knowYourData(env.services_root, locationId, email));
2251
+ return _context38.abrupt('return', api.knowYourData(env.services_root, locationId, email));
2163
2252
 
2164
2253
  case 2:
2165
2254
  case 'end':
2166
- return _context36.stop();
2255
+ return _context38.stop();
2167
2256
  }
2168
2257
  }
2169
- }, _callee36, this);
2258
+ }, _callee38, this);
2170
2259
  }));
2171
2260
 
2172
- function knowYourData(_x58) {
2173
- return _ref37.apply(this, arguments);
2261
+ function knowYourData(_x60) {
2262
+ return _ref41.apply(this, arguments);
2174
2263
  }
2175
2264
 
2176
2265
  return knowYourData;
@@ -2178,26 +2267,26 @@ var Como = function () {
2178
2267
  }, {
2179
2268
  key: 'consentWithdraw',
2180
2269
  value: function () {
2181
- var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee37(consentData) {
2270
+ var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee39(consentData) {
2182
2271
  var _comoData34, api, locationId, env;
2183
2272
 
2184
- return _regenerator2.default.wrap(function _callee37$(_context37) {
2273
+ return _regenerator2.default.wrap(function _callee39$(_context39) {
2185
2274
  while (1) {
2186
- switch (_context37.prev = _context37.next) {
2275
+ switch (_context39.prev = _context39.next) {
2187
2276
  case 0:
2188
2277
  _comoData34 = this.comoData, api = _comoData34.api, locationId = _comoData34.locationId, env = _comoData34.env_params;
2189
- return _context37.abrupt('return', api.consentWithdraw(env.services_root, locationId, consentData));
2278
+ return _context39.abrupt('return', api.consentWithdraw(env.services_root, locationId, consentData));
2190
2279
 
2191
2280
  case 2:
2192
2281
  case 'end':
2193
- return _context37.stop();
2282
+ return _context39.stop();
2194
2283
  }
2195
2284
  }
2196
- }, _callee37, this);
2285
+ }, _callee39, this);
2197
2286
  }));
2198
2287
 
2199
- function consentWithdraw(_x59) {
2200
- return _ref38.apply(this, arguments);
2288
+ function consentWithdraw(_x61) {
2289
+ return _ref42.apply(this, arguments);
2201
2290
  }
2202
2291
 
2203
2292
  return consentWithdraw;
@@ -2205,31 +2294,31 @@ var Como = function () {
2205
2294
  }, {
2206
2295
  key: 'getPaymentMethods',
2207
2296
  value: function () {
2208
- var _ref39 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee38() {
2297
+ var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee40() {
2209
2298
  var _comoData35, env, locationId, api, responseJson;
2210
2299
 
2211
- return _regenerator2.default.wrap(function _callee38$(_context38) {
2300
+ return _regenerator2.default.wrap(function _callee40$(_context40) {
2212
2301
  while (1) {
2213
- switch (_context38.prev = _context38.next) {
2302
+ switch (_context40.prev = _context40.next) {
2214
2303
  case 0:
2215
2304
  _comoData35 = this.comoData, env = _comoData35.env_params, locationId = _comoData35.locationId, api = _comoData35.api;
2216
- _context38.next = 3;
2305
+ _context40.next = 3;
2217
2306
  return api.getPaymentMethods(env.services_root, locationId);
2218
2307
 
2219
2308
  case 3:
2220
- responseJson = _context38.sent;
2221
- return _context38.abrupt('return', responseJson);
2309
+ responseJson = _context40.sent;
2310
+ return _context40.abrupt('return', responseJson);
2222
2311
 
2223
2312
  case 5:
2224
2313
  case 'end':
2225
- return _context38.stop();
2314
+ return _context40.stop();
2226
2315
  }
2227
2316
  }
2228
- }, _callee38, this);
2317
+ }, _callee40, this);
2229
2318
  }));
2230
2319
 
2231
2320
  function getPaymentMethods() {
2232
- return _ref39.apply(this, arguments);
2321
+ return _ref43.apply(this, arguments);
2233
2322
  }
2234
2323
 
2235
2324
  return getPaymentMethods;
@@ -2246,31 +2335,31 @@ var Como = function () {
2246
2335
  }, {
2247
2336
  key: 'payInApp',
2248
2337
  value: function () {
2249
- var _ref40 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee39(amount, creditCardToken, itemName, itemNumber, membershipKey) {
2338
+ var _ref44 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee41(amount, creditCardToken, itemName, itemNumber, membershipKey) {
2250
2339
  var _comoData36, env, token, locationId, api, responseJson;
2251
2340
 
2252
- return _regenerator2.default.wrap(function _callee39$(_context39) {
2341
+ return _regenerator2.default.wrap(function _callee41$(_context41) {
2253
2342
  while (1) {
2254
- switch (_context39.prev = _context39.next) {
2343
+ switch (_context41.prev = _context41.next) {
2255
2344
  case 0:
2256
2345
  _comoData36 = this.comoData, env = _comoData36.env_params, token = _comoData36.token, locationId = _comoData36.locationId, api = _comoData36.api;
2257
- _context39.next = 3;
2346
+ _context41.next = 3;
2258
2347
  return api.payInApp(env.services_root, locationId, token, amount, creditCardToken, itemName, itemNumber, membershipKey);
2259
2348
 
2260
2349
  case 3:
2261
- responseJson = _context39.sent;
2262
- return _context39.abrupt('return', responseJson);
2350
+ responseJson = _context41.sent;
2351
+ return _context41.abrupt('return', responseJson);
2263
2352
 
2264
2353
  case 5:
2265
2354
  case 'end':
2266
- return _context39.stop();
2355
+ return _context41.stop();
2267
2356
  }
2268
2357
  }
2269
- }, _callee39, this);
2358
+ }, _callee41, this);
2270
2359
  }));
2271
2360
 
2272
- function payInApp(_x60, _x61, _x62, _x63, _x64) {
2273
- return _ref40.apply(this, arguments);
2361
+ function payInApp(_x62, _x63, _x64, _x65, _x66) {
2362
+ return _ref44.apply(this, arguments);
2274
2363
  }
2275
2364
 
2276
2365
  return payInApp;
@@ -2283,31 +2372,31 @@ var Como = function () {
2283
2372
  }, {
2284
2373
  key: 'deletePayment',
2285
2374
  value: function () {
2286
- var _ref41 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee40(creditCardToken) {
2375
+ var _ref45 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee42(creditCardToken) {
2287
2376
  var _comoData37, env, token, locationId, api, responseJson;
2288
2377
 
2289
- return _regenerator2.default.wrap(function _callee40$(_context40) {
2378
+ return _regenerator2.default.wrap(function _callee42$(_context42) {
2290
2379
  while (1) {
2291
- switch (_context40.prev = _context40.next) {
2380
+ switch (_context42.prev = _context42.next) {
2292
2381
  case 0:
2293
2382
  _comoData37 = this.comoData, env = _comoData37.env_params, token = _comoData37.token, locationId = _comoData37.locationId, api = _comoData37.api;
2294
- _context40.next = 3;
2383
+ _context42.next = 3;
2295
2384
  return api.deletePayment(env.services_root, locationId, token, creditCardToken);
2296
2385
 
2297
2386
  case 3:
2298
- responseJson = _context40.sent;
2299
- return _context40.abrupt('return', responseJson);
2387
+ responseJson = _context42.sent;
2388
+ return _context42.abrupt('return', responseJson);
2300
2389
 
2301
2390
  case 5:
2302
2391
  case 'end':
2303
- return _context40.stop();
2392
+ return _context42.stop();
2304
2393
  }
2305
2394
  }
2306
- }, _callee40, this);
2395
+ }, _callee42, this);
2307
2396
  }));
2308
2397
 
2309
- function deletePayment(_x65) {
2310
- return _ref41.apply(this, arguments);
2398
+ function deletePayment(_x67) {
2399
+ return _ref45.apply(this, arguments);
2311
2400
  }
2312
2401
 
2313
2402
  return deletePayment;
@@ -2319,32 +2408,32 @@ var Como = function () {
2319
2408
  }, {
2320
2409
  key: 'getMemberMessages',
2321
2410
  value: function () {
2322
- var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee41(tag, limit, offset) {
2411
+ var _ref46 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee43(tag, limit, offset) {
2323
2412
  var fetchExpiredMessages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2324
2413
 
2325
2414
  var _comoData38, api, locationId, env;
2326
2415
 
2327
- return _regenerator2.default.wrap(function _callee41$(_context41) {
2416
+ return _regenerator2.default.wrap(function _callee43$(_context43) {
2328
2417
  while (1) {
2329
- switch (_context41.prev = _context41.next) {
2418
+ switch (_context43.prev = _context43.next) {
2330
2419
  case 0:
2331
2420
  _comoData38 = this.comoData, api = _comoData38.api, locationId = _comoData38.locationId, env = _comoData38.env_params;
2332
- _context41.next = 3;
2421
+ _context43.next = 3;
2333
2422
  return this.refreshTokenIfNeeded();
2334
2423
 
2335
2424
  case 3:
2336
- return _context41.abrupt('return', api.getMemberMessages(env.services_root, locationId, tag, limit, offset, fetchExpiredMessages));
2425
+ return _context43.abrupt('return', api.getMemberMessages(env.services_root, locationId, tag, limit, offset, fetchExpiredMessages));
2337
2426
 
2338
2427
  case 4:
2339
2428
  case 'end':
2340
- return _context41.stop();
2429
+ return _context43.stop();
2341
2430
  }
2342
2431
  }
2343
- }, _callee41, this);
2432
+ }, _callee43, this);
2344
2433
  }));
2345
2434
 
2346
- function getMemberMessages(_x66, _x67, _x68) {
2347
- return _ref42.apply(this, arguments);
2435
+ function getMemberMessages(_x68, _x69, _x70) {
2436
+ return _ref46.apply(this, arguments);
2348
2437
  }
2349
2438
 
2350
2439
  return getMemberMessages;
@@ -2375,26 +2464,26 @@ var Como = function () {
2375
2464
  }, {
2376
2465
  key: 'budgetTransfer',
2377
2466
  value: function () {
2378
- var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee42(receiver, sender, amount, wallet) {
2467
+ var _ref47 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee44(receiver, sender, amount, wallet) {
2379
2468
  var _comoData40, api, locationId, env;
2380
2469
 
2381
- return _regenerator2.default.wrap(function _callee42$(_context42) {
2470
+ return _regenerator2.default.wrap(function _callee44$(_context44) {
2382
2471
  while (1) {
2383
- switch (_context42.prev = _context42.next) {
2472
+ switch (_context44.prev = _context44.next) {
2384
2473
  case 0:
2385
2474
  _comoData40 = this.comoData, api = _comoData40.api, locationId = _comoData40.locationId, env = _comoData40.env_params;
2386
- return _context42.abrupt('return', api.budgetTransfer(env.services_root, locationId, receiver, sender, amount, wallet));
2475
+ return _context44.abrupt('return', api.budgetTransfer(env.services_root, locationId, receiver, sender, amount, wallet));
2387
2476
 
2388
2477
  case 2:
2389
2478
  case 'end':
2390
- return _context42.stop();
2479
+ return _context44.stop();
2391
2480
  }
2392
2481
  }
2393
- }, _callee42, this);
2482
+ }, _callee44, this);
2394
2483
  }));
2395
2484
 
2396
- function budgetTransfer(_x70, _x71, _x72, _x73) {
2397
- return _ref43.apply(this, arguments);
2485
+ function budgetTransfer(_x72, _x73, _x74, _x75) {
2486
+ return _ref47.apply(this, arguments);
2398
2487
  }
2399
2488
 
2400
2489
  return budgetTransfer;
@@ -2421,26 +2510,26 @@ var Como = function () {
2421
2510
  }, {
2422
2511
  key: 'budgetTransferClaim',
2423
2512
  value: function () {
2424
- var _ref44 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee43(claimCode) {
2513
+ var _ref48 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee45(claimCode) {
2425
2514
  var _comoData42, api, locationId, env;
2426
2515
 
2427
- return _regenerator2.default.wrap(function _callee43$(_context43) {
2516
+ return _regenerator2.default.wrap(function _callee45$(_context45) {
2428
2517
  while (1) {
2429
- switch (_context43.prev = _context43.next) {
2518
+ switch (_context45.prev = _context45.next) {
2430
2519
  case 0:
2431
2520
  _comoData42 = this.comoData, api = _comoData42.api, locationId = _comoData42.locationId, env = _comoData42.env_params;
2432
- return _context43.abrupt('return', api.budgetTransferClaim(env.services_root, locationId, claimCode));
2521
+ return _context45.abrupt('return', api.budgetTransferClaim(env.services_root, locationId, claimCode));
2433
2522
 
2434
2523
  case 2:
2435
2524
  case 'end':
2436
- return _context43.stop();
2525
+ return _context45.stop();
2437
2526
  }
2438
2527
  }
2439
- }, _callee43, this);
2528
+ }, _callee45, this);
2440
2529
  }));
2441
2530
 
2442
- function budgetTransferClaim(_x74) {
2443
- return _ref44.apply(this, arguments);
2531
+ function budgetTransferClaim(_x76) {
2532
+ return _ref48.apply(this, arguments);
2444
2533
  }
2445
2534
 
2446
2535
  return budgetTransferClaim;
@@ -2473,26 +2562,26 @@ var Como = function () {
2473
2562
  }, {
2474
2563
  key: 'logUserAction',
2475
2564
  value: function () {
2476
- var _ref45 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee44(action, logData) {
2565
+ var _ref49 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee46(action, logData) {
2477
2566
  var _comoData44, env, locationId, api;
2478
2567
 
2479
- return _regenerator2.default.wrap(function _callee44$(_context44) {
2568
+ return _regenerator2.default.wrap(function _callee46$(_context46) {
2480
2569
  while (1) {
2481
- switch (_context44.prev = _context44.next) {
2570
+ switch (_context46.prev = _context46.next) {
2482
2571
  case 0:
2483
2572
  _comoData44 = this.comoData, env = _comoData44.env_params, locationId = _comoData44.locationId, api = _comoData44.api;
2484
- return _context44.abrupt('return', api.logUserAction(env.zapp_root, locationId, action, logData));
2573
+ return _context46.abrupt('return', api.logUserAction(env.zapp_root, locationId, action, logData));
2485
2574
 
2486
2575
  case 2:
2487
2576
  case 'end':
2488
- return _context44.stop();
2577
+ return _context46.stop();
2489
2578
  }
2490
2579
  }
2491
- }, _callee44, this);
2580
+ }, _callee46, this);
2492
2581
  }));
2493
2582
 
2494
- function logUserAction(_x75, _x76) {
2495
- return _ref45.apply(this, arguments);
2583
+ function logUserAction(_x77, _x78) {
2584
+ return _ref49.apply(this, arguments);
2496
2585
  }
2497
2586
 
2498
2587
  return logUserAction;
@@ -2507,26 +2596,26 @@ var Como = function () {
2507
2596
  }, {
2508
2597
  key: 'getPurchaseHistory',
2509
2598
  value: function () {
2510
- var _ref46 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee45(limit, offset) {
2599
+ var _ref50 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee47(limit, offset) {
2511
2600
  var _comoData45, locationId, api, membership;
2512
2601
 
2513
- return _regenerator2.default.wrap(function _callee45$(_context45) {
2602
+ return _regenerator2.default.wrap(function _callee47$(_context47) {
2514
2603
  while (1) {
2515
- switch (_context45.prev = _context45.next) {
2604
+ switch (_context47.prev = _context47.next) {
2516
2605
  case 0:
2517
2606
  _comoData45 = this.comoData, locationId = _comoData45.locationId, api = _comoData45.api, membership = _comoData45.membership;
2518
- return _context45.abrupt('return', api.getPurchaseHistory(locationId, membership.Key, limit, offset));
2607
+ return _context47.abrupt('return', api.getPurchaseHistory(locationId, membership.Key, limit, offset));
2519
2608
 
2520
2609
  case 2:
2521
2610
  case 'end':
2522
- return _context45.stop();
2611
+ return _context47.stop();
2523
2612
  }
2524
2613
  }
2525
- }, _callee45, this);
2614
+ }, _callee47, this);
2526
2615
  }));
2527
2616
 
2528
- function getPurchaseHistory(_x77, _x78) {
2529
- return _ref46.apply(this, arguments);
2617
+ function getPurchaseHistory(_x79, _x80) {
2618
+ return _ref50.apply(this, arguments);
2530
2619
  }
2531
2620
 
2532
2621
  return getPurchaseHistory;
@@ -2555,28 +2644,28 @@ var Como = function () {
2555
2644
  }, {
2556
2645
  key: 'generateTemporaryToken',
2557
2646
  value: function () {
2558
- var _ref47 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee46() {
2647
+ var _ref51 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee48() {
2559
2648
  var timeToLive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 60;
2560
2649
 
2561
2650
  var _comoData47, api, locationId, env;
2562
2651
 
2563
- return _regenerator2.default.wrap(function _callee46$(_context46) {
2652
+ return _regenerator2.default.wrap(function _callee48$(_context48) {
2564
2653
  while (1) {
2565
- switch (_context46.prev = _context46.next) {
2654
+ switch (_context48.prev = _context48.next) {
2566
2655
  case 0:
2567
2656
  _comoData47 = this.comoData, api = _comoData47.api, locationId = _comoData47.locationId, env = _comoData47.env_params;
2568
- return _context46.abrupt('return', api.generateTemporaryToken(env.services_root, locationId, timeToLive));
2657
+ return _context48.abrupt('return', api.generateTemporaryToken(env.services_root, locationId, timeToLive));
2569
2658
 
2570
2659
  case 2:
2571
2660
  case 'end':
2572
- return _context46.stop();
2661
+ return _context48.stop();
2573
2662
  }
2574
2663
  }
2575
- }, _callee46, this);
2664
+ }, _callee48, this);
2576
2665
  }));
2577
2666
 
2578
2667
  function generateTemporaryToken() {
2579
- return _ref47.apply(this, arguments);
2668
+ return _ref51.apply(this, arguments);
2580
2669
  }
2581
2670
 
2582
2671
  return generateTemporaryToken;