ouisys-engine 3.0.8 → 3.0.11
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/dist/api/index.d.ts +5 -0
- package/dist/api/index.js +193 -171
- package/dist/common-types/IError.d.ts +1 -2
- package/dist/common-types/RemoteDataState.d.ts +3 -3
- package/dist/common-types/RemoteDataState.js +13 -10
- package/dist/custom-hooks/useStrategyConfig.d.ts +4 -0
- package/dist/custom-hooks/useStrategyConfig.js +24 -0
- package/dist/flows/click2smsFlow.js +4 -0
- package/dist/flows/moFlow.js +4 -0
- package/dist/flows/moRedirFlow.js +4 -0
- package/dist/flows/oneClickFlow.js +6 -0
- package/dist/flows/strategy.js +6 -0
- package/dist/flows/ussdFlow.js +3 -0
- package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +1 -1
- package/dist/reducers/click2smsFlow/index.js +3 -3
- package/dist/reducers/click2smsFlow/utils.js +18 -23
- package/dist/reducers/moFlow/index.js +18 -28
- package/dist/reducers/moFlow/utils.js +3 -12
- package/dist/reducers/moRedirFlow/utils.js +3 -2
- package/dist/reducers/oneClickFlow/utils.js +7 -7
- package/dist/reducers/pinFlow/index.js +10 -9
- package/dist/reducers/pinFlow/utils.js +18 -23
- package/dist/reducers/strategy/StrategyTypes.d.ts +3 -2
- package/dist/reducers/strategy/utils.d.ts +3 -3
- package/dist/reducers/strategy/utils.js +35 -48
- package/dist/reducers/ussdFlow/utils.js +4 -2
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/storeEmail.d.ts +3 -0
- package/dist/utilities/storeEmail.js +78 -0
- package/mockData/config.json +28 -0
- package/package.json +3 -2
package/dist/api/index.js
CHANGED
|
@@ -49,8 +49,23 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
49
49
|
|
|
50
50
|
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); }); }; }
|
|
51
51
|
|
|
52
|
+
/* eslint-disable camelcase */
|
|
53
|
+
|
|
54
|
+
/* eslint-disable no-console */
|
|
52
55
|
var bupperizeCountry = function bupperizeCountry(c) {
|
|
53
|
-
return c
|
|
56
|
+
return c === 'gb' ? 'uk' : c;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var checkIsCleanTraffic = function checkIsCleanTraffic(country) {
|
|
60
|
+
if (country === 'be') {
|
|
61
|
+
if (typeof window !== 'undefined' && window.shouldBlock === true) {
|
|
62
|
+
return '&is-clean-traffic=false';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return '&is-clean-traffic=true';
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return '';
|
|
54
69
|
};
|
|
55
70
|
|
|
56
71
|
function sleep(milliseconds) {
|
|
@@ -64,7 +79,7 @@ function sleep(milliseconds) {
|
|
|
64
79
|
|
|
65
80
|
var MockTallyman = {
|
|
66
81
|
identify: function () {
|
|
67
|
-
var _identify = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
82
|
+
var _identify = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId) {
|
|
68
83
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
69
84
|
while (1) {
|
|
70
85
|
switch (_context.prev = _context.next) {
|
|
@@ -93,7 +108,7 @@ var MockTallyman = {
|
|
|
93
108
|
return identify;
|
|
94
109
|
}(),
|
|
95
110
|
triggerPin: function () {
|
|
96
|
-
var _triggerPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(
|
|
111
|
+
var _triggerPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_host, _country, _slug, _device, _offer, _msisdn, _rockmanId, _extraParamsQs, _search, _uniqid, _evinaTid) {
|
|
97
112
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
98
113
|
while (1) {
|
|
99
114
|
switch (_context2.prev = _context2.next) {
|
|
@@ -123,7 +138,7 @@ var MockTallyman = {
|
|
|
123
138
|
return triggerPin;
|
|
124
139
|
}(),
|
|
125
140
|
verifyPin: function () {
|
|
126
|
-
var _verifyPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(
|
|
141
|
+
var _verifyPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_host, _country, _slug, _device, _offer, _rockmanId, _pin, _extraParamsQs, _uniqid) {
|
|
127
142
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
128
143
|
while (1) {
|
|
129
144
|
switch (_context3.prev = _context3.next) {
|
|
@@ -152,7 +167,7 @@ var MockTallyman = {
|
|
|
152
167
|
return verifyPin;
|
|
153
168
|
}(),
|
|
154
169
|
checkSubscription: function () {
|
|
155
|
-
var _checkSubscription = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(
|
|
170
|
+
var _checkSubscription = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_host, _country, _slug, _device, _offer, _rockmanId, _pin, _extraParamsQs) {
|
|
156
171
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
157
172
|
while (1) {
|
|
158
173
|
switch (_context4.prev = _context4.next) {
|
|
@@ -181,7 +196,7 @@ var MockTallyman = {
|
|
|
181
196
|
return checkSubscription;
|
|
182
197
|
}(),
|
|
183
198
|
checkSubscriptionByRockmanIdOnly: function () {
|
|
184
|
-
var _checkSubscriptionByRockmanIdOnly = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(
|
|
199
|
+
var _checkSubscriptionByRockmanIdOnly = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_host, _rockmanId) {
|
|
185
200
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
186
201
|
while (1) {
|
|
187
202
|
switch (_context5.prev = _context5.next) {
|
|
@@ -210,7 +225,7 @@ var MockTallyman = {
|
|
|
210
225
|
return checkSubscriptionByRockmanIdOnly;
|
|
211
226
|
}(),
|
|
212
227
|
redirect: function () {
|
|
213
|
-
var _redirect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(
|
|
228
|
+
var _redirect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _ip_range_name, _search, _extraParamsQs) {
|
|
214
229
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
215
230
|
while (1) {
|
|
216
231
|
switch (_context6.prev = _context6.next) {
|
|
@@ -238,7 +253,7 @@ var MockTallyman = {
|
|
|
238
253
|
return redirect;
|
|
239
254
|
}(),
|
|
240
255
|
triggerMessage: function () {
|
|
241
|
-
var _triggerMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(
|
|
256
|
+
var _triggerMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _search, _extraParamsQs) {
|
|
242
257
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
243
258
|
while (1) {
|
|
244
259
|
switch (_context7.prev = _context7.next) {
|
|
@@ -249,7 +264,7 @@ var MockTallyman = {
|
|
|
249
264
|
success: true,
|
|
250
265
|
rockman_id: '0000',
|
|
251
266
|
keyword: 'TEST OK',
|
|
252
|
-
shortcode: '
|
|
267
|
+
shortcode: '777'
|
|
253
268
|
});
|
|
254
269
|
|
|
255
270
|
case 3:
|
|
@@ -267,7 +282,7 @@ var MockTallyman = {
|
|
|
267
282
|
return triggerMessage;
|
|
268
283
|
}(),
|
|
269
284
|
ussd: function () {
|
|
270
|
-
var _ussd = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(
|
|
285
|
+
var _ussd = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _search, _extraParamsQs) {
|
|
271
286
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
272
287
|
while (1) {
|
|
273
288
|
switch (_context8.prev = _context8.next) {
|
|
@@ -278,7 +293,7 @@ var MockTallyman = {
|
|
|
278
293
|
success: true,
|
|
279
294
|
rockman_id: '0000',
|
|
280
295
|
keyword: 'TEST OK',
|
|
281
|
-
shortcode: '
|
|
296
|
+
shortcode: '777'
|
|
282
297
|
});
|
|
283
298
|
|
|
284
299
|
case 3:
|
|
@@ -296,7 +311,7 @@ var MockTallyman = {
|
|
|
296
311
|
return ussd;
|
|
297
312
|
}(),
|
|
298
313
|
oc2sms: function () {
|
|
299
|
-
var _oc2sms = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(
|
|
314
|
+
var _oc2sms = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_host, _country, _slug, _offer, _rockmanId, _keyword, _operator, _search) {
|
|
300
315
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
301
316
|
while (1) {
|
|
302
317
|
switch (_context9.prev = _context9.next) {
|
|
@@ -308,7 +323,7 @@ var MockTallyman = {
|
|
|
308
323
|
uid: '1',
|
|
309
324
|
keyword: 'TEST OK',
|
|
310
325
|
displayKeyword: 'TEST OK',
|
|
311
|
-
shortcode: '
|
|
326
|
+
shortcode: '777'
|
|
312
327
|
});
|
|
313
328
|
|
|
314
329
|
case 3:
|
|
@@ -326,7 +341,7 @@ var MockTallyman = {
|
|
|
326
341
|
return oc2sms;
|
|
327
342
|
}(),
|
|
328
343
|
mcpShield: function () {
|
|
329
|
-
var _mcpShield = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(
|
|
344
|
+
var _mcpShield = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_host, _country, _slug, _device, _offer, _rockmanId, _operator) {
|
|
330
345
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
331
346
|
while (1) {
|
|
332
347
|
switch (_context10.prev = _context10.next) {
|
|
@@ -355,7 +370,7 @@ var MockTallyman = {
|
|
|
355
370
|
return mcpShield;
|
|
356
371
|
}(),
|
|
357
372
|
getGoogleCaptcha: function () {
|
|
358
|
-
var _getGoogleCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(
|
|
373
|
+
var _getGoogleCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(_host, _country, _slug, _device, _domain) {
|
|
359
374
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
360
375
|
while (1) {
|
|
361
376
|
switch (_context11.prev = _context11.next) {
|
|
@@ -380,367 +395,374 @@ var MockTallyman = {
|
|
|
380
395
|
}
|
|
381
396
|
|
|
382
397
|
return getGoogleCaptcha;
|
|
398
|
+
}(),
|
|
399
|
+
storeEmail: function () {
|
|
400
|
+
var _storeEmail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(_host, _slug, _service, _rockmanId, _email) {
|
|
401
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
402
|
+
while (1) {
|
|
403
|
+
switch (_context12.prev = _context12.next) {
|
|
404
|
+
case 0:
|
|
405
|
+
return _context12.abrupt("return", {
|
|
406
|
+
success: true
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
case 1:
|
|
410
|
+
case "end":
|
|
411
|
+
return _context12.stop();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}, _callee12);
|
|
415
|
+
}));
|
|
416
|
+
|
|
417
|
+
function storeEmail(_x86, _x87, _x88, _x89, _x90) {
|
|
418
|
+
return _storeEmail.apply(this, arguments);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
return storeEmail;
|
|
383
422
|
}()
|
|
384
423
|
};
|
|
385
424
|
exports.MockTallyman = MockTallyman;
|
|
386
425
|
var RealTallyman = {
|
|
387
426
|
identify: function () {
|
|
388
|
-
var _identify2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
427
|
+
var _identify2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(host, slug, country, msisdn, device, offer, rockmanId) {
|
|
389
428
|
var isDMB, newHost;
|
|
390
|
-
return _regeneratorRuntime().wrap(function
|
|
429
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
391
430
|
while (1) {
|
|
392
|
-
switch (
|
|
431
|
+
switch (_context13.prev = _context13.next) {
|
|
393
432
|
case 0:
|
|
394
433
|
console.log('RealTallyman');
|
|
395
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
434
|
+
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);
|
|
396
435
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
397
|
-
|
|
398
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=identify&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
436
|
+
return _context13.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=identify&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
399
437
|
return x.json();
|
|
400
|
-
});
|
|
438
|
+
}));
|
|
401
439
|
|
|
402
|
-
case
|
|
403
|
-
return _context12.abrupt("return", _context12.sent);
|
|
404
|
-
|
|
405
|
-
case 6:
|
|
440
|
+
case 4:
|
|
406
441
|
case "end":
|
|
407
|
-
return
|
|
442
|
+
return _context13.stop();
|
|
408
443
|
}
|
|
409
444
|
}
|
|
410
|
-
},
|
|
445
|
+
}, _callee13);
|
|
411
446
|
}));
|
|
412
447
|
|
|
413
|
-
function identify(
|
|
448
|
+
function identify(_x91, _x92, _x93, _x94, _x95, _x96, _x97) {
|
|
414
449
|
return _identify2.apply(this, arguments);
|
|
415
450
|
}
|
|
416
451
|
|
|
417
452
|
return identify;
|
|
418
453
|
}(),
|
|
419
454
|
triggerPin: function () {
|
|
420
|
-
var _triggerPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
455
|
+
var _triggerPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid) {
|
|
421
456
|
var isDMB, newHost, isCleanTraffic;
|
|
422
|
-
return _regeneratorRuntime().wrap(function
|
|
457
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
423
458
|
while (1) {
|
|
424
|
-
switch (
|
|
459
|
+
switch (_context14.prev = _context14.next) {
|
|
425
460
|
case 0:
|
|
426
461
|
console.log('RealTallyman');
|
|
427
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
462
|
+
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);
|
|
428
463
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
429
|
-
isCleanTraffic = country
|
|
430
|
-
|
|
431
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&msisdn=").concat(msisdn, "&rockman_id=").concat(rockmanId).concat(uniqid).concat(isCleanTraffic).concat(extraParamsQs, "&").concat(search)).then(function (x) {
|
|
464
|
+
isCleanTraffic = checkIsCleanTraffic(country);
|
|
465
|
+
return _context14.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&msisdn=").concat(msisdn, "&rockman_id=").concat(rockmanId).concat(uniqid).concat(isCleanTraffic).concat(extraParamsQs, "&").concat(search)).then(function (x) {
|
|
432
466
|
return x.json();
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
case 6:
|
|
436
|
-
return _context13.abrupt("return", _context13.sent);
|
|
467
|
+
}));
|
|
437
468
|
|
|
438
|
-
case
|
|
469
|
+
case 5:
|
|
439
470
|
case "end":
|
|
440
|
-
return
|
|
471
|
+
return _context14.stop();
|
|
441
472
|
}
|
|
442
473
|
}
|
|
443
|
-
},
|
|
474
|
+
}, _callee14);
|
|
444
475
|
}));
|
|
445
476
|
|
|
446
|
-
function triggerPin(
|
|
477
|
+
function triggerPin(_x98, _x99, _x100, _x101, _x102, _x103, _x104, _x105, _x106, _x107) {
|
|
447
478
|
return _triggerPin2.apply(this, arguments);
|
|
448
479
|
}
|
|
449
480
|
|
|
450
481
|
return triggerPin;
|
|
451
482
|
}(),
|
|
452
483
|
verifyPin: function () {
|
|
453
|
-
var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
484
|
+
var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid, evinaTid) {
|
|
454
485
|
var isDMB, newHost, isCleanTraffic;
|
|
455
|
-
return _regeneratorRuntime().wrap(function
|
|
486
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
456
487
|
while (1) {
|
|
457
|
-
switch (
|
|
488
|
+
switch (_context15.prev = _context15.next) {
|
|
458
489
|
case 0:
|
|
459
490
|
console.log('RealTallyman');
|
|
460
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
491
|
+
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);
|
|
461
492
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
462
|
-
isCleanTraffic = country
|
|
463
|
-
|
|
464
|
-
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(isCleanTraffic).concat(extraParamsQs)).then(function (x) {
|
|
493
|
+
isCleanTraffic = checkIsCleanTraffic(country);
|
|
494
|
+
return _context15.abrupt("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(isCleanTraffic).concat(extraParamsQs)).then(function (x) {
|
|
465
495
|
return x.json();
|
|
466
|
-
});
|
|
496
|
+
}));
|
|
467
497
|
|
|
468
|
-
case
|
|
469
|
-
return _context14.abrupt("return", _context14.sent);
|
|
470
|
-
|
|
471
|
-
case 7:
|
|
498
|
+
case 5:
|
|
472
499
|
case "end":
|
|
473
|
-
return
|
|
500
|
+
return _context15.stop();
|
|
474
501
|
}
|
|
475
502
|
}
|
|
476
|
-
},
|
|
503
|
+
}, _callee15);
|
|
477
504
|
}));
|
|
478
505
|
|
|
479
|
-
function verifyPin(
|
|
506
|
+
function verifyPin(_x108, _x109, _x110, _x111, _x112, _x113, _x114, _x115, _x116, _x117) {
|
|
480
507
|
return _verifyPin2.apply(this, arguments);
|
|
481
508
|
}
|
|
482
509
|
|
|
483
510
|
return verifyPin;
|
|
484
511
|
}(),
|
|
485
512
|
checkSubscription: function () {
|
|
486
|
-
var _checkSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
513
|
+
var _checkSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(host, country, slug, device, offer, rockmanId, _pin, _extraParamsQs) {
|
|
487
514
|
var isDMB, newHost;
|
|
488
|
-
return _regeneratorRuntime().wrap(function
|
|
515
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
489
516
|
while (1) {
|
|
490
|
-
switch (
|
|
517
|
+
switch (_context16.prev = _context16.next) {
|
|
491
518
|
case 0:
|
|
492
519
|
console.log('RealTallyman');
|
|
493
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
520
|
+
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);
|
|
494
521
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
495
|
-
|
|
496
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
522
|
+
return _context16.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
497
523
|
return x.json();
|
|
498
|
-
});
|
|
499
|
-
|
|
500
|
-
case 5:
|
|
501
|
-
return _context15.abrupt("return", _context15.sent);
|
|
524
|
+
}));
|
|
502
525
|
|
|
503
|
-
case
|
|
526
|
+
case 4:
|
|
504
527
|
case "end":
|
|
505
|
-
return
|
|
528
|
+
return _context16.stop();
|
|
506
529
|
}
|
|
507
530
|
}
|
|
508
|
-
},
|
|
531
|
+
}, _callee16);
|
|
509
532
|
}));
|
|
510
533
|
|
|
511
|
-
function checkSubscription(
|
|
534
|
+
function checkSubscription(_x118, _x119, _x120, _x121, _x122, _x123, _x124, _x125) {
|
|
512
535
|
return _checkSubscription2.apply(this, arguments);
|
|
513
536
|
}
|
|
514
537
|
|
|
515
538
|
return checkSubscription;
|
|
516
539
|
}(),
|
|
517
540
|
checkSubscriptionByRockmanIdOnly: function () {
|
|
518
|
-
var _checkSubscriptionByRockmanIdOnly2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
541
|
+
var _checkSubscriptionByRockmanIdOnly2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(host, rockmanId) {
|
|
519
542
|
var isDMB, newHost;
|
|
520
|
-
return _regeneratorRuntime().wrap(function
|
|
543
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
521
544
|
while (1) {
|
|
522
|
-
switch (
|
|
545
|
+
switch (_context17.prev = _context17.next) {
|
|
523
546
|
case 0:
|
|
524
547
|
console.log('RealTallyman');
|
|
525
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
548
|
+
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);
|
|
526
549
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
527
|
-
|
|
528
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
550
|
+
return _context17.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
529
551
|
return x.json();
|
|
530
|
-
});
|
|
531
|
-
|
|
532
|
-
case 5:
|
|
533
|
-
return _context16.abrupt("return", _context16.sent);
|
|
552
|
+
}));
|
|
534
553
|
|
|
535
|
-
case
|
|
554
|
+
case 4:
|
|
536
555
|
case "end":
|
|
537
|
-
return
|
|
556
|
+
return _context17.stop();
|
|
538
557
|
}
|
|
539
558
|
}
|
|
540
|
-
},
|
|
559
|
+
}, _callee17);
|
|
541
560
|
}));
|
|
542
561
|
|
|
543
|
-
function checkSubscriptionByRockmanIdOnly(
|
|
562
|
+
function checkSubscriptionByRockmanIdOnly(_x126, _x127) {
|
|
544
563
|
return _checkSubscriptionByRockmanIdOnly2.apply(this, arguments);
|
|
545
564
|
}
|
|
546
565
|
|
|
547
566
|
return checkSubscriptionByRockmanIdOnly;
|
|
548
567
|
}(),
|
|
549
568
|
redirect: function () {
|
|
550
|
-
var _redirect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
569
|
+
var _redirect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(host, slug, country, msisdn, device, offer, rockmanId, ip_range_name, search, extraParamsQs) {
|
|
551
570
|
var isDMB, newHost, evinaTi;
|
|
552
|
-
return _regeneratorRuntime().wrap(function
|
|
571
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
553
572
|
while (1) {
|
|
554
|
-
switch (
|
|
573
|
+
switch (_context18.prev = _context18.next) {
|
|
555
574
|
case 0:
|
|
556
575
|
console.log('RealTallyman');
|
|
557
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
576
|
+
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);
|
|
558
577
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
559
578
|
evinaTi = country.toLowerCase() === 'a2' ? "&evinaTi=".concat(rockmanId) : '';
|
|
560
|
-
|
|
561
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=redirect&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&network_type=").concat(!ip_range_name ? 'wifi' : '', "&").concat(search).concat(evinaTi).concat(extraParamsQs)).then(function (x) {
|
|
579
|
+
return _context18.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=redirect&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&network_type=").concat(!ip_range_name ? 'wifi' : '', "&").concat(search).concat(evinaTi).concat(extraParamsQs)).then(function (x) {
|
|
562
580
|
return x.json();
|
|
563
|
-
});
|
|
564
|
-
|
|
565
|
-
case 6:
|
|
566
|
-
return _context17.abrupt("return", _context17.sent);
|
|
581
|
+
}));
|
|
567
582
|
|
|
568
|
-
case
|
|
583
|
+
case 5:
|
|
569
584
|
case "end":
|
|
570
|
-
return
|
|
585
|
+
return _context18.stop();
|
|
571
586
|
}
|
|
572
587
|
}
|
|
573
|
-
},
|
|
588
|
+
}, _callee18);
|
|
574
589
|
}));
|
|
575
590
|
|
|
576
|
-
function redirect(
|
|
591
|
+
function redirect(_x128, _x129, _x130, _x131, _x132, _x133, _x134, _x135, _x136, _x137) {
|
|
577
592
|
return _redirect2.apply(this, arguments);
|
|
578
593
|
}
|
|
579
594
|
|
|
580
595
|
return redirect;
|
|
581
596
|
}(),
|
|
582
597
|
triggerMessage: function () {
|
|
583
|
-
var _triggerMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
598
|
+
var _triggerMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
584
599
|
var isDMB, newHost, samGtoken;
|
|
585
|
-
return _regeneratorRuntime().wrap(function
|
|
600
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
586
601
|
while (1) {
|
|
587
|
-
switch (
|
|
602
|
+
switch (_context19.prev = _context19.next) {
|
|
588
603
|
case 0:
|
|
589
604
|
console.log('RealTallyman');
|
|
590
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
605
|
+
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);
|
|
591
606
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
592
607
|
samGtoken = window.reCaptchaToken ? "sam-g-token=".concat(window.reCaptchaToken) : '';
|
|
593
|
-
|
|
594
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-message&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(samGtoken).concat(search).concat(extraParamsQs)).then(function (x) {
|
|
608
|
+
return _context19.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-message&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(samGtoken).concat(search).concat(extraParamsQs)).then(function (x) {
|
|
595
609
|
return x.json();
|
|
596
|
-
});
|
|
597
|
-
|
|
598
|
-
case 6:
|
|
599
|
-
return _context18.abrupt("return", _context18.sent);
|
|
610
|
+
}));
|
|
600
611
|
|
|
601
|
-
case
|
|
612
|
+
case 5:
|
|
602
613
|
case "end":
|
|
603
|
-
return
|
|
614
|
+
return _context19.stop();
|
|
604
615
|
}
|
|
605
616
|
}
|
|
606
|
-
},
|
|
617
|
+
}, _callee19);
|
|
607
618
|
}));
|
|
608
619
|
|
|
609
|
-
function triggerMessage(
|
|
620
|
+
function triggerMessage(_x138, _x139, _x140, _x141, _x142, _x143, _x144, _x145, _x146) {
|
|
610
621
|
return _triggerMessage2.apply(this, arguments);
|
|
611
622
|
}
|
|
612
623
|
|
|
613
624
|
return triggerMessage;
|
|
614
625
|
}(),
|
|
615
626
|
ussd: function () {
|
|
616
|
-
var _ussd2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
627
|
+
var _ussd2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
617
628
|
var isDMB, newHost;
|
|
618
|
-
return _regeneratorRuntime().wrap(function
|
|
629
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
619
630
|
while (1) {
|
|
620
|
-
switch (
|
|
631
|
+
switch (_context20.prev = _context20.next) {
|
|
621
632
|
case 0:
|
|
622
633
|
console.log('RealTallyman');
|
|
623
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
634
|
+
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);
|
|
624
635
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
625
|
-
|
|
626
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=ussd&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(search).concat(extraParamsQs)).then(function (x) {
|
|
636
|
+
return _context20.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=ussd&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(search).concat(extraParamsQs)).then(function (x) {
|
|
627
637
|
return x.json();
|
|
628
|
-
});
|
|
638
|
+
}));
|
|
629
639
|
|
|
630
|
-
case
|
|
631
|
-
return _context19.abrupt("return", _context19.sent);
|
|
632
|
-
|
|
633
|
-
case 6:
|
|
640
|
+
case 4:
|
|
634
641
|
case "end":
|
|
635
|
-
return
|
|
642
|
+
return _context20.stop();
|
|
636
643
|
}
|
|
637
644
|
}
|
|
638
|
-
},
|
|
645
|
+
}, _callee20);
|
|
639
646
|
}));
|
|
640
647
|
|
|
641
|
-
function ussd(
|
|
648
|
+
function ussd(_x147, _x148, _x149, _x150, _x151, _x152, _x153, _x154, _x155) {
|
|
642
649
|
return _ussd2.apply(this, arguments);
|
|
643
650
|
}
|
|
644
651
|
|
|
645
652
|
return ussd;
|
|
646
653
|
}(),
|
|
647
654
|
oc2sms: function () {
|
|
648
|
-
var _oc2sms2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
655
|
+
var _oc2sms2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(host, country, slug, offer, rockmanId, keyword, operator, search) {
|
|
649
656
|
var isDMB, newHost;
|
|
650
|
-
return _regeneratorRuntime().wrap(function
|
|
657
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
651
658
|
while (1) {
|
|
652
|
-
switch (
|
|
659
|
+
switch (_context21.prev = _context21.next) {
|
|
653
660
|
case 0:
|
|
654
661
|
console.log('RealTallyman');
|
|
655
|
-
isDMB = !!(window.pac_analytics.visitor.xaid
|
|
662
|
+
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);
|
|
656
663
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
657
|
-
|
|
658
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=oc2sms&country=").concat(country, "&slug=").concat(slug, "&offerId=").concat(offer).concat(keyword ? "&keyword=".concat(keyword) : '', "&device=smart&rockman_id=").concat(rockmanId).concat(operator ? "&operator=".concat(operator) : '', "&").concat(search)).then(function (x) {
|
|
664
|
+
return _context21.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=oc2sms&country=").concat(country, "&slug=").concat(slug, "&offerId=").concat(offer).concat(keyword ? "&keyword=".concat(keyword) : '', "&device=smart&rockman_id=").concat(rockmanId).concat(operator ? "&operator=".concat(operator) : '', "&").concat(search)).then(function (x) {
|
|
659
665
|
return x.json();
|
|
660
|
-
});
|
|
666
|
+
}));
|
|
661
667
|
|
|
662
|
-
case
|
|
663
|
-
return _context20.abrupt("return", _context20.sent);
|
|
664
|
-
|
|
665
|
-
case 6:
|
|
668
|
+
case 4:
|
|
666
669
|
case "end":
|
|
667
|
-
return
|
|
670
|
+
return _context21.stop();
|
|
668
671
|
}
|
|
669
672
|
}
|
|
670
|
-
},
|
|
673
|
+
}, _callee21);
|
|
671
674
|
}));
|
|
672
675
|
|
|
673
|
-
function oc2sms(
|
|
676
|
+
function oc2sms(_x156, _x157, _x158, _x159, _x160, _x161, _x162, _x163) {
|
|
674
677
|
return _oc2sms2.apply(this, arguments);
|
|
675
678
|
}
|
|
676
679
|
|
|
677
680
|
return oc2sms;
|
|
678
681
|
}(),
|
|
679
682
|
mcpShield: function () {
|
|
680
|
-
var _mcpShield2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
683
|
+
var _mcpShield2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(host, country, slug, device, offer, rockmanId, operator, uniqid) {
|
|
681
684
|
var isDMB, newHost, pageUrl, ipAdd, userIp;
|
|
682
|
-
return _regeneratorRuntime().wrap(function
|
|
685
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
683
686
|
while (1) {
|
|
684
|
-
switch (
|
|
687
|
+
switch (_context22.prev = _context22.next) {
|
|
685
688
|
case 0:
|
|
686
689
|
console.log('RealTallyman');
|
|
687
|
-
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb')
|
|
690
|
+
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);
|
|
688
691
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
689
692
|
pageUrl = window.location.href;
|
|
690
693
|
ipAdd = window.pac_analytics.visitor.ip;
|
|
691
694
|
userIp = ipAdd ? "&client_ip=".concat(ipAdd) : '';
|
|
692
|
-
|
|
693
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=mcp-shield&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&operator=").concat(operator || '', "&rockman_id=").concat(rockmanId, "&client_lpu=").concat(pageUrl).concat(userIp).concat(uniqid || '')).then(function (x) {
|
|
695
|
+
return _context22.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=mcp-shield&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&operator=").concat(operator || '', "&rockman_id=").concat(rockmanId, "&client_lpu=").concat(pageUrl).concat(userIp).concat(uniqid || '')).then(function (x) {
|
|
694
696
|
return x.json();
|
|
695
|
-
});
|
|
697
|
+
}));
|
|
696
698
|
|
|
697
|
-
case
|
|
698
|
-
return _context21.abrupt("return", _context21.sent);
|
|
699
|
-
|
|
700
|
-
case 9:
|
|
699
|
+
case 7:
|
|
701
700
|
case "end":
|
|
702
|
-
return
|
|
701
|
+
return _context22.stop();
|
|
703
702
|
}
|
|
704
703
|
}
|
|
705
|
-
},
|
|
704
|
+
}, _callee22);
|
|
706
705
|
}));
|
|
707
706
|
|
|
708
|
-
function mcpShield(
|
|
707
|
+
function mcpShield(_x164, _x165, _x166, _x167, _x168, _x169, _x170, _x171) {
|
|
709
708
|
return _mcpShield2.apply(this, arguments);
|
|
710
709
|
}
|
|
711
710
|
|
|
712
711
|
return mcpShield;
|
|
713
712
|
}(),
|
|
714
713
|
getGoogleCaptcha: function () {
|
|
715
|
-
var _getGoogleCaptcha2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
714
|
+
var _getGoogleCaptcha2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(host, country, slug, device, domain) {
|
|
716
715
|
var isDMB, newHost;
|
|
717
|
-
return _regeneratorRuntime().wrap(function
|
|
716
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
718
717
|
while (1) {
|
|
719
|
-
switch (
|
|
718
|
+
switch (_context23.prev = _context23.next) {
|
|
720
719
|
case 0:
|
|
721
|
-
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb')
|
|
720
|
+
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);
|
|
722
721
|
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
723
|
-
|
|
724
|
-
return fetch("https://".concat(newHost, "/tallyman/helper/?action=google-captcha-v3-config&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&domain=").concat(domain)).then(function (x) {
|
|
722
|
+
return _context23.abrupt("return", fetch("https://".concat(newHost, "/tallyman/helper/?action=google-captcha-v3-config&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&domain=").concat(domain)).then(function (x) {
|
|
725
723
|
return x.json();
|
|
726
|
-
});
|
|
724
|
+
}));
|
|
727
725
|
|
|
728
|
-
case
|
|
729
|
-
return _context22.abrupt("return", _context22.sent);
|
|
730
|
-
|
|
731
|
-
case 5:
|
|
726
|
+
case 3:
|
|
732
727
|
case "end":
|
|
733
|
-
return
|
|
728
|
+
return _context23.stop();
|
|
734
729
|
}
|
|
735
730
|
}
|
|
736
|
-
},
|
|
731
|
+
}, _callee23);
|
|
737
732
|
}));
|
|
738
733
|
|
|
739
|
-
function getGoogleCaptcha(
|
|
734
|
+
function getGoogleCaptcha(_x172, _x173, _x174, _x175, _x176) {
|
|
740
735
|
return _getGoogleCaptcha2.apply(this, arguments);
|
|
741
736
|
}
|
|
742
737
|
|
|
743
738
|
return getGoogleCaptcha;
|
|
739
|
+
}(),
|
|
740
|
+
storeEmail: function () {
|
|
741
|
+
var _storeEmail2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(host, slug, service, rockmanId, email) {
|
|
742
|
+
var isDMB, newHost;
|
|
743
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
744
|
+
while (1) {
|
|
745
|
+
switch (_context24.prev = _context24.next) {
|
|
746
|
+
case 0:
|
|
747
|
+
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);
|
|
748
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
749
|
+
return _context24.abrupt("return", fetch("https://".concat(newHost, "/tallyman/helper/?action=store-email&slug=").concat(slug, "&rockman_id=").concat(rockmanId, "&email=").concat(email, "&product_identifier=").concat(service)).then(function (x) {
|
|
750
|
+
return x.json();
|
|
751
|
+
}));
|
|
752
|
+
|
|
753
|
+
case 3:
|
|
754
|
+
case "end":
|
|
755
|
+
return _context24.stop();
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}, _callee24);
|
|
759
|
+
}));
|
|
760
|
+
|
|
761
|
+
function storeEmail(_x177, _x178, _x179, _x180, _x181) {
|
|
762
|
+
return _storeEmail2.apply(this, arguments);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
return storeEmail;
|
|
744
766
|
}()
|
|
745
767
|
};
|
|
746
768
|
exports.RealTallyman = RealTallyman;
|