ouisys-engine 2.1.18 → 2.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/api/click2sms.js +357 -0
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +27 -27
  4. package/dist/api/mo.js +274 -0
  5. package/dist/api/moRedir.js +186 -0
  6. package/dist/api/oneClick.js +366 -0
  7. package/dist/api/pin.js +493 -0
  8. package/dist/api/strategies.js +704 -0
  9. package/dist/api/ussd.js +1 -0
  10. package/dist/app/store.js +35 -0
  11. package/dist/features/strategies/categories/askMobileNumber.js +395 -0
  12. package/dist/features/strategies/categories/askOperator.js +311 -0
  13. package/dist/features/strategies/categories/detectOperatorByIp.js +606 -0
  14. package/dist/features/strategies/categories/headerEnrichment.js +670 -0
  15. package/dist/features/strategies/categories/typings/click2smsSliceTypes.js +12 -0
  16. package/dist/features/strategies/categories/typings/identifySliceTypes.js +22 -0
  17. package/dist/features/strategies/categories/typings/moFlowSliceTypes.js +22 -0
  18. package/dist/features/strategies/categories/typings/moRedirFlowSliceTypes.js +21 -0
  19. package/dist/features/strategies/categories/typings/oneClickSliceTypes.js +13 -0
  20. package/dist/features/strategies/categories/typings/pinFlowSliceTypes.js +13 -0
  21. package/dist/features/strategies/click2smsFlowSlice.js +172 -0
  22. package/dist/features/strategies/identifySlice.js +455 -0
  23. package/dist/features/strategies/moFlowSlice.js +196 -0
  24. package/dist/features/strategies/moRedirFlowSlice.js +190 -0
  25. package/dist/features/strategies/oneClickFlowSlice.js +277 -0
  26. package/dist/features/strategies/pinFlowSlice.js +313 -0
  27. package/dist/features/strategies/ussdFlowSlice.js +1 -0
  28. package/dist/ips/tryGetIPRangeName.js +14 -13
  29. package/dist/mockServer/browser.js +48 -0
  30. package/dist/mockServer/handlers.js +22 -0
  31. package/dist/mockServer/server.js +48 -0
  32. package/dist/pacman/index.js +0 -1
  33. package/dist/reducers/click2smsFlow/utils.js +1 -3
  34. package/dist/reducers/oneClickFlow/utils.js +8 -7
  35. package/dist/reducers/pinFlow/utils.js +65 -34
  36. package/dist/reducers/strategy/strategies/header_enrichment.js +31 -25
  37. package/dist/reducers/strategy/utils.js +11 -12
  38. package/dist/reducers/tpayHeFlow/utils.js +1 -1
  39. package/dist/test/test-utils.js +51 -0
  40. package/package.json +1 -1
  41. package/src/@types/window.d.ts +3 -0
  42. package/src/api/index.ts +7 -7
  43. package/src/ips/tryGetIPRangeName.ts +3 -2
  44. package/src/pacman/index.ts +1 -1
  45. package/src/reducers/click2smsFlow/utils.ts +0 -3
  46. package/src/reducers/oneClickFlow/utils.ts +3 -2
  47. package/src/reducers/pinFlow/utils.ts +34 -4
  48. package/src/reducers/strategy/strategies/header_enrichment.ts +14 -11
  49. package/src/reducers/strategy/utils.ts +1 -2
  50. package/src/reducers/tpayHeFlow/utils.ts +1 -1
  51. package/dist/reducers/strategy/__tests__/strategy.spec.d.ts +0 -1
  52. package/dist/reducers/strategy/__tests__/strategy.spec.js +0 -33
  53. package/dist/test/renderWithRouterAndUserMock.d.ts +0 -21
  54. package/dist/test/renderWithRouterAndUserMock.js +0 -40
  55. package/dist/test/setup.d.ts +0 -1
@@ -0,0 +1,357 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol");
4
+
5
+ require("core-js/modules/es.array.concat");
6
+
7
+ require("core-js/modules/es.array.filter");
8
+
9
+ require("core-js/modules/es.array.iterator");
10
+
11
+ require("core-js/modules/es.array.map");
12
+
13
+ require("core-js/modules/es.object.get-own-property-descriptor");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptors");
16
+
17
+ require("core-js/modules/es.object.keys");
18
+
19
+ require("core-js/modules/es.object.to-string");
20
+
21
+ require("core-js/modules/es.promise");
22
+
23
+ require("core-js/modules/es.regexp.exec");
24
+
25
+ require("core-js/modules/es.string.iterator");
26
+
27
+ require("core-js/modules/es.string.search");
28
+
29
+ require("core-js/modules/web.dom-collections.for-each");
30
+
31
+ require("core-js/modules/web.dom-collections.iterator");
32
+
33
+ Object.defineProperty(exports, "__esModule", {
34
+ value: true
35
+ });
36
+ exports.checkSubscription = checkSubscription;
37
+ exports.default = load;
38
+ exports.load1 = load1;
39
+
40
+ require("regenerator-runtime/runtime");
41
+
42
+ var _strategies = require("./strategies");
43
+
44
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
45
+
46
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
47
+
48
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
+
50
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
51
+
52
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
53
+
54
+ function loadOnce(_x, _x2, _x3, _x4, _x5) {
55
+ return _loadOnce.apply(this, arguments);
56
+ }
57
+
58
+ function _loadOnce() {
59
+ _loadOnce = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(window, maybeConfig, operator, keyword, shortcode) {
60
+ var _keyword, _shortcode, offer, config, host, country, slug, rockmanId, search, result;
61
+
62
+ return regeneratorRuntime.wrap(function _callee$(_context) {
63
+ while (1) {
64
+ switch (_context.prev = _context.next) {
65
+ case 0:
66
+ if (!(!!maybeConfig && maybeConfig.tag == 'keywordAndShortCode')) {
67
+ _context.next = 3;
68
+ break;
69
+ }
70
+
71
+ _keyword = maybeConfig.keyword, _shortcode = maybeConfig.shortcode;
72
+ return _context.abrupt("return", _objectSpread({
73
+ type: 'SingleSubmissionResult'
74
+ }, {
75
+ keyword: _keyword,
76
+ shortcode: _shortcode
77
+ }));
78
+
79
+ case 3:
80
+ offer = window.pac_analytics.visitor.offer;
81
+ config = _objectSpread({
82
+ offer: window.pac_analytics.visitor.offer
83
+ }, maybeConfig);
84
+ host = config.host, country = config.country, slug = config.slug;
85
+ rockmanId = window.pac_analytics.visitor.rockmanId;
86
+ search = window.location.search.substr(1) || '';
87
+ _context.next = 10;
88
+ return window.tallymanApi.oc2sms(host, country, slug, offer, rockmanId, keyword, operator, search);
89
+
90
+ case 10:
91
+ result = _context.sent;
92
+
93
+ if (result.success) {
94
+ _context.next = 15;
95
+ break;
96
+ }
97
+
98
+ throw result.message;
99
+
100
+ case 15:
101
+ return _context.abrupt("return", _objectSpread({
102
+ type: 'SingleSubmissionResult'
103
+ }, {
104
+ keyword: "".concat(keyword || result.displayKeyword).concat(result.uid ? " ".concat(result.uid) : ''),
105
+ shortcode: result.shortcode
106
+ }));
107
+
108
+ case 16:
109
+ case "end":
110
+ return _context.stop();
111
+ }
112
+ }
113
+ }, _callee);
114
+ }));
115
+ return _loadOnce.apply(this, arguments);
116
+ }
117
+
118
+ function right(r) {
119
+ return {
120
+ type: 'right',
121
+ value: r
122
+ };
123
+ }
124
+
125
+ function left(l) {
126
+ return {
127
+ type: 'left',
128
+ value: l
129
+ };
130
+ }
131
+
132
+ function foldEither(left, right, either) {
133
+ return either.type == 'left' ? left(either.value) : right(either.value);
134
+ }
135
+
136
+ function loadForMultipleOperators(_x6, _x7, _x8, _x9, _x10) {
137
+ return _loadForMultipleOperators.apply(this, arguments);
138
+ }
139
+
140
+ function _loadForMultipleOperators() {
141
+ _loadForMultipleOperators = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(window, maybeConfig, operators, keyword, shortcode) {
142
+ var results, finalResults, arrResult;
143
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
144
+ while (1) {
145
+ switch (_context3.prev = _context3.next) {
146
+ case 0:
147
+ results = Promise.all(operators.map( /*#__PURE__*/function () {
148
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(o) {
149
+ var singleResult;
150
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
151
+ while (1) {
152
+ switch (_context2.prev = _context2.next) {
153
+ case 0:
154
+ _context2.prev = 0;
155
+ _context2.next = 3;
156
+ return loadOnce(window, maybeConfig, o, keyword, shortcode);
157
+
158
+ case 3:
159
+ singleResult = _context2.sent;
160
+ return _context2.abrupt("return", right(_objectSpread(_objectSpread({}, singleResult), {}, {
161
+ operator: o
162
+ })));
163
+
164
+ case 7:
165
+ _context2.prev = 7;
166
+ _context2.t0 = _context2["catch"](0);
167
+ return _context2.abrupt("return", left(_context2.t0));
168
+
169
+ case 10:
170
+ case "end":
171
+ return _context2.stop();
172
+ }
173
+ }
174
+ }, _callee2, null, [[0, 7]]);
175
+ }));
176
+
177
+ return function (_x21) {
178
+ return _ref.apply(this, arguments);
179
+ };
180
+ }()));
181
+ _context3.next = 3;
182
+ return Promise.resolve(results);
183
+
184
+ case 3:
185
+ finalResults = _context3.sent;
186
+
187
+ if (!finalResults.every(function (r) {
188
+ return r.type == 'left';
189
+ })) {
190
+ _context3.next = 8;
191
+ break;
192
+ }
193
+
194
+ throw finalResults[0].value;
195
+
196
+ case 8:
197
+ arrResult = [];
198
+ finalResults.map(function (obj) {
199
+ if (obj.type == 'right') {
200
+ var _ref2 = obj.value,
201
+ _keyword2 = _ref2.keyword,
202
+ _shortcode2 = _ref2.shortcode,
203
+ operator = _ref2.operator;
204
+ arrResult.push({
205
+ keyword: _keyword2,
206
+ shortcode: _shortcode2,
207
+ operator: operator
208
+ });
209
+ }
210
+ });
211
+ return _context3.abrupt("return", {
212
+ type: 'MultiOperatorSubmissionResult',
213
+ data: arrResult
214
+ });
215
+
216
+ case 11:
217
+ case "end":
218
+ return _context3.stop();
219
+ }
220
+ }
221
+ }, _callee3);
222
+ }));
223
+ return _loadForMultipleOperators.apply(this, arguments);
224
+ }
225
+
226
+ function load(_x11, _x12, _x13, _x14) {
227
+ return _load.apply(this, arguments);
228
+ }
229
+
230
+ function _load() {
231
+ _load = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(window, maybeConfig, keyword, shortcode) {
232
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
233
+ while (1) {
234
+ switch (_context4.prev = _context4.next) {
235
+ case 0:
236
+ if (!(!!maybeConfig && maybeConfig.tag == 'keywordAndShortCode')) {
237
+ _context4.next = 2;
238
+ break;
239
+ }
240
+
241
+ return _context4.abrupt("return", _objectSpread({
242
+ type: 'SingleSubmissionResult'
243
+ }, {
244
+ keyword: maybeConfig.keyword,
245
+ shortcode: maybeConfig.shortcode
246
+ }));
247
+
248
+ case 2:
249
+ if (!(!!maybeConfig && maybeConfig.tag == 'keyword')) {
250
+ _context4.next = 4;
251
+ break;
252
+ }
253
+
254
+ return _context4.abrupt("return", load1(window, maybeConfig, keyword, shortcode));
255
+
256
+ case 4:
257
+ return _context4.abrupt("return", load1(window, maybeConfig, null, null));
258
+
259
+ case 5:
260
+ case "end":
261
+ return _context4.stop();
262
+ }
263
+ }
264
+ }, _callee4);
265
+ }));
266
+ return _load.apply(this, arguments);
267
+ }
268
+
269
+ function load1(_x15, _x16, _x17, _x18) {
270
+ return _load2.apply(this, arguments);
271
+ }
272
+
273
+ function _load2() {
274
+ _load2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(window, maybeConfig, keyword, shortcode) {
275
+ var config, singleOperator;
276
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
277
+ while (1) {
278
+ switch (_context5.prev = _context5.next) {
279
+ case 0:
280
+ config = _objectSpread({
281
+ offer: window.pac_analytics.visitor.offer
282
+ }, maybeConfig);
283
+
284
+ if (!(config.automaticallySubmitAllOperators == true && !!config.operators && config.operators.length > 0)) {
285
+ _context5.next = 3;
286
+ break;
287
+ }
288
+
289
+ return _context5.abrupt("return", loadForMultipleOperators(window, maybeConfig, config.operators, keyword, shortcode));
290
+
291
+ case 3:
292
+ singleOperator = maybeConfig.operators && maybeConfig.operators.length > 0 ? maybeConfig.operators[0] : null;
293
+ return _context5.abrupt("return", loadOnce(window, maybeConfig, singleOperator, keyword, shortcode));
294
+
295
+ case 5:
296
+ case "end":
297
+ return _context5.stop();
298
+ }
299
+ }
300
+ }, _callee5);
301
+ }));
302
+ return _load2.apply(this, arguments);
303
+ }
304
+
305
+ function checkSubscription(_x19, _x20) {
306
+ return _checkSubscription.apply(this, arguments);
307
+ } // {"success":true,"uid":"*5QADM","shortcode":"1901","keyword":"TIPS"}%
308
+ // curl "http://w1.mozzi.com/spa-api/?country=gh&device=smart&slug=18plus-oc2sms&action=oc2sms"
309
+
310
+
311
+ function _checkSubscription() {
312
+ _checkSubscription = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(window, maybeConfig) {
313
+ var config, host, rockmanId, check, checkResult, error;
314
+ return regeneratorRuntime.wrap(function _callee6$(_context6) {
315
+ while (1) {
316
+ switch (_context6.prev = _context6.next) {
317
+ case 0:
318
+ config = _objectSpread({
319
+ offer: window.pac_analytics.visitor.offer
320
+ }, maybeConfig);
321
+ host = config.host;
322
+ rockmanId = window.pac_analytics.visitor.rockmanId;
323
+
324
+ check = function check() {
325
+ return window.tallymanApi.checkSubscriptionByRockmanIdOnly(host, rockmanId);
326
+ };
327
+
328
+ _context6.next = 6;
329
+ return (0, _strategies.loop)(check, 60, function (r) {
330
+ return r.success;
331
+ }, 0);
332
+
333
+ case 6:
334
+ checkResult = _context6.sent;
335
+
336
+ if (!(checkResult.success === true)) {
337
+ _context6.next = 10;
338
+ break;
339
+ }
340
+
341
+ window.location.href = checkResult.product_url;
342
+ return _context6.abrupt("return", checkResult.product_url || null);
343
+
344
+ case 10:
345
+ error = new Error('SubscriptionFailed'.concat(":\n", checkResult.message));
346
+ error.type = 'SubscriptionFailed';
347
+ throw error;
348
+
349
+ case 13:
350
+ case "end":
351
+ return _context6.stop();
352
+ }
353
+ }
354
+ }, _callee6);
355
+ }));
356
+ return _checkSubscription.apply(this, arguments);
357
+ }
@@ -7,7 +7,7 @@ import { ITpayConsentResult } from "../reducers/TpayHeFlow/TpayHeTypes";
7
7
  export interface ITallyman {
8
8
  identify: (host: string, slug: string, country: string, msisdn: string, device: string, offer: number, rockmanId: string) => Promise<IIdentifyResult>;
9
9
  triggerPin: (host: string, country: string, slug: string, device: string, offer: number, msisdn: string, rockmanId: string, extraParamsQs: string, search: string, uniqid?: string) => Promise<IMSISDNSubmissionResult>;
10
- verifyPin: (host: string, country: string, slug: string, device: string, offer: number, rockmanId: string, pin: string, extraParamsQs: string, uniqid: string) => Promise<IPINSubmissionResult>;
10
+ verifyPin: (host: string, country: string, slug: string, device: string, offer: number, rockmanId: string, pin: string, extraParamsQs: string, uniqid: string, evinaTid: string) => Promise<IPINSubmissionResult>;
11
11
  checkSubscriptionByRockmanIdOnly: (host: string, rockmanId: string) => Promise<ICheckSubscriptionResult>;
12
12
  checkSubscription: (host: string, country: string, slug: string, device: string, offer: number, rockmanId: string, pin: string, extraParamsQs: string) => Promise<ICheckSubscriptionResult>;
13
13
  triggerMessage: (host: string, slug: string, country: string, msisdn: string, device: string, offer: number, rockmanId: string, search: string, extraParamsQs: string) => Promise<IMoMSISDNSubmissionResult>;
package/dist/api/index.js CHANGED
@@ -61,7 +61,7 @@ var MockTallyman = {
61
61
  return identify;
62
62
  }(),
63
63
  triggerPin: function () {
64
- var _triggerPin = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid) {
64
+ var _triggerPin = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid, evinaTid) {
65
65
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
66
66
  while (1) {
67
67
  switch (_context2.prev = _context2.next) {
@@ -84,7 +84,7 @@ var MockTallyman = {
84
84
  }, _callee2);
85
85
  }));
86
86
 
87
- function triggerPin(_x8, _x9, _x10, _x11, _x12, _x13, _x14, _x15, _x16, _x17) {
87
+ function triggerPin(_x8, _x9, _x10, _x11, _x12, _x13, _x14, _x15, _x16, _x17, _x18) {
88
88
  return _triggerPin.apply(this, arguments);
89
89
  }
90
90
 
@@ -113,7 +113,7 @@ var MockTallyman = {
113
113
  }, _callee3);
114
114
  }));
115
115
 
116
- function verifyPin(_x18, _x19, _x20, _x21, _x22, _x23, _x24, _x25, _x26) {
116
+ function verifyPin(_x19, _x20, _x21, _x22, _x23, _x24, _x25, _x26, _x27) {
117
117
  return _verifyPin.apply(this, arguments);
118
118
  }
119
119
 
@@ -142,7 +142,7 @@ var MockTallyman = {
142
142
  }, _callee4);
143
143
  }));
144
144
 
145
- function checkSubscription(_x27, _x28, _x29, _x30, _x31, _x32, _x33, _x34) {
145
+ function checkSubscription(_x28, _x29, _x30, _x31, _x32, _x33, _x34, _x35) {
146
146
  return _checkSubscription.apply(this, arguments);
147
147
  }
148
148
 
@@ -171,7 +171,7 @@ var MockTallyman = {
171
171
  }, _callee5);
172
172
  }));
173
173
 
174
- function checkSubscriptionByRockmanIdOnly(_x35, _x36) {
174
+ function checkSubscriptionByRockmanIdOnly(_x36, _x37) {
175
175
  return _checkSubscriptionByRockmanIdOnly.apply(this, arguments);
176
176
  }
177
177
 
@@ -199,7 +199,7 @@ var MockTallyman = {
199
199
  }, _callee6);
200
200
  }));
201
201
 
202
- function redirect(_x37, _x38, _x39, _x40, _x41, _x42, _x43, _x44, _x45, _x46) {
202
+ function redirect(_x38, _x39, _x40, _x41, _x42, _x43, _x44, _x45, _x46, _x47) {
203
203
  return _redirect.apply(this, arguments);
204
204
  }
205
205
 
@@ -228,7 +228,7 @@ var MockTallyman = {
228
228
  }, _callee7);
229
229
  }));
230
230
 
231
- function triggerMessage(_x47, _x48, _x49, _x50, _x51, _x52, _x53, _x54, _x55) {
231
+ function triggerMessage(_x48, _x49, _x50, _x51, _x52, _x53, _x54, _x55, _x56) {
232
232
  return _triggerMessage.apply(this, arguments);
233
233
  }
234
234
 
@@ -257,7 +257,7 @@ var MockTallyman = {
257
257
  }, _callee8);
258
258
  }));
259
259
 
260
- function ussd(_x56, _x57, _x58, _x59, _x60, _x61, _x62, _x63, _x64) {
260
+ function ussd(_x57, _x58, _x59, _x60, _x61, _x62, _x63, _x64, _x65) {
261
261
  return _ussd.apply(this, arguments);
262
262
  }
263
263
 
@@ -287,7 +287,7 @@ var MockTallyman = {
287
287
  }, _callee9);
288
288
  }));
289
289
 
290
- function oc2sms(_x65, _x66, _x67, _x68, _x69, _x70, _x71, _x72) {
290
+ function oc2sms(_x66, _x67, _x68, _x69, _x70, _x71, _x72, _x73) {
291
291
  return _oc2sms.apply(this, arguments);
292
292
  }
293
293
 
@@ -305,9 +305,9 @@ var MockTallyman = {
305
305
  "prodSku": "gamelords",
306
306
  "lang": "ar",
307
307
  "country": "eg",
308
- "subscription_url": "http:\/\/n.vidflixz.com\/tallyman\/v1\/?action=one-click-subscribe&device=smart&slug=tpay-he-vidflixz&country=eg&offerId=1&rockman_id=13643b4780fb40bb8adf2feb2a400d7f&",
308
+ "subscription_url": "http:\/\/de.tallymans.com\/tallyman\/v1\/?action=one-click-subscribe&device=smart&slug=tpay-he-vidflixz&country=eg&offerId=1&rockman_id=13643b4780fb40bb8adf2feb2a400d7f&",
309
309
  "config": {
310
- "product_url": "http:\/\/eg.game-lords.com\/#\/?uid=fdf098fcc6",
310
+ "product_url": "http:\/\/de.tallymans.com\/#\/?uid=fdf098fcc6",
311
311
  "subscription_plan_id": 829,
312
312
  "public": "HFyenUyCJCxl1QTgtVCA",
313
313
  "private": "vazlmVhGFyxKLOav6DvW",
@@ -318,7 +318,7 @@ var MockTallyman = {
318
318
  "60203": "gamelords_etst"
319
319
  }
320
320
  },
321
- "redirectUrl": "http:\/\/n.game-lords.com\/eg\/animal-game?country=eg&handle=animal-game&offer=1&device=smart&_extracted=957ad26679cd47a09d4efe28d4a4af72&operator=#operator#&msisdnSubmitted=Y&network_type=mobile_data&atmobirun=true&force_mcb_page=true&skipTrigger=true",
321
+ "redirectUrl": "http:\/\/de.tallymans.com\/eg\/animal-game?country=eg&handle=animal-game&offer=1&device=smart&_extracted=957ad26679cd47a09d4efe28d4a4af72&operator=#operator#&msisdnSubmitted=Y&network_type=mobile_data&atmobirun=true&force_mcb_page=true&skipTrigger=true",
322
322
  "rid": "957ad26679cd47a09d4efe28d4a4af72",
323
323
  "success": true
324
324
  });
@@ -331,7 +331,7 @@ var MockTallyman = {
331
331
  }, _callee10);
332
332
  }));
333
333
 
334
- function tpayConsentConfig(_x73, _x74, _x75, _x76, _x77, _x78, _x79) {
334
+ function tpayConsentConfig(_x74, _x75, _x76, _x77, _x78, _x79, _x80) {
335
335
  return _tpayConsentConfig.apply(this, arguments);
336
336
  }
337
337
 
@@ -360,7 +360,7 @@ var MockTallyman = {
360
360
  }, _callee11);
361
361
  }));
362
362
 
363
- function mcpShield(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
363
+ function mcpShield(_x81, _x82, _x83, _x84, _x85, _x86, _x87) {
364
364
  return _mcpShield.apply(this, arguments);
365
365
  }
366
366
 
@@ -395,7 +395,7 @@ var RealTallyman = {
395
395
  }, _callee12);
396
396
  }));
397
397
 
398
- function identify(_x87, _x88, _x89, _x90, _x91, _x92, _x93) {
398
+ function identify(_x88, _x89, _x90, _x91, _x92, _x93, _x94) {
399
399
  return _identify2.apply(this, arguments);
400
400
  }
401
401
 
@@ -427,14 +427,14 @@ var RealTallyman = {
427
427
  }, _callee13);
428
428
  }));
429
429
 
430
- function triggerPin(_x94, _x95, _x96, _x97, _x98, _x99, _x100, _x101, _x102, _x103) {
430
+ function triggerPin(_x95, _x96, _x97, _x98, _x99, _x100, _x101, _x102, _x103, _x104) {
431
431
  return _triggerPin2.apply(this, arguments);
432
432
  }
433
433
 
434
434
  return triggerPin;
435
435
  }(),
436
436
  verifyPin: function () {
437
- var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid) {
437
+ var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid, evinaTid) {
438
438
  var isDMB, newHost;
439
439
  return regeneratorRuntime.wrap(function _callee14$(_context14) {
440
440
  while (1) {
@@ -444,7 +444,7 @@ var RealTallyman = {
444
444
  isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb") != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")) != -1 ? true : false;
445
445
  newHost = isDMB ? "de.tallymans.com" : host;
446
446
  _context14.next = 5;
447
- return fetch("https://".concat(newHost, "/tallyman/v1/?action=verify-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&pin=").concat(pin).concat(uniqid).concat(extraParamsQs)).then(function (x) {
447
+ return fetch("https://".concat(newHost, "/tallyman/v1/?action=verify-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&pin=").concat(pin).concat(uniqid, "&sam_evina_tid=").concat(evinaTid).concat(extraParamsQs)).then(function (x) {
448
448
  return x.json();
449
449
  });
450
450
 
@@ -459,7 +459,7 @@ var RealTallyman = {
459
459
  }, _callee14);
460
460
  }));
461
461
 
462
- function verifyPin(_x104, _x105, _x106, _x107, _x108, _x109, _x110, _x111, _x112) {
462
+ function verifyPin(_x105, _x106, _x107, _x108, _x109, _x110, _x111, _x112, _x113, _x114) {
463
463
  return _verifyPin2.apply(this, arguments);
464
464
  }
465
465
 
@@ -491,7 +491,7 @@ var RealTallyman = {
491
491
  }, _callee15);
492
492
  }));
493
493
 
494
- function checkSubscription(_x113, _x114, _x115, _x116, _x117, _x118, _x119, _x120) {
494
+ function checkSubscription(_x115, _x116, _x117, _x118, _x119, _x120, _x121, _x122) {
495
495
  return _checkSubscription2.apply(this, arguments);
496
496
  }
497
497
 
@@ -523,7 +523,7 @@ var RealTallyman = {
523
523
  }, _callee16);
524
524
  }));
525
525
 
526
- function checkSubscriptionByRockmanIdOnly(_x121, _x122) {
526
+ function checkSubscriptionByRockmanIdOnly(_x123, _x124) {
527
527
  return _checkSubscriptionByRockmanIdOnly2.apply(this, arguments);
528
528
  }
529
529
 
@@ -555,7 +555,7 @@ var RealTallyman = {
555
555
  }, _callee17);
556
556
  }));
557
557
 
558
- function redirect(_x123, _x124, _x125, _x126, _x127, _x128, _x129, _x130, _x131, _x132) {
558
+ function redirect(_x125, _x126, _x127, _x128, _x129, _x130, _x131, _x132, _x133, _x134) {
559
559
  return _redirect2.apply(this, arguments);
560
560
  }
561
561
 
@@ -587,7 +587,7 @@ var RealTallyman = {
587
587
  }, _callee18);
588
588
  }));
589
589
 
590
- function triggerMessage(_x133, _x134, _x135, _x136, _x137, _x138, _x139, _x140, _x141) {
590
+ function triggerMessage(_x135, _x136, _x137, _x138, _x139, _x140, _x141, _x142, _x143) {
591
591
  return _triggerMessage2.apply(this, arguments);
592
592
  }
593
593
 
@@ -619,7 +619,7 @@ var RealTallyman = {
619
619
  }, _callee19);
620
620
  }));
621
621
 
622
- function ussd(_x142, _x143, _x144, _x145, _x146, _x147, _x148, _x149, _x150) {
622
+ function ussd(_x144, _x145, _x146, _x147, _x148, _x149, _x150, _x151, _x152) {
623
623
  return _ussd2.apply(this, arguments);
624
624
  }
625
625
 
@@ -651,7 +651,7 @@ var RealTallyman = {
651
651
  }, _callee20);
652
652
  }));
653
653
 
654
- function oc2sms(_x151, _x152, _x153, _x154, _x155, _x156, _x157, _x158) {
654
+ function oc2sms(_x153, _x154, _x155, _x156, _x157, _x158, _x159, _x160) {
655
655
  return _oc2sms2.apply(this, arguments);
656
656
  }
657
657
 
@@ -683,7 +683,7 @@ var RealTallyman = {
683
683
  }, _callee21);
684
684
  }));
685
685
 
686
- function tpayConsentConfig(_x159, _x160, _x161, _x162, _x163, _x164, _x165) {
686
+ function tpayConsentConfig(_x161, _x162, _x163, _x164, _x165, _x166, _x167) {
687
687
  return _tpayConsentConfig2.apply(this, arguments);
688
688
  }
689
689
 
@@ -718,7 +718,7 @@ var RealTallyman = {
718
718
  }, _callee22);
719
719
  }));
720
720
 
721
- function mcpShield(_x166, _x167, _x168, _x169, _x170, _x171, _x172, _x173) {
721
+ function mcpShield(_x168, _x169, _x170, _x171, _x172, _x173, _x174, _x175) {
722
722
  return _mcpShield2.apply(this, arguments);
723
723
  }
724
724