ouisys-engine 3.0.21 → 3.0.23

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 (62) hide show
  1. package/.babelrc +9 -1
  2. package/dist/@types/window.d.js +1 -5
  3. package/dist/api/index.js +1 -760
  4. package/dist/common-types/AppThunk.js +1 -5
  5. package/dist/common-types/Either.js +1 -5
  6. package/dist/common-types/IError.js +1 -5
  7. package/dist/common-types/ITracker.js +1 -5
  8. package/dist/common-types/IVisitor.js +1 -5
  9. package/dist/common-types/RemoteDataState.js +1 -138
  10. package/dist/custom-hooks/useStrategyConfig.js +1 -24
  11. package/dist/flows/click2smsFlow.js +1 -23
  12. package/dist/flows/moFlow.js +1 -23
  13. package/dist/flows/moRedirFlow.js +1 -23
  14. package/dist/flows/oneClickFlow.js +1 -29
  15. package/dist/flows/pinFlow.js +1 -25
  16. package/dist/flows/strategy.js +1 -49
  17. package/dist/flows/ussdFlow.js +1 -22
  18. package/dist/index.js +0 -2
  19. package/dist/ips/tryGetIPRangeName.js +1 -111
  20. package/dist/pacman/index.js +1 -110
  21. package/dist/pacman/queryString.js +1 -50
  22. package/dist/reducers/click2smsFlow/Click2smsTypes.js +1 -5
  23. package/dist/reducers/click2smsFlow/IClick2smsConstants.js +1 -5
  24. package/dist/reducers/click2smsFlow/index.js +1 -199
  25. package/dist/reducers/click2smsFlow/utils.js +1 -372
  26. package/dist/reducers/moFlow/IMoConstants.js +1 -5
  27. package/dist/reducers/moFlow/MoTypes.js +1 -5
  28. package/dist/reducers/moFlow/index.js +1 -257
  29. package/dist/reducers/moFlow/utils.js +1 -340
  30. package/dist/reducers/moRedirFlow/IMoRedirConstants.js +1 -5
  31. package/dist/reducers/moRedirFlow/MoRedirTypes.js +1 -5
  32. package/dist/reducers/moRedirFlow/index.js +1 -243
  33. package/dist/reducers/moRedirFlow/utils.js +1 -240
  34. package/dist/reducers/oneClickFlow/IOneClickConstants.js +1 -5
  35. package/dist/reducers/oneClickFlow/OneClickTypes.js +1 -5
  36. package/dist/reducers/oneClickFlow/index.js +1 -458
  37. package/dist/reducers/oneClickFlow/utils.js +1 -410
  38. package/dist/reducers/pinFlow/IPinConstants.js +1 -5
  39. package/dist/reducers/pinFlow/PinTypes.js +1 -5
  40. package/dist/reducers/pinFlow/index.js +1 -543
  41. package/dist/reducers/pinFlow/utils.js +1 -545
  42. package/dist/reducers/strategy/IStategyActionContants.js +1 -5
  43. package/dist/reducers/strategy/StrategyTypes.d.ts +3 -2
  44. package/dist/reducers/strategy/StrategyTypes.js +1 -5
  45. package/dist/reducers/strategy/index.js +1 -419
  46. package/dist/reducers/strategy/strategies/ask_mobile_number.js +1 -581
  47. package/dist/reducers/strategy/strategies/ask_operator.js +1 -317
  48. package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +1 -692
  49. package/dist/reducers/strategy/strategies/header_enrichment.js +1 -804
  50. package/dist/reducers/strategy/strategies/injectHeaderEnrichmentScript.js +1 -118
  51. package/dist/reducers/strategy/utils.js +1 -710
  52. package/dist/reducers/ussdFlow/IUssdConstants.js +1 -5
  53. package/dist/reducers/ussdFlow/UssdTypes.js +1 -5
  54. package/dist/reducers/ussdFlow/index.js +1 -267
  55. package/dist/reducers/ussdFlow/utils.js +1 -247
  56. package/dist/store/index.js +1 -177
  57. package/dist/store/reducers.js +1 -38
  58. package/dist/utilities/handleSubmitNumber.js +1 -77
  59. package/dist/utilities/index.js +1 -68
  60. package/dist/utilities/loadScriptInnerHtml.js +1 -22
  61. package/dist/utilities/loadScriptSrc.js +1 -32
  62. package/package.json +61 -60
package/dist/api/index.js CHANGED
@@ -1,760 +1 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- require("core-js/modules/es.symbol.js");
6
-
7
- require("core-js/modules/es.symbol.description.js");
8
-
9
- require("core-js/modules/es.symbol.iterator.js");
10
-
11
- require("core-js/modules/es.array.iterator.js");
12
-
13
- require("core-js/modules/es.string.iterator.js");
14
-
15
- require("core-js/modules/web.dom-collections.iterator.js");
16
-
17
- require("core-js/modules/es.symbol.async-iterator.js");
18
-
19
- require("core-js/modules/es.symbol.to-string-tag.js");
20
-
21
- require("core-js/modules/es.json.to-string-tag.js");
22
-
23
- require("core-js/modules/es.math.to-string-tag.js");
24
-
25
- require("core-js/modules/es.object.get-prototype-of.js");
26
-
27
- require("core-js/modules/web.dom-collections.for-each.js");
28
-
29
- require("core-js/modules/es.function.name.js");
30
-
31
- require("core-js/modules/es.object.set-prototype-of.js");
32
-
33
- require("core-js/modules/es.array.slice.js");
34
-
35
- Object.defineProperty(exports, "__esModule", {
36
- value: true
37
- });
38
- exports.RealTallyman = exports.MockTallyman = void 0;
39
-
40
- require("core-js/modules/es.object.to-string.js");
41
-
42
- require("core-js/modules/es.promise.js");
43
-
44
- require("core-js/modules/es.array.concat.js");
45
-
46
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
47
-
48
- 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); } }
49
-
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
-
52
- var bupperizeCountry = function bupperizeCountry(c) {
53
- return c === 'gb' ? 'uk' : c;
54
- }; // eslint-disable-next-line no-console
55
-
56
-
57
- var logMockTallyman = function logMockTallyman(mock) {
58
- return console.log(mock);
59
- };
60
-
61
- var checkIsCleanTraffic = function checkIsCleanTraffic(country) {
62
- if (country === 'be') {
63
- if (typeof window !== 'undefined' && window.shouldBlock === true) {
64
- return '&is-clean-traffic=false';
65
- }
66
-
67
- return '&is-clean-traffic=true';
68
- }
69
-
70
- return '';
71
- };
72
-
73
- function sleep(milliseconds) {
74
- var date = Date.now();
75
- var currentDate = null;
76
-
77
- do {
78
- currentDate = Date.now();
79
- } while (currentDate - date < milliseconds);
80
- }
81
-
82
- var MockTallyman = {
83
- identify: function () {
84
- var _identify = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId) {
85
- return _regeneratorRuntime().wrap(function _callee$(_context) {
86
- while (1) {
87
- switch (_context.prev = _context.next) {
88
- case 0:
89
- logMockTallyman('MockTallyman');
90
- sleep(2000);
91
- return _context.abrupt("return", {
92
- operator: '',
93
- flow: '',
94
- success: true,
95
- rockman_id: ''
96
- });
97
-
98
- case 3:
99
- case "end":
100
- return _context.stop();
101
- }
102
- }
103
- }, _callee);
104
- }));
105
-
106
- function identify(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
107
- return _identify.apply(this, arguments);
108
- }
109
-
110
- return identify;
111
- }(),
112
- triggerPin: function () {
113
- var _triggerPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_host, _country, _slug, _device, _offer, _msisdn, _rockmanId, _extraParamsQs, _search, _uniqid, _evinaTid) {
114
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
115
- while (1) {
116
- switch (_context2.prev = _context2.next) {
117
- case 0:
118
- logMockTallyman('MockTallyman');
119
- sleep(2000);
120
- return _context2.abrupt("return", {
121
- success: true,
122
- operator: '',
123
- rockman_id: '',
124
- pin: '',
125
- product_url: ''
126
- });
127
-
128
- case 3:
129
- case "end":
130
- return _context2.stop();
131
- }
132
- }
133
- }, _callee2);
134
- }));
135
-
136
- function triggerPin(_x8, _x9, _x10, _x11, _x12, _x13, _x14, _x15, _x16, _x17, _x18) {
137
- return _triggerPin.apply(this, arguments);
138
- }
139
-
140
- return triggerPin;
141
- }(),
142
- verifyPin: function () {
143
- var _verifyPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_host, _country, _slug, _device, _offer, _rockmanId, _pin, _extraParamsQs, _uniqid) {
144
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
145
- while (1) {
146
- switch (_context3.prev = _context3.next) {
147
- case 0:
148
- logMockTallyman('MockTallyman');
149
- sleep(2000);
150
- return _context3.abrupt("return", {
151
- success: true,
152
- rockman_id: '000',
153
- product_url: 'https://google.com',
154
- async: false
155
- });
156
-
157
- case 3:
158
- case "end":
159
- return _context3.stop();
160
- }
161
- }
162
- }, _callee3);
163
- }));
164
-
165
- function verifyPin(_x19, _x20, _x21, _x22, _x23, _x24, _x25, _x26, _x27) {
166
- return _verifyPin.apply(this, arguments);
167
- }
168
-
169
- return verifyPin;
170
- }(),
171
- checkSubscription: function () {
172
- var _checkSubscription = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_host, _country, _slug, _device, _offer, _rockmanId, _pin, _extraParamsQs) {
173
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
174
- while (1) {
175
- switch (_context4.prev = _context4.next) {
176
- case 0:
177
- logMockTallyman('MockTallyman');
178
- sleep(2000);
179
- return _context4.abrupt("return", {
180
- success: true,
181
- rockman_id: '000',
182
- product_url: 'https://google.com',
183
- msisdn: '000'
184
- });
185
-
186
- case 3:
187
- case "end":
188
- return _context4.stop();
189
- }
190
- }
191
- }, _callee4);
192
- }));
193
-
194
- function checkSubscription(_x28, _x29, _x30, _x31, _x32, _x33, _x34, _x35) {
195
- return _checkSubscription.apply(this, arguments);
196
- }
197
-
198
- return checkSubscription;
199
- }(),
200
- checkSubscriptionByRockmanIdOnly: function () {
201
- var _checkSubscriptionByRockmanIdOnly = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_host, _rockmanId) {
202
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
203
- while (1) {
204
- switch (_context5.prev = _context5.next) {
205
- case 0:
206
- logMockTallyman('MockTallyman');
207
- sleep(2000);
208
- return _context5.abrupt("return", {
209
- success: true,
210
- rockman_id: '000',
211
- product_url: 'https://google.com',
212
- msisdn: '000'
213
- });
214
-
215
- case 3:
216
- case "end":
217
- return _context5.stop();
218
- }
219
- }
220
- }, _callee5);
221
- }));
222
-
223
- function checkSubscriptionByRockmanIdOnly(_x36, _x37) {
224
- return _checkSubscriptionByRockmanIdOnly.apply(this, arguments);
225
- }
226
-
227
- return checkSubscriptionByRockmanIdOnly;
228
- }(),
229
- redirect: function () {
230
- var _redirect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _ip_range_name, _search, _extraParamsQs) {
231
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
232
- while (1) {
233
- switch (_context6.prev = _context6.next) {
234
- case 0:
235
- logMockTallyman('MockTallyman');
236
- sleep(2000);
237
- return _context6.abrupt("return", {
238
- success: true,
239
- rockman_id: '000',
240
- redirect_url: 'https://google.com'
241
- });
242
-
243
- case 3:
244
- case "end":
245
- return _context6.stop();
246
- }
247
- }
248
- }, _callee6);
249
- }));
250
-
251
- function redirect(_x38, _x39, _x40, _x41, _x42, _x43, _x44, _x45, _x46, _x47) {
252
- return _redirect.apply(this, arguments);
253
- }
254
-
255
- return redirect;
256
- }(),
257
- triggerMessage: function () {
258
- var _triggerMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _search, _extraParamsQs) {
259
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
260
- while (1) {
261
- switch (_context7.prev = _context7.next) {
262
- case 0:
263
- logMockTallyman('MockTallyman');
264
- sleep(2000);
265
- return _context7.abrupt("return", {
266
- success: true,
267
- rockman_id: '0000',
268
- keyword: 'TEST OK',
269
- shortcode: '777'
270
- });
271
-
272
- case 3:
273
- case "end":
274
- return _context7.stop();
275
- }
276
- }
277
- }, _callee7);
278
- }));
279
-
280
- function triggerMessage(_x48, _x49, _x50, _x51, _x52, _x53, _x54, _x55, _x56) {
281
- return _triggerMessage.apply(this, arguments);
282
- }
283
-
284
- return triggerMessage;
285
- }(),
286
- ussd: function () {
287
- var _ussd = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_host, _slug, _country, _msisdn, _device, _offer, _rockmanId, _search, _extraParamsQs) {
288
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
289
- while (1) {
290
- switch (_context8.prev = _context8.next) {
291
- case 0:
292
- logMockTallyman('MockTallyman');
293
- sleep(2000);
294
- return _context8.abrupt("return", {
295
- success: true,
296
- rockman_id: '0000',
297
- keyword: 'TEST OK',
298
- shortcode: '777'
299
- });
300
-
301
- case 3:
302
- case "end":
303
- return _context8.stop();
304
- }
305
- }
306
- }, _callee8);
307
- }));
308
-
309
- function ussd(_x57, _x58, _x59, _x60, _x61, _x62, _x63, _x64, _x65) {
310
- return _ussd.apply(this, arguments);
311
- }
312
-
313
- return ussd;
314
- }(),
315
- oc2sms: function () {
316
- var _oc2sms = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_host, _country, _slug, _offer, _rockmanId, _keyword, _operator, _search) {
317
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
318
- while (1) {
319
- switch (_context9.prev = _context9.next) {
320
- case 0:
321
- logMockTallyman('MockTallyman');
322
- sleep(2000);
323
- return _context9.abrupt("return", {
324
- success: true,
325
- uid: '1',
326
- keyword: 'TEST OK',
327
- displayKeyword: 'TEST OK',
328
- shortcode: '777'
329
- });
330
-
331
- case 3:
332
- case "end":
333
- return _context9.stop();
334
- }
335
- }
336
- }, _callee9);
337
- }));
338
-
339
- function oc2sms(_x66, _x67, _x68, _x69, _x70, _x71, _x72, _x73) {
340
- return _oc2sms.apply(this, arguments);
341
- }
342
-
343
- return oc2sms;
344
- }(),
345
- mcpShield: function () {
346
- var _mcpShield = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_host, _country, _slug, _device, _offer, _rockmanId, _operator) {
347
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
348
- while (1) {
349
- switch (_context10.prev = _context10.next) {
350
- case 0:
351
- logMockTallyman('MockTallyman');
352
- sleep(2000);
353
- return _context10.abrupt("return", {
354
- source: '**********some very long text**********',
355
- uniqid: 'a26e7c3983a9cebd469601d695c7dbc4',
356
- success: true,
357
- rockman_id: 'd66ac1a3ee6d40c289c23322ecd9aa79'
358
- });
359
-
360
- case 3:
361
- case "end":
362
- return _context10.stop();
363
- }
364
- }
365
- }, _callee10);
366
- }));
367
-
368
- function mcpShield(_x74, _x75, _x76, _x77, _x78, _x79, _x80) {
369
- return _mcpShield.apply(this, arguments);
370
- }
371
-
372
- return mcpShield;
373
- }(),
374
- getGoogleCaptcha: function () {
375
- var _getGoogleCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(_host, _country, _slug, _device, _domain) {
376
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
377
- while (1) {
378
- switch (_context11.prev = _context11.next) {
379
- case 0:
380
- return _context11.abrupt("return", {
381
- site_key: '6LfMTS8fAAAAAHw-cibJXMfnsIYNpWh81GatD1lw',
382
- secret_key: '6LfMTS8fAAAAAIAET7tvHjrU-tRPGuqSdfCZZX6G',
383
- domains: 'n.gamiclub.com',
384
- success: true
385
- });
386
-
387
- case 1:
388
- case "end":
389
- return _context11.stop();
390
- }
391
- }
392
- }, _callee11);
393
- }));
394
-
395
- function getGoogleCaptcha(_x81, _x82, _x83, _x84, _x85) {
396
- return _getGoogleCaptcha.apply(this, arguments);
397
- }
398
-
399
- return getGoogleCaptcha;
400
- }(),
401
- storeEmail: function () {
402
- var _storeEmail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(_host, _slug, _service, _rockmanId, _email) {
403
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
404
- while (1) {
405
- switch (_context12.prev = _context12.next) {
406
- case 0:
407
- return _context12.abrupt("return", {
408
- success: true
409
- });
410
-
411
- case 1:
412
- case "end":
413
- return _context12.stop();
414
- }
415
- }
416
- }, _callee12);
417
- }));
418
-
419
- function storeEmail(_x86, _x87, _x88, _x89, _x90) {
420
- return _storeEmail.apply(this, arguments);
421
- }
422
-
423
- return storeEmail;
424
- }()
425
- };
426
- exports.MockTallyman = MockTallyman;
427
- var RealTallyman = {
428
- identify: function () {
429
- var _identify2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(host, slug, country, msisdn, device, offer, rockmanId) {
430
- var isDMB, newHost;
431
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
432
- while (1) {
433
- switch (_context13.prev = _context13.next) {
434
- case 0:
435
- 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);
436
- newHost = isDMB ? 'de.tallymans.com' : host;
437
- 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) {
438
- return x.json();
439
- }));
440
-
441
- case 3:
442
- case "end":
443
- return _context13.stop();
444
- }
445
- }
446
- }, _callee13);
447
- }));
448
-
449
- function identify(_x91, _x92, _x93, _x94, _x95, _x96, _x97) {
450
- return _identify2.apply(this, arguments);
451
- }
452
-
453
- return identify;
454
- }(),
455
- triggerPin: function () {
456
- var _triggerPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid) {
457
- var isDMB, newHost, isCleanTraffic;
458
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
459
- while (1) {
460
- switch (_context14.prev = _context14.next) {
461
- case 0:
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);
463
- newHost = isDMB ? 'de.tallymans.com' : host;
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) {
466
- return x.json();
467
- }));
468
-
469
- case 4:
470
- case "end":
471
- return _context14.stop();
472
- }
473
- }
474
- }, _callee14);
475
- }));
476
-
477
- function triggerPin(_x98, _x99, _x100, _x101, _x102, _x103, _x104, _x105, _x106, _x107) {
478
- return _triggerPin2.apply(this, arguments);
479
- }
480
-
481
- return triggerPin;
482
- }(),
483
- verifyPin: function () {
484
- var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid, evinaTid) {
485
- var isDMB, newHost, isCleanTraffic;
486
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
487
- while (1) {
488
- switch (_context15.prev = _context15.next) {
489
- case 0:
490
- 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);
491
- newHost = isDMB ? 'de.tallymans.com' : host;
492
- isCleanTraffic = checkIsCleanTraffic(country);
493
- 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) {
494
- return x.json();
495
- }));
496
-
497
- case 4:
498
- case "end":
499
- return _context15.stop();
500
- }
501
- }
502
- }, _callee15);
503
- }));
504
-
505
- function verifyPin(_x108, _x109, _x110, _x111, _x112, _x113, _x114, _x115, _x116, _x117) {
506
- return _verifyPin2.apply(this, arguments);
507
- }
508
-
509
- return verifyPin;
510
- }(),
511
- checkSubscription: function () {
512
- var _checkSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(host, country, slug, device, offer, rockmanId, _pin, _extraParamsQs) {
513
- var isDMB, newHost;
514
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
515
- while (1) {
516
- switch (_context16.prev = _context16.next) {
517
- case 0:
518
- 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);
519
- newHost = isDMB ? 'de.tallymans.com' : host;
520
- 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) {
521
- return x.json();
522
- }));
523
-
524
- case 3:
525
- case "end":
526
- return _context16.stop();
527
- }
528
- }
529
- }, _callee16);
530
- }));
531
-
532
- function checkSubscription(_x118, _x119, _x120, _x121, _x122, _x123, _x124, _x125) {
533
- return _checkSubscription2.apply(this, arguments);
534
- }
535
-
536
- return checkSubscription;
537
- }(),
538
- checkSubscriptionByRockmanIdOnly: function () {
539
- var _checkSubscriptionByRockmanIdOnly2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(host, rockmanId) {
540
- var isDMB, newHost;
541
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
542
- while (1) {
543
- switch (_context17.prev = _context17.next) {
544
- case 0:
545
- 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);
546
- newHost = isDMB ? 'de.tallymans.com' : host;
547
- return _context17.abrupt("return", fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&rockman_id=").concat(rockmanId)).then(function (x) {
548
- return x.json();
549
- }));
550
-
551
- case 3:
552
- case "end":
553
- return _context17.stop();
554
- }
555
- }
556
- }, _callee17);
557
- }));
558
-
559
- function checkSubscriptionByRockmanIdOnly(_x126, _x127) {
560
- return _checkSubscriptionByRockmanIdOnly2.apply(this, arguments);
561
- }
562
-
563
- return checkSubscriptionByRockmanIdOnly;
564
- }(),
565
- redirect: function () {
566
- var _redirect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(host, slug, country, msisdn, device, offer, rockmanId, ip_range_name, search, extraParamsQs) {
567
- var isDMB, newHost, evinaTi;
568
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
569
- while (1) {
570
- switch (_context18.prev = _context18.next) {
571
- case 0:
572
- 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);
573
- newHost = isDMB ? 'de.tallymans.com' : host;
574
- evinaTi = country.toLowerCase() === 'a2' ? "&evinaTi=".concat(rockmanId) : '';
575
- 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) {
576
- return x.json();
577
- }));
578
-
579
- case 4:
580
- case "end":
581
- return _context18.stop();
582
- }
583
- }
584
- }, _callee18);
585
- }));
586
-
587
- function redirect(_x128, _x129, _x130, _x131, _x132, _x133, _x134, _x135, _x136, _x137) {
588
- return _redirect2.apply(this, arguments);
589
- }
590
-
591
- return redirect;
592
- }(),
593
- triggerMessage: function () {
594
- var _triggerMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
595
- var isDMB, newHost, samGtoken;
596
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
597
- while (1) {
598
- switch (_context19.prev = _context19.next) {
599
- case 0:
600
- 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);
601
- newHost = isDMB ? 'de.tallymans.com' : host;
602
- samGtoken = window.reCaptchaToken ? "sam-g-token=".concat(window.reCaptchaToken) : '';
603
- 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) {
604
- return x.json();
605
- }));
606
-
607
- case 4:
608
- case "end":
609
- return _context19.stop();
610
- }
611
- }
612
- }, _callee19);
613
- }));
614
-
615
- function triggerMessage(_x138, _x139, _x140, _x141, _x142, _x143, _x144, _x145, _x146) {
616
- return _triggerMessage2.apply(this, arguments);
617
- }
618
-
619
- return triggerMessage;
620
- }(),
621
- ussd: function () {
622
- var _ussd2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
623
- var isDMB, newHost;
624
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
625
- while (1) {
626
- switch (_context20.prev = _context20.next) {
627
- case 0:
628
- 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);
629
- newHost = isDMB ? 'de.tallymans.com' : host;
630
- 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) {
631
- return x.json();
632
- }));
633
-
634
- case 3:
635
- case "end":
636
- return _context20.stop();
637
- }
638
- }
639
- }, _callee20);
640
- }));
641
-
642
- function ussd(_x147, _x148, _x149, _x150, _x151, _x152, _x153, _x154, _x155) {
643
- return _ussd2.apply(this, arguments);
644
- }
645
-
646
- return ussd;
647
- }(),
648
- oc2sms: function () {
649
- var _oc2sms2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(host, country, slug, offer, rockmanId, keyword, operator, search) {
650
- var isDMB, newHost;
651
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
652
- while (1) {
653
- switch (_context21.prev = _context21.next) {
654
- case 0:
655
- 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
- newHost = isDMB ? 'de.tallymans.com' : host;
657
- 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) {
658
- return x.json();
659
- }));
660
-
661
- case 3:
662
- case "end":
663
- return _context21.stop();
664
- }
665
- }
666
- }, _callee21);
667
- }));
668
-
669
- function oc2sms(_x156, _x157, _x158, _x159, _x160, _x161, _x162, _x163) {
670
- return _oc2sms2.apply(this, arguments);
671
- }
672
-
673
- return oc2sms;
674
- }(),
675
- mcpShield: function () {
676
- var _mcpShield2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(host, country, slug, device, offer, rockmanId, operator, uniqid) {
677
- var isDMB, newHost, pageUrl, ipAdd, userIp;
678
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
679
- while (1) {
680
- switch (_context22.prev = _context22.next) {
681
- case 0:
682
- 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);
683
- newHost = isDMB ? 'de.tallymans.com' : host;
684
- pageUrl = window.location.href;
685
- ipAdd = window.pac_analytics.visitor.ip;
686
- userIp = ipAdd ? "&client_ip=".concat(ipAdd) : '';
687
- 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) {
688
- return x.json();
689
- }));
690
-
691
- case 6:
692
- case "end":
693
- return _context22.stop();
694
- }
695
- }
696
- }, _callee22);
697
- }));
698
-
699
- function mcpShield(_x164, _x165, _x166, _x167, _x168, _x169, _x170, _x171) {
700
- return _mcpShield2.apply(this, arguments);
701
- }
702
-
703
- return mcpShield;
704
- }(),
705
- getGoogleCaptcha: function () {
706
- var _getGoogleCaptcha2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(host, country, slug, device, domain) {
707
- var isDMB, newHost;
708
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
709
- while (1) {
710
- switch (_context23.prev = _context23.next) {
711
- case 0:
712
- 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);
713
- newHost = isDMB ? 'de.tallymans.com' : host;
714
- 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) {
715
- return x.json();
716
- }));
717
-
718
- case 3:
719
- case "end":
720
- return _context23.stop();
721
- }
722
- }
723
- }, _callee23);
724
- }));
725
-
726
- function getGoogleCaptcha(_x172, _x173, _x174, _x175, _x176) {
727
- return _getGoogleCaptcha2.apply(this, arguments);
728
- }
729
-
730
- return getGoogleCaptcha;
731
- }(),
732
- storeEmail: function () {
733
- var _storeEmail2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(host, slug, service, rockmanId, email) {
734
- var isDMB, newHost;
735
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
736
- while (1) {
737
- switch (_context24.prev = _context24.next) {
738
- case 0:
739
- 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);
740
- newHost = isDMB ? 'de.tallymans.com' : host;
741
- 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) {
742
- return x.json();
743
- }));
744
-
745
- case 3:
746
- case "end":
747
- return _context24.stop();
748
- }
749
- }
750
- }, _callee24);
751
- }));
752
-
753
- function storeEmail(_x177, _x178, _x179, _x180, _x181) {
754
- return _storeEmail2.apply(this, arguments);
755
- }
756
-
757
- return storeEmail;
758
- }()
759
- };
760
- exports.RealTallyman = RealTallyman;
1
+ "use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.symbol.async-iterator.js"),require("core-js/modules/es.symbol.to-string-tag.js"),require("core-js/modules/es.json.to-string-tag.js"),require("core-js/modules/es.math.to-string-tag.js"),require("core-js/modules/es.object.get-prototype-of.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/es.function.name.js"),require("core-js/modules/es.object.set-prototype-of.js"),require("core-js/modules/es.array.slice.js"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.RealTallyman=exports.MockTallyman=void 0,require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.concat.js");function _regeneratorRuntime(){"use strict";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key]}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return generator._invoke=function(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult()}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg)}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done}}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg)}}}(innerFn,self,context),generator}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg)})})}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result)},function(error){return invoke("throw",error,resolve,reject)})}reject(record.arg)}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(void 0===method){if(context.delegate=null,"throw"===context.method){if(delegate.iterator.return&&(context.method="return",context.arg=void 0,maybeInvokeDelegate(delegate,context),"throw"===context.method))return ContinueSentinel;context.method="throw",context.arg=new TypeError("The iterator does not provide a 'throw' method")}return ContinueSentinel}var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=void 0),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel)}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0)}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=void 0,next.done=!0,next};return next.next=next}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}_regeneratorRuntime=function(){return exports};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";try{define({},"")}catch(err){define=function(obj,key,value){return obj[key]=value}}exports.wrap=wrap;var ContinueSentinel={},IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(Gp,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name))},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun},exports.awrap=function(arg){return{__await:arg}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this}),define(Gp,"toString",function(){return"[object Generator]"}),exports.keys=function(object){var keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next}return next.done=!0,next}},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=void 0)},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval},dispatchException:function dispatchException(exception){function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=void 0),!!caught}if(this.done)throw exception;for(var context=this,i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(!hasCatch){if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0)}}},abrupt:function abrupt(type,arg){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record)},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel},finish:function finish(finallyLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel},catch:function _catch(tryLoc){for(var entry,i=this.tryEntries.length-1;0<=i;--i)if(entry=this.tryEntries[i],entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=void 0),ContinueSentinel}},exports}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}var bupperizeCountry=function(c){return"gb"===c?"uk":c},logMockTallyman=function(mock){return console.log(mock)},checkIsCleanTraffic=function(country){return"be"===country?"undefined"!=typeof window&&!0===window.shouldBlock?"&is-clean-traffic=false":"&is-clean-traffic=true":""};function sleep(milliseconds){var date=Date.now(),currentDate=null;do currentDate=Date.now();while(currentDate-date<milliseconds)}var MockTallyman={identify:function(){function identify(){return _identify.apply(this,arguments)}var _identify=_asyncToGenerator(_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context){for(;1;)switch(_context.prev=_context.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context.abrupt("return",{operator:"",flow:"",success:!0,rockman_id:""});case 3:case"end":return _context.stop();}},_callee)}));return identify}(),triggerPin:function(){function triggerPin(_x8,_x9,_x10,_x11,_x12,_x13,_x14,_x15,_x16,_x17,_x18){return _triggerPin.apply(this,arguments)}var _triggerPin=_asyncToGenerator(_regeneratorRuntime().mark(function _callee2(_host,_country,_slug,_device,_offer,_msisdn,_rockmanId,_extraParamsQs,_search,_uniqid,_evinaTid){return _regeneratorRuntime().wrap(function _callee2$(_context2){for(;1;)switch(_context2.prev=_context2.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context2.abrupt("return",{success:!0,operator:"",rockman_id:"",pin:"",product_url:""});case 3:case"end":return _context2.stop();}},_callee2)}));return triggerPin}(),verifyPin:function(){function verifyPin(_x19,_x20,_x21,_x22,_x23,_x24,_x25,_x26,_x27){return _verifyPin.apply(this,arguments)}var _verifyPin=_asyncToGenerator(_regeneratorRuntime().mark(function _callee3(_host,_country,_slug,_device,_offer,_rockmanId,_pin,_extraParamsQs,_uniqid){return _regeneratorRuntime().wrap(function _callee3$(_context3){for(;1;)switch(_context3.prev=_context3.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context3.abrupt("return",{success:!0,rockman_id:"000",product_url:"https://google.com",async:!1});case 3:case"end":return _context3.stop();}},_callee3)}));return verifyPin}(),checkSubscription:function(){function checkSubscription(_x28,_x29,_x30,_x31,_x32,_x33,_x34,_x35){return _checkSubscription.apply(this,arguments)}var _checkSubscription=_asyncToGenerator(_regeneratorRuntime().mark(function _callee4(_host,_country,_slug,_device,_offer,_rockmanId,_pin,_extraParamsQs){return _regeneratorRuntime().wrap(function _callee4$(_context4){for(;1;)switch(_context4.prev=_context4.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context4.abrupt("return",{success:!0,rockman_id:"000",product_url:"https://google.com",msisdn:"000"});case 3:case"end":return _context4.stop();}},_callee4)}));return checkSubscription}(),checkSubscriptionByRockmanIdOnly:function(){function checkSubscriptionByRockmanIdOnly(_x36,_x37){return _checkSubscriptionByRockmanIdOnly.apply(this,arguments)}var _checkSubscriptionByRockmanIdOnly=_asyncToGenerator(_regeneratorRuntime().mark(function _callee5(_host,_rockmanId){return _regeneratorRuntime().wrap(function _callee5$(_context5){for(;1;)switch(_context5.prev=_context5.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context5.abrupt("return",{success:!0,rockman_id:"000",product_url:"https://google.com",msisdn:"000"});case 3:case"end":return _context5.stop();}},_callee5)}));return checkSubscriptionByRockmanIdOnly}(),redirect:function(){function redirect(_x38,_x39,_x40,_x41,_x42,_x43,_x44,_x45,_x46,_x47){return _redirect.apply(this,arguments)}var _redirect=_asyncToGenerator(_regeneratorRuntime().mark(function _callee6(_host,_slug,_country,_msisdn,_device,_offer,_rockmanId,_ip_range_name,_search,_extraParamsQs){return _regeneratorRuntime().wrap(function _callee6$(_context6){for(;1;)switch(_context6.prev=_context6.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context6.abrupt("return",{success:!0,rockman_id:"000",redirect_url:"https://google.com"});case 3:case"end":return _context6.stop();}},_callee6)}));return redirect}(),triggerMessage:function(){function triggerMessage(_x48,_x49,_x50,_x51,_x52,_x53,_x54,_x55,_x56){return _triggerMessage.apply(this,arguments)}var _triggerMessage=_asyncToGenerator(_regeneratorRuntime().mark(function _callee7(_host,_slug,_country,_msisdn,_device,_offer,_rockmanId,_search,_extraParamsQs){return _regeneratorRuntime().wrap(function _callee7$(_context7){for(;1;)switch(_context7.prev=_context7.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context7.abrupt("return",{success:!0,rockman_id:"0000",keyword:"TEST OK",shortcode:"777"});case 3:case"end":return _context7.stop();}},_callee7)}));return triggerMessage}(),ussd:function(){function ussd(_x57,_x58,_x59,_x60,_x61,_x62,_x63,_x64,_x65){return _ussd.apply(this,arguments)}var _ussd=_asyncToGenerator(_regeneratorRuntime().mark(function _callee8(_host,_slug,_country,_msisdn,_device,_offer,_rockmanId,_search,_extraParamsQs){return _regeneratorRuntime().wrap(function _callee8$(_context8){for(;1;)switch(_context8.prev=_context8.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context8.abrupt("return",{success:!0,rockman_id:"0000",keyword:"TEST OK",shortcode:"777"});case 3:case"end":return _context8.stop();}},_callee8)}));return ussd}(),oc2sms:function(){function oc2sms(_x66,_x67,_x68,_x69,_x70,_x71,_x72,_x73){return _oc2sms.apply(this,arguments)}var _oc2sms=_asyncToGenerator(_regeneratorRuntime().mark(function _callee9(_host,_country,_slug,_offer,_rockmanId,_keyword,_operator,_search){return _regeneratorRuntime().wrap(function _callee9$(_context9){for(;1;)switch(_context9.prev=_context9.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context9.abrupt("return",{success:!0,uid:"1",keyword:"TEST OK",displayKeyword:"TEST OK",shortcode:"777"});case 3:case"end":return _context9.stop();}},_callee9)}));return oc2sms}(),mcpShield:function(){function mcpShield(_x74,_x75,_x76,_x77,_x78,_x79,_x80){return _mcpShield.apply(this,arguments)}var _mcpShield=_asyncToGenerator(_regeneratorRuntime().mark(function _callee10(_host,_country,_slug,_device,_offer,_rockmanId,_operator){return _regeneratorRuntime().wrap(function _callee10$(_context10){for(;1;)switch(_context10.prev=_context10.next){case 0:return logMockTallyman("MockTallyman"),sleep(2e3),_context10.abrupt("return",{source:"**********some very long text**********",uniqid:"a26e7c3983a9cebd469601d695c7dbc4",success:!0,rockman_id:"d66ac1a3ee6d40c289c23322ecd9aa79"});case 3:case"end":return _context10.stop();}},_callee10)}));return mcpShield}(),getGoogleCaptcha:function(){function getGoogleCaptcha(_x81,_x82,_x83,_x84,_x85){return _getGoogleCaptcha.apply(this,arguments)}var _getGoogleCaptcha=_asyncToGenerator(_regeneratorRuntime().mark(function _callee11(_host,_country,_slug,_device,_domain){return _regeneratorRuntime().wrap(function _callee11$(_context11){for(;1;)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",{site_key:"6LfMTS8fAAAAAHw-cibJXMfnsIYNpWh81GatD1lw",secret_key:"6LfMTS8fAAAAAIAET7tvHjrU-tRPGuqSdfCZZX6G",domains:"n.gamiclub.com",success:!0});case 1:case"end":return _context11.stop();}},_callee11)}));return getGoogleCaptcha}(),storeEmail:function(){function storeEmail(_x86,_x87,_x88,_x89,_x90){return _storeEmail.apply(this,arguments)}var _storeEmail=_asyncToGenerator(_regeneratorRuntime().mark(function _callee12(_host,_slug,_service,_rockmanId,_email){return _regeneratorRuntime().wrap(function _callee12$(_context12){for(;1;)switch(_context12.prev=_context12.next){case 0:return _context12.abrupt("return",{success:!0});case 1:case"end":return _context12.stop();}},_callee12)}));return storeEmail}()};exports.MockTallyman=MockTallyman;var RealTallyman={identify:function(){function identify(_x91,_x92,_x93,_x94,_x95,_x96,_x97){return _identify2.apply(this,arguments)}var _identify2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee13(host,slug,country,msisdn,device,offer,rockmanId){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee13$(_context13){for(;1;)switch(_context13.prev=_context13.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context13.stop();}},_callee13)}));return identify}(),triggerPin:function(){function triggerPin(_x98,_x99,_x100,_x101,_x102,_x103,_x104,_x105,_x106,_x107){return _triggerPin2.apply(this,arguments)}var _triggerPin2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee14(host,country,slug,device,offer,msisdn,rockmanId,extraParamsQs,search,uniqid){var isDMB,newHost,isCleanTraffic;return _regeneratorRuntime().wrap(function _callee14$(_context14){for(;1;)switch(_context14.prev=_context14.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,isCleanTraffic=checkIsCleanTraffic(country),_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){return x.json()}));case 4:case"end":return _context14.stop();}},_callee14)}));return triggerPin}(),verifyPin:function(){function verifyPin(_x108,_x109,_x110,_x111,_x112,_x113,_x114,_x115,_x116,_x117){return _verifyPin2.apply(this,arguments)}var _verifyPin2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee15(host,country,slug,device,offer,rockmanId,pin,extraParamsQs,uniqid,evinaTid){var isDMB,newHost,isCleanTraffic;return _regeneratorRuntime().wrap(function _callee15$(_context15){for(;1;)switch(_context15.prev=_context15.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,isCleanTraffic=checkIsCleanTraffic(country),_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){return x.json()}));case 4:case"end":return _context15.stop();}},_callee15)}));return verifyPin}(),checkSubscription:function(){function checkSubscription(_x118,_x119,_x120,_x121,_x122,_x123,_x124,_x125){return _checkSubscription2.apply(this,arguments)}var _checkSubscription2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee16(host,country,slug,device,offer,rockmanId,_pin,_extraParamsQs){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee16$(_context16){for(;1;)switch(_context16.prev=_context16.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context16.stop();}},_callee16)}));return checkSubscription}(),checkSubscriptionByRockmanIdOnly:function(){function checkSubscriptionByRockmanIdOnly(_x126,_x127){return _checkSubscriptionByRockmanIdOnly2.apply(this,arguments)}var _checkSubscriptionByRockmanIdOnly2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee17(host,rockmanId){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee17$(_context17){for(;1;)switch(_context17.prev=_context17.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_context17.abrupt("return",fetch("https://".concat(newHost,"/tallyman/v1/?action=check-subscription&rockman_id=").concat(rockmanId)).then(function(x){return x.json()}));case 3:case"end":return _context17.stop();}},_callee17)}));return checkSubscriptionByRockmanIdOnly}(),redirect:function(){function redirect(_x128,_x129,_x130,_x131,_x132,_x133,_x134,_x135,_x136,_x137){return _redirect2.apply(this,arguments)}var _redirect2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee18(host,slug,country,msisdn,device,offer,rockmanId,ip_range_name,search,extraParamsQs){var isDMB,newHost,evinaTi;return _regeneratorRuntime().wrap(function _callee18$(_context18){for(;1;)switch(_context18.prev=_context18.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,evinaTi="a2"===country.toLowerCase()?"&evinaTi=".concat(rockmanId):"",_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){return x.json()}));case 4:case"end":return _context18.stop();}},_callee18)}));return redirect}(),triggerMessage:function(){function triggerMessage(_x138,_x139,_x140,_x141,_x142,_x143,_x144,_x145,_x146){return _triggerMessage2.apply(this,arguments)}var _triggerMessage2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee19(host,slug,country,msisdn,device,offer,rockmanId,search,extraParamsQs){var isDMB,newHost,samGtoken;return _regeneratorRuntime().wrap(function _callee19$(_context19){for(;1;)switch(_context19.prev=_context19.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,samGtoken=window.reCaptchaToken?"sam-g-token=".concat(window.reCaptchaToken):"",_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){return x.json()}));case 4:case"end":return _context19.stop();}},_callee19)}));return triggerMessage}(),ussd:function(){function ussd(_x147,_x148,_x149,_x150,_x151,_x152,_x153,_x154,_x155){return _ussd2.apply(this,arguments)}var _ussd2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee20(host,slug,country,msisdn,device,offer,rockmanId,search,extraParamsQs){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee20$(_context20){for(;1;)switch(_context20.prev=_context20.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context20.stop();}},_callee20)}));return ussd}(),oc2sms:function(){function oc2sms(_x156,_x157,_x158,_x159,_x160,_x161,_x162,_x163){return _oc2sms2.apply(this,arguments)}var _oc2sms2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee21(host,country,slug,offer,rockmanId,keyword,operator,search){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee21$(_context21){for(;1;)switch(_context21.prev=_context21.next){case 0:return isDMB=null!==window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context21.stop();}},_callee21)}));return oc2sms}(),mcpShield:function(){function mcpShield(_x164,_x165,_x166,_x167,_x168,_x169,_x170,_x171){return _mcpShield2.apply(this,arguments)}var _mcpShield2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee22(host,country,slug,device,offer,rockmanId,operator,uniqid){var isDMB,newHost,pageUrl,ipAdd,userIp;return _regeneratorRuntime().wrap(function _callee22$(_context22){for(;1;)switch(_context22.prev=_context22.next){case 0:return isDMB=null!=window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,pageUrl=window.location.href,ipAdd=window.pac_analytics.visitor.ip,userIp=ipAdd?"&client_ip=".concat(ipAdd):"",_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){return x.json()}));case 6:case"end":return _context22.stop();}},_callee22)}));return mcpShield}(),getGoogleCaptcha:function(){function getGoogleCaptcha(_x172,_x173,_x174,_x175,_x176){return _getGoogleCaptcha2.apply(this,arguments)}var _getGoogleCaptcha2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee23(host,country,slug,device,domain){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee23$(_context23){for(;1;)switch(_context23.prev=_context23.next){case 0:return isDMB=null!=window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context23.stop();}},_callee23)}));return getGoogleCaptcha}(),storeEmail:function(){function storeEmail(_x177,_x178,_x179,_x180,_x181){return _storeEmail2.apply(this,arguments)}var _storeEmail2=_asyncToGenerator(_regeneratorRuntime().mark(function _callee24(host,slug,service,rockmanId,email){var isDMB,newHost;return _regeneratorRuntime().wrap(function _callee24$(_context24){for(;1;)switch(_context24.prev=_context24.next){case 0:return isDMB=null!=window.pac_analytics.visitor.xaid&&-1!==(-1!==window.pac_analytics.visitor.xaid.toLowerCase().indexOf("dmb")||window.pac_analytics.visitor.xaid.toLowerCase().indexOf("amb")),newHost=isDMB?"de.tallymans.com":host,_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){return x.json()}));case 3:case"end":return _context24.stop();}},_callee24)}));return storeEmail}()};exports.RealTallyman=RealTallyman;