ouisys-engine 2.1.68 → 2.1.69
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.
|
@@ -59,6 +59,8 @@ var _utilities = require("../../utilities");
|
|
|
59
59
|
|
|
60
60
|
var _loadScriptInnerHtml = _interopRequireDefault(require("../../utilities/loadScriptInnerHtml"));
|
|
61
61
|
|
|
62
|
+
var _utils = require("../strategy/utils");
|
|
63
|
+
|
|
62
64
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
63
65
|
|
|
64
66
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -171,7 +173,12 @@ function _submitMSISDNWithConfig() {
|
|
|
171
173
|
|
|
172
174
|
var startEvinaAgency = function startEvinaAgency(config) {
|
|
173
175
|
try {
|
|
174
|
-
var
|
|
176
|
+
var configs = (0, _utils.getConfig)();
|
|
177
|
+
var defaultFlowConfig = configs.strategyConfigs.default;
|
|
178
|
+
|
|
179
|
+
var _ref = !!config ? config : defaultFlowConfig.flowConfig,
|
|
180
|
+
host = _ref.host;
|
|
181
|
+
|
|
175
182
|
var newHost = (0, _utilities.getHost)({
|
|
176
183
|
host: host
|
|
177
184
|
});
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import * as RDS from "../../common-types/RemoteDataState";
|
|
|
5
5
|
import loadScriptSrc from "../../utilities/loadScriptSrc";
|
|
6
6
|
import { getHost, isDMBCheck } from "../../utilities";
|
|
7
7
|
import loadScriptInnerHtml from "../../utilities/loadScriptInnerHtml";
|
|
8
|
+
import { getConfig } from "../strategy/utils";
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
export default async function submitMSISDN(window: Window, maybeConfig: IConfig, internationalMSISDN: string, extraParams?: {[key: string]: string}): Promise<string> {
|
|
@@ -38,7 +39,10 @@ export async function submitMSISDNWithConfig(window: Window, config: IConfig, in
|
|
|
38
39
|
|
|
39
40
|
export const startEvinaAgency = (config: IConfig)=>{
|
|
40
41
|
try{
|
|
41
|
-
const
|
|
42
|
+
const configs = getConfig();
|
|
43
|
+
const defaultFlowConfig = configs.strategyConfigs.default;
|
|
44
|
+
|
|
45
|
+
const { host } = !!config ? config : defaultFlowConfig.flowConfig;
|
|
42
46
|
const newHost = getHost({host});
|
|
43
47
|
const rockmanId = window.pac_analytics.visitor.rockmanId;
|
|
44
48
|
const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
|