ouisys-engine 3.0.2 → 3.0.3

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.
@@ -120,7 +120,7 @@ var uniqidResult;
120
120
 
121
121
  var getRedirectUrl = /*#__PURE__*/function () {
122
122
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(window, maybeConfig, extraParams) {
123
- var host, country, slug, queryString, device, apiAction, bupperizeCountry, offer, s, search, extraParamsQs, rockmanId, _url2, result, identifyError, _url3, _result, _identifyError, mcpShieldResult, mcpSessionCheckWithBlock, _url4, _result2, _identifyError2;
123
+ var host, country, slug, queryString, device, apiAction, customDomain, bupperizeCountry, offer, s, search, extraParamsQs, rockmanId, _url2, result, identifyError, _url3, _result, _identifyError, mcpShieldResult, mcpSessionCheckWithBlock, _url4, _result2, _identifyError2;
124
124
 
125
125
  return _regeneratorRuntime().wrap(function _callee$(_context) {
126
126
  while (1) {
@@ -135,6 +135,7 @@ var getRedirectUrl = /*#__PURE__*/function () {
135
135
 
136
136
  case 4:
137
137
  host = maybeConfig.host, country = maybeConfig.country, slug = maybeConfig.slug, queryString = maybeConfig.queryString, device = maybeConfig.device, apiAction = maybeConfig.apiAction;
138
+ customDomain = slug === "evina-test-handle" ? "dev.ng.eu.ngrok.io" : "de-ads.tallymans.com";
138
139
 
139
140
  bupperizeCountry = function bupperizeCountry(c) {
140
141
  return c == 'gb' ? 'uk' : c;
@@ -155,19 +156,19 @@ var getRedirectUrl = /*#__PURE__*/function () {
155
156
  rockmanId = window.pac_analytics.visitor.rockmanId;
156
157
 
157
158
  if (!(apiAction == "identify-user")) {
158
- _context.next = 25;
159
+ _context.next = 26;
159
160
  break;
160
161
  }
161
162
 
162
163
  _url2 = "https://de.tallymans.com/tallyman/v1/?action=identify-user&country=".concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=", "smart", "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId).concat(extraParamsQs, "&").concat(search);
163
- _context.next = 15;
164
+ _context.next = 16;
164
165
  return fetchJsonp(_url2);
165
166
 
166
- case 15:
167
+ case 16:
167
168
  result = _context.sent;
168
169
 
169
170
  if (!(false === result.success)) {
170
- _context.next = 22;
171
+ _context.next = 23;
171
172
  break;
172
173
  }
173
174
 
@@ -175,7 +176,7 @@ var getRedirectUrl = /*#__PURE__*/function () {
175
176
  identifyError['type'] = "NotOn3g";
176
177
  throw identifyError;
177
178
 
178
- case 22:
179
+ case 23:
179
180
  return _context.abrupt("return", {
180
181
  subscription_url: result.subscription_url || result.redirect_url,
181
182
  action: function action() {
@@ -183,27 +184,27 @@ var getRedirectUrl = /*#__PURE__*/function () {
183
184
  }
184
185
  });
185
186
 
186
- case 23:
187
- _context.next = 62;
187
+ case 24:
188
+ _context.next = 63;
188
189
  break;
189
190
 
190
- case 25:
191
+ case 26:
191
192
  if (!(apiAction == "he")) {
192
- _context.next = 40;
193
+ _context.next = 41;
193
194
  break;
194
195
  }
195
196
 
196
197
  _url3 = "https://de.tallymans.com/tallyman/v1/?action=he&country=".concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=", "smart", "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId).concat(extraParamsQs, "&").concat(search);
197
- _context.next = 29;
198
+ _context.next = 30;
198
199
  return fetch(_url3).then(function (x) {
199
200
  return x.json();
200
201
  });
201
202
 
202
- case 29:
203
+ case 30:
203
204
  _result = _context.sent;
204
205
 
205
206
  if (!(false === _result.success)) {
206
- _context.next = 36;
207
+ _context.next = 37;
207
208
  break;
208
209
  }
209
210
 
@@ -211,27 +212,27 @@ var getRedirectUrl = /*#__PURE__*/function () {
211
212
  _identifyError['type'] = "NotOn3g";
212
213
  throw _identifyError;
213
214
 
214
- case 36:
215
+ case 37:
215
216
  (0, _loadScriptInnerHtml.default)(_result.source);
216
217
  return _context.abrupt("return", {
217
218
  redirect_url: _result.redirectUrlWithReplacedUniqid
218
219
  });
219
220
 
220
- case 38:
221
- _context.next = 62;
221
+ case 39:
222
+ _context.next = 63;
222
223
  break;
223
224
 
224
- case 40:
225
- if (!(country.toLowerCase() === "za")) {
226
- _context.next = 51;
225
+ case 41:
226
+ if (!(country.toLowerCase() === "za" && slug !== 'evina-test-handle')) {
227
+ _context.next = 52;
227
228
  break;
228
229
  }
229
230
 
230
- _context.prev = 41;
231
- _context.next = 44;
231
+ _context.prev = 42;
232
+ _context.next = 45;
232
233
  return window.tallymanApi.mcpShield(host, country, slug, device, offer, rockmanId);
233
234
 
234
- case 44:
235
+ case 45:
235
236
  mcpShieldResult = _context.sent;
236
237
 
237
238
  if (false == mcpShieldResult.success) {
@@ -243,26 +244,26 @@ var getRedirectUrl = /*#__PURE__*/function () {
243
244
  (0, _loadScriptInnerHtml.default)(mcpSessionCheckWithBlock);
244
245
  }
245
246
 
246
- _context.next = 51;
247
+ _context.next = 52;
247
248
  break;
248
249
 
249
- case 48:
250
- _context.prev = 48;
251
- _context.t0 = _context["catch"](41);
250
+ case 49:
251
+ _context.prev = 49;
252
+ _context.t0 = _context["catch"](42);
252
253
  console.warn(_context.t0);
253
254
 
254
- case 51:
255
- _url4 = "https://de.tallymans.com/tallyman/v1/?action=redirect&country=".concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=", "smart", "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId).concat(extraParamsQs, "&").concat(search);
256
- _context.next = 54;
255
+ case 52:
256
+ _url4 = "https://".concat(customDomain, "/tallyman/v1/?action=redirect&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=", "smart", "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId).concat(extraParamsQs, "&").concat(search);
257
+ _context.next = 55;
257
258
  return fetch(_url4).then(function (x) {
258
259
  return x.json();
259
260
  });
260
261
 
261
- case 54:
262
+ case 55:
262
263
  _result2 = _context.sent;
263
264
 
264
265
  if (!(false === _result2.success)) {
265
- _context.next = 61;
266
+ _context.next = 62;
266
267
  break;
267
268
  }
268
269
 
@@ -270,17 +271,17 @@ var getRedirectUrl = /*#__PURE__*/function () {
270
271
  _identifyError2['type'] = "NotOn3g";
271
272
  throw _identifyError2;
272
273
 
273
- case 61:
274
+ case 62:
274
275
  return _context.abrupt("return", {
275
276
  redirect_url: _result2.redirect_url
276
277
  });
277
278
 
278
- case 62:
279
+ case 63:
279
280
  case "end":
280
281
  return _context.stop();
281
282
  }
282
283
  }
283
- }, _callee, null, [[41, 48]]);
284
+ }, _callee, null, [[42, 49]]);
284
285
  }));
285
286
 
286
287
  return function getRedirectUrl(_x, _x2, _x3) {
@@ -47,7 +47,7 @@ export declare type IStrategy = {
47
47
  country: string;
48
48
  strategyConfigs: StrategyConfig;
49
49
  };
50
- export declare type IStrategyNames = "pin" | "mo" | "mo-redir" | "click2sms" | "one-click" | "ussd" | "tpay-he" | "tallyman-one-click" | "pin-mo-ask-operator" | "pin-mo-ask-mobile-number" | "pin-one-click-ask-operator" | "pin-one-click-detect-operator-by-ip" | "one-click-mo-pin-detect-operator-by-ip-or-msisdn" | "pin-click2sms-ask-operator" | "mo-redir-one-click-detect-operator-by-ip" | "pin-mo-redir-ask-mobile-number" | "pin-click2sms-ask-mobile-number" | "mo-one-click-detect-operator-by-ip" | "click2sms-one-click-detect-operator-by-ip" | "pin-header-enrichment" | "pin-msisdn-fowarding-pin-header-enrichment" | "he-pin-mo-redir-header-enrichment" | "he-pin-one-click-header-enrichment" | "he-pin-one-click-ask-operator" | "click2sms-one-click-ask-operator" | "pin-mo-detect-operator-by-ip" | "he-mo-redir-one-click-header-enrichment";
50
+ export declare type IStrategyNames = "pin" | "mo" | "mo-redir" | "click2sms" | "one-click" | "ussd" | "tpay-he" | "tallyman-one-click" | "pin-mo-ask-operator" | "pin-mo-ask-mobile-number" | "pin-one-click-ask-operator" | "pin-one-click-detect-operator-by-ip" | "one-click-mo-pin-detect-operator-by-ip-or-msisdn" | "pin-click2sms-ask-operator" | "mo-redir-one-click-detect-operator-by-ip" | "pin-mo-redir-ask-mobile-number" | "pin-click2sms-ask-mobile-number" | "mo-one-click-detect-operator-by-ip" | "click2sms-one-click-detect-operator-by-ip" | "pin-header-enrichment" | "pin-msisdn-fowarding-pin-header-enrichment" | "he-pin-mo-redir-header-enrichment" | "he-pin-one-click-header-enrichment" | "he-pin-one-click-ask-operator" | "click2sms-one-click-ask-operator" | "pin-mo-detect-operator-by-ip" | "he-mo-redir-one-click-header-enrichment" | "pin-combo-ask-mobile-number";
51
51
  export interface IHash {
52
52
  [key: string]: string;
53
53
  }
@@ -182,7 +182,7 @@ function identifyStrategy() {
182
182
 
183
183
  case 7:
184
184
  _context.t0 = strategy;
185
- _context.next = _context.t0 === "pin-mo-ask-operator" ? 10 : _context.t0 === "pin-mo-redir-ask-mobile-number" ? 11 : _context.t0 === "pin-mo-ask-mobile-number" ? 11 : _context.t0 === "pin-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "one-click-mo-pin-detect-operator-by-ip-or-msisdn" ? 12 : _context.t0 === "mo-redir-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "mo-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "click2sms-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "pin-mo-detect-operator-by-ip" ? 12 : _context.t0 === "pin-click2sms-ask-operator" ? 13 : _context.t0 === "he-pin-one-click-ask-operator" ? 13 : _context.t0 === "click2sms-one-click-ask-operator" ? 13 : _context.t0 === "pin-one-click-ask-operator" ? 13 : _context.t0 === "pin-header-enrichment" ? 14 : _context.t0 === "he-pin-mo-redir-header-enrichment" ? 14 : _context.t0 === "he-pin-one-click-header-enrichment" ? 14 : _context.t0 === "he-mo-redir-one-click-header-enrichment" ? 14 : _context.t0 === "pin" ? 15 : _context.t0 === "mo" ? 17 : _context.t0 === "mo-redir" ? 19 : _context.t0 === "one-click" ? 21 : _context.t0 === "tallyman-one-click" ? 23 : _context.t0 === "click2sms" ? 25 : _context.t0 === "ussd" ? 27 : _context.t0 === "tpay-he" ? 29 : 31;
185
+ _context.next = _context.t0 === "pin-mo-ask-operator" ? 10 : _context.t0 === "pin-mo-redir-ask-mobile-number" ? 11 : _context.t0 === "pin-mo-ask-mobile-number" ? 11 : _context.t0 === "pin-combo-ask-mobile-number" ? 11 : _context.t0 === "pin-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "one-click-mo-pin-detect-operator-by-ip-or-msisdn" ? 12 : _context.t0 === "mo-redir-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "mo-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "click2sms-one-click-detect-operator-by-ip" ? 12 : _context.t0 === "pin-mo-detect-operator-by-ip" ? 12 : _context.t0 === "pin-click2sms-ask-operator" ? 13 : _context.t0 === "he-pin-one-click-ask-operator" ? 13 : _context.t0 === "click2sms-one-click-ask-operator" ? 13 : _context.t0 === "pin-one-click-ask-operator" ? 13 : _context.t0 === "pin-header-enrichment" ? 14 : _context.t0 === "he-pin-mo-redir-header-enrichment" ? 14 : _context.t0 === "he-pin-one-click-header-enrichment" ? 14 : _context.t0 === "he-mo-redir-one-click-header-enrichment" ? 14 : _context.t0 === "pin" ? 15 : _context.t0 === "mo" ? 17 : _context.t0 === "mo-redir" ? 19 : _context.t0 === "one-click" ? 21 : _context.t0 === "tallyman-one-click" ? 23 : _context.t0 === "click2sms" ? 25 : _context.t0 === "ussd" ? 27 : _context.t0 === "tpay-he" ? 29 : 31;
186
186
  break;
187
187
 
188
188
  case 10:
@@ -3,5 +3,6 @@ import { IFlow } from "../StrategyTypes";
3
3
  export default function ask_mobile_number(): AppThunk;
4
4
  export declare function submitMSISDNAction(internationalMSISDN: string): AppThunk;
5
5
  export declare const pin_mo_ask_mobile_number: (flowObj: IFlow, msisdn: string) => AppThunk;
6
+ export declare const pin_combo_ask_mobile_number: (flowObj: IFlow, msisdn: string) => AppThunk;
6
7
  export declare const pin_mo_redir_ask_mobile_number: (flowObj: IFlow, msisdn: string) => AppThunk;
7
8
  export declare const one_click_mo_pin_detect_operator_by_ip_or_msisdn: (flowObj: IFlow, msisdn: string) => AppThunk;
@@ -46,7 +46,7 @@ Object.defineProperty(exports, "__esModule", {
46
46
  value: true
47
47
  });
48
48
  exports.default = ask_mobile_number;
49
- exports.pin_mo_redir_ask_mobile_number = exports.pin_mo_ask_mobile_number = exports.one_click_mo_pin_detect_operator_by_ip_or_msisdn = void 0;
49
+ exports.pin_mo_redir_ask_mobile_number = exports.pin_mo_ask_mobile_number = exports.pin_combo_ask_mobile_number = exports.one_click_mo_pin_detect_operator_by_ip_or_msisdn = void 0;
50
50
  exports.submitMSISDNAction = submitMSISDNAction;
51
51
 
52
52
  require("core-js/modules/es.object.to-string.js");
@@ -126,6 +126,7 @@ function submitMSISDNAction(internationalMSISDN) {
126
126
 
127
127
  case 5:
128
128
  flowObj = _context.sent;
129
+ console.log("flowObj", flowObj);
129
130
  dispatch({
130
131
  type: "IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
131
132
  payload: {
@@ -139,21 +140,24 @@ function submitMSISDNAction(internationalMSISDN) {
139
140
  }
140
141
  });
141
142
  _context.t0 = strategy;
142
- _context.next = _context.t0 === "pin-mo-redir-ask-mobile-number" ? 10 : _context.t0 === "pin-mo-ask-mobile-number" ? 11 : 12;
143
+ _context.next = _context.t0 === "pin-mo-redir-ask-mobile-number" ? 11 : _context.t0 === "pin-mo-ask-mobile-number" ? 12 : _context.t0 === "pin-combo-ask-mobile-number" ? 13 : 14;
143
144
  break;
144
145
 
145
- case 10:
146
+ case 11:
146
147
  return _context.abrupt("return", dispatch(pin_mo_redir_ask_mobile_number(flowObj, internationalMSISDN)));
147
148
 
148
- case 11:
149
+ case 12:
149
150
  return _context.abrupt("return", dispatch(pin_mo_ask_mobile_number(flowObj, internationalMSISDN)));
150
151
 
151
- case 12:
152
- _context.next = 19;
153
- break;
152
+ case 13:
153
+ return _context.abrupt("return", dispatch(pin_combo_ask_mobile_number(flowObj, internationalMSISDN)));
154
154
 
155
155
  case 14:
156
- _context.prev = 14;
156
+ _context.next = 21;
157
+ break;
158
+
159
+ case 16:
160
+ _context.prev = 16;
157
161
  _context.t1 = _context["catch"](0);
158
162
  console.warn(_context.t1);
159
163
  errorType = "SEAlreadySubscribed" === _context.t1.type ? "AlreadySubscribed" : "SEInvalidMSISDN" == _context.t1.type ? "InvalidMSISDN" : "UnknownError";
@@ -168,12 +172,12 @@ function submitMSISDNAction(internationalMSISDN) {
168
172
  }
169
173
  });
170
174
 
171
- case 19:
175
+ case 21:
172
176
  case "end":
173
177
  return _context.stop();
174
178
  }
175
179
  }
176
- }, _callee, null, [[0, 14]]);
180
+ }, _callee, null, [[0, 16]]);
177
181
  }));
178
182
 
179
183
  return function (_x) {
@@ -254,6 +258,60 @@ var pin_mo_ask_mobile_number = function pin_mo_ask_mobile_number(flowObj, msisdn
254
258
 
255
259
  exports.pin_mo_ask_mobile_number = pin_mo_ask_mobile_number;
256
260
 
261
+ var pin_combo_ask_mobile_number = function pin_combo_ask_mobile_number(flowObj, msisdn) {
262
+ return function (dispatch) {
263
+ switch (flowObj.flow) {
264
+ case "pin":
265
+ _.tracker.sendOptInFlowEvent("Pin");
266
+
267
+ dispatch({
268
+ type: "IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
269
+ payload: {
270
+ type: "IDENTIFY_FLOW_BY_MSISDN",
271
+ result: RDS.Loading(),
272
+ nextData: _objectSpread({
273
+ nextAction: "submitMSISDNAction"
274
+ }, flowObj.operator && {
275
+ operator: flowObj.operator
276
+ })
277
+ }
278
+ });
279
+ return dispatch({
280
+ type: "IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
281
+ payload: {
282
+ type: "PIN",
283
+ result: _objectSpread({
284
+ nextAction: "submitMSISDNAction",
285
+ config: flowObj.flowConfig,
286
+ msisdn: msisdn
287
+ }, flowObj.operator && {
288
+ operator: flowObj.operator
289
+ })
290
+ }
291
+ });
292
+
293
+ default:
294
+ _.tracker.sendOptInFlowEvent("Pin");
295
+
296
+ return dispatch({
297
+ type: "IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
298
+ payload: {
299
+ type: "PIN",
300
+ result: _objectSpread({
301
+ nextAction: "submitMSISDNAction",
302
+ config: flowObj.flowConfig,
303
+ rockman_id: flowObj.rockman_id
304
+ }, flowObj.operator && {
305
+ operator: flowObj.operator
306
+ })
307
+ }
308
+ });
309
+ }
310
+ };
311
+ };
312
+
313
+ exports.pin_combo_ask_mobile_number = pin_combo_ask_mobile_number;
314
+
257
315
  var pin_mo_redir_ask_mobile_number = function pin_mo_redir_ask_mobile_number(flowObj, msisdn) {
258
316
  return function (dispatch) {
259
317
  switch (flowObj.flow) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -42,6 +42,8 @@ export const getRedirectUrl = async(window:Window, maybeConfig: IConfig, extraPa
42
42
  throw "javascript: console.error('SSR'); void 6"
43
43
  } else {
44
44
  const { host, country, slug, queryString, device, apiAction} = maybeConfig
45
+ const customDomain = slug === "evina-test-handle" ? "dev.ng.eu.ngrok.io" : "de-ads.tallymans.com";
46
+
45
47
  const bupperizeCountry = (c:string) => c == 'gb' ? 'uk' : c;
46
48
  const offer = window.pac_analytics.visitor.offer
47
49
  const s = window.location.search.substr(1)
@@ -73,7 +75,7 @@ export const getRedirectUrl = async(window:Window, maybeConfig: IConfig, extraPa
73
75
  return {redirect_url:result.redirectUrlWithReplacedUniqid}
74
76
  }
75
77
  }else{
76
- if(country.toLowerCase() === "za"){
78
+ if(country.toLowerCase() === "za" && slug !== 'evina-test-handle'){
77
79
  try{
78
80
  const mcpShieldResult: IMcpShieldResult = await window.tallymanApi.mcpShield(host, country, slug, device, offer, rockmanId)
79
81
  if(false == mcpShieldResult.success){
@@ -144,7 +146,7 @@ export const getRedirectUrl = async(window:Window, maybeConfig: IConfig, extraPa
144
146
  console.warn(err)
145
147
  }
146
148
  }
147
- const url = `https://de.tallymans.com/tallyman/v1/?action=redirect&country=${bupperizeCountry(country)}&slug=${slug}&device=${"smart"}&offerId=${offer}&rockman_id=${rockmanId}${extraParamsQs}&${search}`
149
+ const url = `https://${customDomain}/tallyman/v1/?action=redirect&country=${bupperizeCountry(country)}&slug=${slug}&device=${"smart"}&offerId=${offer}&rockman_id=${rockmanId}${extraParamsQs}&${search}`
148
150
  const result = await fetch(url).then(x => x.json())
149
151
 
150
152
  if(false === result.success){
@@ -85,7 +85,8 @@ export type IStrategyNames =
85
85
  | "he-pin-one-click-ask-operator"
86
86
  | "click2sms-one-click-ask-operator"
87
87
  | "pin-mo-detect-operator-by-ip"
88
- | "he-mo-redir-one-click-header-enrichment";
88
+ | "he-mo-redir-one-click-header-enrichment"
89
+ | "pin-combo-ask-mobile-number";
89
90
 
90
91
  export interface IHash {
91
92
  [key: string]: string
@@ -111,6 +111,7 @@ export function identifyStrategy():AppThunk {
111
111
  return dispatch(ask_operator());
112
112
  case "pin-mo-redir-ask-mobile-number":
113
113
  case "pin-mo-ask-mobile-number":
114
+ case "pin-combo-ask-mobile-number":
114
115
  return dispatch(ask_mobile_number());
115
116
  case "pin-one-click-detect-operator-by-ip":
116
117
  case "one-click-mo-pin-detect-operator-by-ip-or-msisdn":
@@ -50,6 +50,8 @@ export function submitMSISDNAction(internationalMSISDN:string):AppThunk{
50
50
  })
51
51
  const { strategy } = getConfig();
52
52
  const flowObj = await determineFlowByMsidn(internationalMSISDN);
53
+
54
+ console.log("flowObj", flowObj)
53
55
  dispatch({
54
56
  type:"IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
55
57
  payload:{
@@ -66,6 +68,8 @@ export function submitMSISDNAction(internationalMSISDN:string):AppThunk{
66
68
  return dispatch(pin_mo_redir_ask_mobile_number(flowObj, internationalMSISDN))
67
69
  case "pin-mo-ask-mobile-number":
68
70
  return dispatch(pin_mo_ask_mobile_number(flowObj, internationalMSISDN))
71
+ case "pin-combo-ask-mobile-number":
72
+ return dispatch(pin_combo_ask_mobile_number(flowObj, internationalMSISDN))
69
73
  }
70
74
  } catch (ex) {
71
75
  console.warn(ex)
@@ -153,6 +157,52 @@ export const pin_mo_ask_mobile_number = (flowObj:IFlow, msisdn:string):AppThunk=
153
157
  }
154
158
  }
155
159
 
160
+ export const pin_combo_ask_mobile_number = (flowObj:IFlow, msisdn:string):AppThunk=>{
161
+ return(dispatch)=>{
162
+ switch (flowObj.flow) {
163
+ case "pin":
164
+ tracker.sendOptInFlowEvent("Pin")
165
+ dispatch({
166
+ type:"IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
167
+ payload:{
168
+ type: "IDENTIFY_FLOW_BY_MSISDN",
169
+ result: RDS.Loading(),
170
+ nextData:{
171
+ nextAction:"submitMSISDNAction",
172
+ ...(flowObj.operator && {operator:flowObj.operator})
173
+ }
174
+ }
175
+ })
176
+ return dispatch({
177
+ type:"IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
178
+ payload:{
179
+ type:"PIN",
180
+ result: {
181
+ nextAction:"submitMSISDNAction",
182
+ config:flowObj.flowConfig,
183
+ msisdn,
184
+ ...(flowObj.operator && {operator:flowObj.operator})
185
+ }
186
+ }
187
+ });
188
+ default:
189
+ tracker.sendOptInFlowEvent("Pin")
190
+ return dispatch({
191
+ type:"IDENTIFY_FLOW_BY_MSISDN_SUBMIT",
192
+ payload:{
193
+ type:"PIN",
194
+ result: {
195
+ nextAction:"submitMSISDNAction",
196
+ config:flowObj.flowConfig,
197
+ rockman_id:flowObj.rockman_id,
198
+ ...(flowObj.operator && {operator:flowObj.operator})
199
+ }
200
+ }
201
+ });
202
+ }
203
+ }
204
+ }
205
+
156
206
 
157
207
  export const pin_mo_redir_ask_mobile_number = (flowObj:IFlow, msisdn:string):AppThunk=>{
158
208
  return(dispatch)=>{