ouisys-engine 3.0.2 → 3.0.6

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 (198) hide show
  1. package/.babelrc +4 -8
  2. package/.eslintrc.js +1 -1
  3. package/.nvmrc +1 -1
  4. package/.prettierignore +2 -1
  5. package/README.md +2 -4
  6. package/dist/api/index.d.ts +5 -5
  7. package/dist/api/index.js +76 -76
  8. package/dist/common-types/AppThunk.d.ts +11 -12
  9. package/dist/common-types/IOptInFlowName.d.ts +1 -1
  10. package/dist/common-types/ITracker.js +1 -2
  11. package/dist/common-types/RemoteDataState.d.ts +4 -4
  12. package/dist/common-types/RemoteDataState.js +17 -17
  13. package/dist/flows/click2smsFlow.d.ts +2 -2
  14. package/dist/flows/moFlow.d.ts +2 -2
  15. package/dist/flows/moRedirFlow.d.ts +2 -2
  16. package/dist/flows/oneClickFlow.d.ts +2 -2
  17. package/dist/flows/pinFlow.d.ts +2 -2
  18. package/dist/flows/pinFlow.js +2 -0
  19. package/dist/flows/strategy.d.ts +8 -8
  20. package/dist/flows/ussdFlow.d.ts +2 -2
  21. package/dist/ips/tryGetIPRangeName.d.ts +1 -1
  22. package/dist/ips/tryGetIPRangeName.js +7 -5
  23. package/dist/jest.config.js +1 -1
  24. package/dist/pacman/index.d.ts +2 -2
  25. package/dist/pacman/index.js +41 -41
  26. package/dist/pacman/queryString.js +11 -9
  27. package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +19 -19
  28. package/dist/reducers/click2smsFlow/IClick2smsConstants.d.ts +1 -1
  29. package/dist/reducers/click2smsFlow/index.d.ts +2 -2
  30. package/dist/reducers/click2smsFlow/index.js +24 -24
  31. package/dist/reducers/click2smsFlow/utils.d.ts +1 -1
  32. package/dist/reducers/click2smsFlow/utils.js +30 -30
  33. package/dist/reducers/moFlow/IMoConstants.d.ts +1 -1
  34. package/dist/reducers/moFlow/MoTypes.d.ts +13 -13
  35. package/dist/reducers/moFlow/index.d.ts +3 -3
  36. package/dist/reducers/moFlow/index.js +27 -27
  37. package/dist/reducers/moFlow/utils.d.ts +1 -2
  38. package/dist/reducers/moFlow/utils.js +28 -26
  39. package/dist/reducers/moRedirFlow/IMoRedirConstants.d.ts +1 -1
  40. package/dist/reducers/moRedirFlow/MoRedirTypes.d.ts +13 -13
  41. package/dist/reducers/moRedirFlow/index.d.ts +3 -3
  42. package/dist/reducers/moRedirFlow/index.js +27 -27
  43. package/dist/reducers/moRedirFlow/utils.d.ts +1 -1
  44. package/dist/reducers/moRedirFlow/utils.js +17 -17
  45. package/dist/reducers/oneClickFlow/IOneClickConstants.d.ts +1 -1
  46. package/dist/reducers/oneClickFlow/OneClickTypes.d.ts +10 -10
  47. package/dist/reducers/oneClickFlow/index.d.ts +3 -3
  48. package/dist/reducers/oneClickFlow/index.js +75 -68
  49. package/dist/reducers/oneClickFlow/utils.d.ts +2 -2
  50. package/dist/reducers/oneClickFlow/utils.js +70 -69
  51. package/dist/reducers/pinFlow/IPinConstants.d.ts +1 -1
  52. package/dist/reducers/pinFlow/PinTypes.d.ts +23 -23
  53. package/dist/reducers/pinFlow/index.d.ts +3 -3
  54. package/dist/reducers/pinFlow/index.js +76 -76
  55. package/dist/reducers/pinFlow/utils.d.ts +1 -1
  56. package/dist/reducers/pinFlow/utils.js +61 -65
  57. package/dist/reducers/strategy/IStategyActionContants.d.ts +1 -1
  58. package/dist/reducers/strategy/StrategyTypes.d.ts +56 -56
  59. package/dist/reducers/strategy/index.d.ts +2 -2
  60. package/dist/reducers/strategy/index.js +99 -99
  61. package/dist/reducers/strategy/strategies/ask_mobile_number.d.ts +3 -2
  62. package/dist/reducers/strategy/strategies/ask_mobile_number.js +132 -74
  63. package/dist/reducers/strategy/strategies/ask_operator.d.ts +2 -2
  64. package/dist/reducers/strategy/strategies/ask_operator.js +64 -68
  65. package/dist/reducers/strategy/strategies/detect_operator_by_ip.d.ts +2 -2
  66. package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +97 -97
  67. package/dist/reducers/strategy/strategies/header_enrichment.d.ts +2 -2
  68. package/dist/reducers/strategy/strategies/header_enrichment.js +116 -120
  69. package/dist/reducers/strategy/utils.d.ts +3 -3
  70. package/dist/reducers/strategy/utils.js +115 -111
  71. package/dist/reducers/ussdFlow/IUssdConstants.d.ts +1 -1
  72. package/dist/reducers/ussdFlow/UssdTypes.d.ts +13 -13
  73. package/dist/reducers/ussdFlow/index.d.ts +3 -3
  74. package/dist/reducers/ussdFlow/index.js +27 -27
  75. package/dist/reducers/ussdFlow/utils.d.ts +1 -2
  76. package/dist/reducers/ussdFlow/utils.js +19 -17
  77. package/dist/store/index.d.ts +8 -8
  78. package/dist/store/index.js +87 -83
  79. package/dist/store/reducers.d.ts +7 -7
  80. package/dist/store/reducers.js +4 -4
  81. package/dist/utilities/handleSubmitNumber.d.ts +7 -3
  82. package/dist/utilities/handleSubmitNumber.js +15 -18
  83. package/dist/utilities/index.d.ts +1 -1
  84. package/dist/utilities/index.js +13 -11
  85. package/dist/utilities/loadScriptInnerHtml.js +0 -1
  86. package/index.html +21 -28
  87. package/package.json +23 -15
  88. package/setupJest.js +1 -1
  89. package/tsconfig.json +2 -2
  90. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  91. package/.idea/modules.xml +0 -8
  92. package/.idea/ouisys-engine.iml +0 -12
  93. package/.idea/vcs.xml +0 -6
  94. package/.vscode/settings.json +0 -6
  95. package/dist/api/click2sms.js +0 -357
  96. package/dist/api/mo.js +0 -274
  97. package/dist/api/moRedir.js +0 -186
  98. package/dist/api/oneClick.js +0 -366
  99. package/dist/api/pin.js +0 -493
  100. package/dist/api/strategies.js +0 -704
  101. package/dist/api/ussd.js +0 -1
  102. package/dist/app/store.js +0 -35
  103. package/dist/features/strategies/categories/askMobileNumber.js +0 -395
  104. package/dist/features/strategies/categories/askOperator.js +0 -311
  105. package/dist/features/strategies/categories/detectOperatorByIp.js +0 -606
  106. package/dist/features/strategies/categories/headerEnrichment.js +0 -670
  107. package/dist/features/strategies/categories/typings/click2smsSliceTypes.js +0 -12
  108. package/dist/features/strategies/categories/typings/identifySliceTypes.js +0 -22
  109. package/dist/features/strategies/categories/typings/moFlowSliceTypes.js +0 -22
  110. package/dist/features/strategies/categories/typings/moRedirFlowSliceTypes.js +0 -21
  111. package/dist/features/strategies/categories/typings/oneClickSliceTypes.js +0 -13
  112. package/dist/features/strategies/categories/typings/pinFlowSliceTypes.js +0 -13
  113. package/dist/features/strategies/click2smsFlowSlice.js +0 -172
  114. package/dist/features/strategies/identifySlice.js +0 -455
  115. package/dist/features/strategies/moFlowSlice.js +0 -196
  116. package/dist/features/strategies/moRedirFlowSlice.js +0 -190
  117. package/dist/features/strategies/oneClickFlowSlice.js +0 -277
  118. package/dist/features/strategies/pinFlowSlice.js +0 -313
  119. package/dist/features/strategies/ussdFlowSlice.js +0 -1
  120. package/dist/flows/tpayHeFlow.d.ts +0 -7
  121. package/dist/flows/tpayHeFlow.js +0 -23
  122. package/dist/mockServer/browser.js +0 -48
  123. package/dist/mockServer/handlers.js +0 -22
  124. package/dist/mockServer/server.js +0 -48
  125. package/dist/reducers/tpayHeFlow/ITpayHeConstants.d.ts +0 -2
  126. package/dist/reducers/tpayHeFlow/ITpayHeConstants.js +0 -1
  127. package/dist/reducers/tpayHeFlow/TpayHeTypes.d.ts +0 -114
  128. package/dist/reducers/tpayHeFlow/TpayHeTypes.js +0 -1
  129. package/dist/reducers/tpayHeFlow/index.d.ts +0 -7
  130. package/dist/reducers/tpayHeFlow/index.js +0 -331
  131. package/dist/reducers/tpayHeFlow/utils.d.ts +0 -20
  132. package/dist/reducers/tpayHeFlow/utils.js +0 -510
  133. package/dist/test/setup.js +0 -24
  134. package/dist/test/test-utils.js +0 -51
  135. package/mockData/config.json +0 -28
  136. package/prettier.config.js +0 -7
  137. package/src/@types/react-tracker.d.ts +0 -16
  138. package/src/@types/redux-cli-logger.d.ts +0 -1
  139. package/src/@types/tiny-async-pool.d.ts +0 -3
  140. package/src/@types/window.d.ts +0 -74
  141. package/src/api/index.ts +0 -225
  142. package/src/common-types/AppThunk.ts +0 -19
  143. package/src/common-types/Either.ts +0 -3
  144. package/src/common-types/IError.ts +0 -5
  145. package/src/common-types/IOptInFlowName.ts +0 -1
  146. package/src/common-types/ITracker.ts +0 -10
  147. package/src/common-types/IVisitor.ts +0 -16
  148. package/src/common-types/RemoteDataState.ts +0 -88
  149. package/src/flows/click2smsFlow.ts +0 -18
  150. package/src/flows/moFlow.ts +0 -20
  151. package/src/flows/moRedirFlow.ts +0 -20
  152. package/src/flows/oneClickFlow.ts +0 -20
  153. package/src/flows/pinFlow.ts +0 -25
  154. package/src/flows/strategy.ts +0 -51
  155. package/src/flows/ussdFlow.ts +0 -20
  156. package/src/index.ts +0 -3
  157. package/src/ips/tryGetIPRangeName.ts +0 -22
  158. package/src/jest.config.js +0 -194
  159. package/src/pacman/index.ts +0 -71
  160. package/src/pacman/queryString.ts +0 -24
  161. package/src/reducers/click2smsFlow/Click2smsTypes.ts +0 -93
  162. package/src/reducers/click2smsFlow/IClick2smsConstants.ts +0 -4
  163. package/src/reducers/click2smsFlow/index.ts +0 -105
  164. package/src/reducers/click2smsFlow/utils.ts +0 -126
  165. package/src/reducers/moFlow/IMoConstants.ts +0 -7
  166. package/src/reducers/moFlow/MoTypes.ts +0 -125
  167. package/src/reducers/moFlow/index.ts +0 -150
  168. package/src/reducers/moFlow/utils.ts +0 -135
  169. package/src/reducers/moRedirFlow/IMoRedirConstants.ts +0 -7
  170. package/src/reducers/moRedirFlow/MoRedirTypes.ts +0 -99
  171. package/src/reducers/moRedirFlow/index.ts +0 -137
  172. package/src/reducers/moRedirFlow/utils.ts +0 -78
  173. package/src/reducers/oneClickFlow/IOneClickConstants.ts +0 -3
  174. package/src/reducers/oneClickFlow/OneClickTypes.ts +0 -108
  175. package/src/reducers/oneClickFlow/index.ts +0 -268
  176. package/src/reducers/oneClickFlow/utils.ts +0 -217
  177. package/src/reducers/pinFlow/IPinConstants.ts +0 -9
  178. package/src/reducers/pinFlow/PinTypes.ts +0 -190
  179. package/src/reducers/pinFlow/index.ts +0 -331
  180. package/src/reducers/pinFlow/utils.ts +0 -232
  181. package/src/reducers/strategy/IStategyActionContants.ts +0 -17
  182. package/src/reducers/strategy/StrategyTypes.ts +0 -375
  183. package/src/reducers/strategy/index.ts +0 -321
  184. package/src/reducers/strategy/strategies/ask_mobile_number.ts +0 -316
  185. package/src/reducers/strategy/strategies/ask_operator.ts +0 -195
  186. package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -414
  187. package/src/reducers/strategy/strategies/header_enrichment.ts +0 -489
  188. package/src/reducers/strategy/utils.ts +0 -357
  189. package/src/reducers/ussdFlow/IUssdConstants.ts +0 -7
  190. package/src/reducers/ussdFlow/UssdTypes.ts +0 -112
  191. package/src/reducers/ussdFlow/index.ts +0 -146
  192. package/src/reducers/ussdFlow/utils.ts +0 -88
  193. package/src/store/index.ts +0 -150
  194. package/src/store/reducers.ts +0 -37
  195. package/src/utilities/handleSubmitNumber.ts +0 -65
  196. package/src/utilities/index.ts +0 -114
  197. package/src/utilities/loadScriptInnerHtml.ts +0 -14
  198. package/src/utilities/loadScriptSrc.ts +0 -26
@@ -1,311 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.symbol");
4
-
5
- require("core-js/modules/es.array.filter");
6
-
7
- require("core-js/modules/es.object.get-own-property-descriptor");
8
-
9
- require("core-js/modules/es.object.get-own-property-descriptors");
10
-
11
- require("core-js/modules/es.object.keys");
12
-
13
- require("core-js/modules/es.object.to-string");
14
-
15
- require("core-js/modules/es.promise");
16
-
17
- require("core-js/modules/web.dom-collections.for-each");
18
-
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports.selectOperatorAction = exports.pin = exports.hePinOneClickAskOperator = exports.askOperator = void 0;
23
-
24
- require("regenerator-runtime/runtime");
25
-
26
- var _toolkit = require("@reduxjs/toolkit");
27
-
28
- var _strategies = require("../../../api/strategies");
29
-
30
- var _identifySlice = require("../identifySlice");
31
-
32
- var _identifySliceTypes = require("./typings/identifySliceTypes");
33
-
34
- 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); } }
35
-
36
- 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); }); }; }
37
-
38
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
39
-
40
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
41
-
42
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43
-
44
- var oneClick = function oneClick(_ref) {
45
- var flowObj = _ref.flowObj;
46
-
47
- _identifySlice.tracker.sendOptInFlowEvent('3G click');
48
-
49
- return {
50
- type: _identifySliceTypes.StrategyStates.ONE_CLICK,
51
- result: {},
52
- nextData: {
53
- config: flowObj.flowConfig,
54
- operator: flowObj.operator
55
- }
56
- };
57
- };
58
-
59
- var pin = function pin(_ref2) {
60
- var flowObj = _ref2.flowObj,
61
- msisdn = _ref2.msisdn,
62
- isHeaderEnrichmentSuccess = _ref2.isHeaderEnrichmentSuccess;
63
-
64
- if (isHeaderEnrichmentSuccess !== true) {
65
- _identifySlice.tracker.sendOptInFlowEvent('Pin');
66
- } else {
67
- _identifySlice.tracker.sendOptInFlowEvent('Hybrid Pin');
68
- }
69
-
70
- return {
71
- type: _identifySliceTypes.StrategyStates.PIN,
72
- result: {},
73
- nextData: {
74
- config: flowObj.flowConfig,
75
- operator: flowObj.operator,
76
- msisdn: msisdn,
77
- isHeaderEnrichmentSuccess: isHeaderEnrichmentSuccess
78
- }
79
- };
80
- };
81
-
82
- exports.pin = pin;
83
-
84
- var moRedir = function moRedir(_ref3) {
85
- var flowObj = _ref3.flowObj;
86
-
87
- _identifySlice.tracker.sendOptInFlowEvent('Redirect');
88
-
89
- return {
90
- type: _identifySliceTypes.StrategyStates.MO_REDIR,
91
- result: {},
92
- nextData: {
93
- config: flowObj.flowConfig,
94
- operator: flowObj.operator
95
- }
96
- };
97
- };
98
-
99
- var click2sms = function click2sms(_ref4) {
100
- var flowObj = _ref4.flowObj;
101
-
102
- _identifySlice.tracker.sendOptInFlowEvent('Click to sms');
103
-
104
- return {
105
- type: _identifySliceTypes.StrategyStates.CLICK2SMS,
106
- result: {},
107
- nextData: {
108
- config: _objectSpread({
109
- operators: [flowObj.operator]
110
- }, flowObj.flowConfig),
111
- operator: flowObj.operator
112
- }
113
- };
114
- };
115
-
116
- var mo = function mo(_ref5) {
117
- var flowObj = _ref5.flowObj;
118
-
119
- _identifySlice.tracker.sendOptInFlowEvent('Msisdn to sms');
120
-
121
- return {
122
- type: _identifySliceTypes.StrategyStates.MO,
123
- result: {},
124
- nextData: {
125
- config: flowObj.flowConfig,
126
- operator: flowObj.operator
127
- }
128
- };
129
- };
130
-
131
- var hePinOneClickAskOperator = /*#__PURE__*/function () {
132
- var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref6) {
133
- var configs, flowObj, extraParams, strategyConfigs, defaultFlow, heResult, msisdn, operator, isHeaderEnrichmentSuccess;
134
- return regeneratorRuntime.wrap(function _callee$(_context) {
135
- while (1) {
136
- switch (_context.prev = _context.next) {
137
- case 0:
138
- configs = _ref6.configs, flowObj = _ref6.flowObj, extraParams = _ref6.extraParams;
139
- strategyConfigs = configs.strategyConfigs;
140
- defaultFlow = strategyConfigs.default;
141
- _context.prev = 3;
142
- _context.next = 6;
143
- return (0, _strategies.identifyUser)({
144
- configs: configs,
145
- extraParams: extraParams
146
- });
147
-
148
- case 6:
149
- heResult = _context.sent;
150
- msisdn = heResult.msisdn;
151
- operator = heResult.operator;
152
- isHeaderEnrichmentSuccess = !!msisdn;
153
- return _context.abrupt("return", pin({
154
- flowObj: flowObj,
155
- msisdn: msisdn,
156
- operator: operator,
157
- isHeaderEnrichmentSuccess: isHeaderEnrichmentSuccess
158
- }));
159
-
160
- case 13:
161
- _context.prev = 13;
162
- _context.t0 = _context["catch"](3);
163
- console.warn(_context.t0);
164
- return _context.abrupt("return", pin({
165
- flowObj: defaultFlow
166
- }));
167
-
168
- case 17:
169
- case "end":
170
- return _context.stop();
171
- }
172
- }
173
- }, _callee, null, [[3, 13]]);
174
- }));
175
-
176
- return function hePinOneClickAskOperator(_x) {
177
- return _ref7.apply(this, arguments);
178
- };
179
- }();
180
-
181
- exports.hePinOneClickAskOperator = hePinOneClickAskOperator;
182
-
183
- var askOperator = /*#__PURE__*/function () {
184
- var _ref9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(_ref8) {
185
- var configs, operators;
186
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
187
- while (1) {
188
- switch (_context2.prev = _context2.next) {
189
- case 0:
190
- configs = _ref8.configs;
191
- operators = (0, _strategies.getOperators)({
192
- configs: configs
193
- });
194
- return _context2.abrupt("return", {
195
- type: _identifySliceTypes.StrategyStates.IDENTIFY_FLOW_BY_OPERATOR_SELECT,
196
- result: {
197
- operators: operators
198
- }
199
- });
200
-
201
- case 3:
202
- case "end":
203
- return _context2.stop();
204
- }
205
- }
206
- }, _callee2);
207
- }));
208
-
209
- return function askOperator(_x2) {
210
- return _ref9.apply(this, arguments);
211
- };
212
- }();
213
-
214
- exports.askOperator = askOperator;
215
- var selectOperatorAction = (0, _toolkit.createAsyncThunk)('strategy/selectOperatorAction',
216
- /*#__PURE__*/
217
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
218
- // @ts-ignore
219
- function () {
220
- var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(payload, thunkApi) {
221
- var configs, strategy, strategyConfigs, operator, defaultFlow, flowObj;
222
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
223
- while (1) {
224
- switch (_context3.prev = _context3.next) {
225
- case 0:
226
- configs = payload.configs || (0, _strategies.getConfig)();
227
- strategy = configs.strategy, strategyConfigs = configs.strategyConfigs;
228
- operator = payload.operator;
229
- defaultFlow = strategyConfigs.default;
230
- _context3.prev = 4;
231
- flowObj = (0, _strategies.determineFlowByOperator)({
232
- configs: configs,
233
- operator: operator
234
- });
235
- _context3.t0 = flowObj.flow;
236
- _context3.next = _context3.t0 === 'pin' ? 9 : _context3.t0 === 'mo' ? 14 : _context3.t0 === 'moRedir' ? 15 : _context3.t0 === 'click2sms' ? 16 : _context3.t0 === 'oneClick' ? 17 : 18;
237
- break;
238
-
239
- case 9:
240
- if (!(strategy === 'he-pin-one-click-ask-operator')) {
241
- _context3.next = 13;
242
- break;
243
- }
244
-
245
- _context3.next = 12;
246
- return hePinOneClickAskOperator({
247
- configs: configs,
248
- flowObj: flowObj
249
- });
250
-
251
- case 12:
252
- return _context3.abrupt("return", _context3.sent);
253
-
254
- case 13:
255
- return _context3.abrupt("return", pin({
256
- flowObj: flowObj
257
- }));
258
-
259
- case 14:
260
- return _context3.abrupt("return", mo({
261
- flowObj: flowObj
262
- }));
263
-
264
- case 15:
265
- return _context3.abrupt("return", moRedir({
266
- flowObj: flowObj
267
- }));
268
-
269
- case 16:
270
- return _context3.abrupt("return", click2sms({
271
- flowObj: flowObj
272
- }));
273
-
274
- case 17:
275
- return _context3.abrupt("return", oneClick({
276
- flowObj: flowObj
277
- }));
278
-
279
- case 18:
280
- console.error('selectOperatorAction', 'Strategy not supported');
281
- return _context3.abrupt("return", pin({
282
- flowObj: _objectSpread(_objectSpread({}, defaultFlow), {}, {
283
- operator: flowObj.operator
284
- })
285
- }));
286
-
287
- case 20:
288
- _context3.next = 26;
289
- break;
290
-
291
- case 22:
292
- _context3.prev = 22;
293
- _context3.t1 = _context3["catch"](4);
294
- console.error('identifySuselectOperatorActionbmitMSISDNAction', JSON.stringify(_context3.t1));
295
- return _context3.abrupt("return", pin({
296
- flowObj: _objectSpread({}, defaultFlow)
297
- }));
298
-
299
- case 26:
300
- case "end":
301
- return _context3.stop();
302
- }
303
- }
304
- }, _callee3, null, [[4, 22]]);
305
- }));
306
-
307
- return function (_x3, _x4) {
308
- return _ref10.apply(this, arguments);
309
- };
310
- }());
311
- exports.selectOperatorAction = selectOperatorAction;