ouisys-engine 2.1.67 → 2.1.68
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.
|
@@ -170,24 +170,28 @@ function _submitMSISDNWithConfig() {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
var startEvinaAgency = function startEvinaAgency(config) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
173
|
+
try {
|
|
174
|
+
var host = config.host;
|
|
175
|
+
var newHost = (0, _utilities.getHost)({
|
|
176
|
+
host: host
|
|
177
|
+
});
|
|
178
|
+
var rockmanId = window.pac_analytics.visitor.rockmanId;
|
|
179
|
+
var url = "https://".concat(newHost, "/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=").concat(rockmanId);
|
|
180
|
+
fetch(url).then(function (x) {
|
|
181
|
+
return x.text();
|
|
182
|
+
}).then(function (txt) {
|
|
183
|
+
return (0, _loadScriptInnerHtml.default)(txt);
|
|
184
|
+
}).then(function () {
|
|
185
|
+
console.log('Ev ready');
|
|
186
|
+
var event = new Event('DCBProtectRun');
|
|
187
|
+
|
|
188
|
+
if (typeof window != "undefined") {
|
|
189
|
+
document.dispatchEvent(event);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
} catch (err) {
|
|
193
|
+
console.error("startEvinaAgency ERROR", err);
|
|
194
|
+
}
|
|
191
195
|
};
|
|
192
196
|
|
|
193
197
|
exports.startEvinaAgency = startEvinaAgency;
|
package/package.json
CHANGED
|
@@ -37,18 +37,23 @@ export async function submitMSISDNWithConfig(window: Window, config: IConfig, in
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export const startEvinaAgency = (config: IConfig)=>{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
try{
|
|
41
|
+
const { host } = config
|
|
42
|
+
const newHost = getHost({host});
|
|
43
|
+
const rockmanId = window.pac_analytics.visitor.rockmanId;
|
|
44
|
+
const url = `https://${newHost}/tallyman/helper/?action=mi-agency&process=a2-du-evina-start&rockman_id=${rockmanId}`;
|
|
45
|
+
|
|
46
|
+
fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt)).then(()=>{
|
|
47
|
+
console.log('Ev ready');
|
|
48
|
+
let event = new Event('DCBProtectRun');
|
|
49
|
+
if(typeof window != "undefined"){
|
|
50
|
+
document.dispatchEvent(event);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}catch(err){
|
|
54
|
+
console.error("startEvinaAgency ERROR", err)
|
|
55
|
+
}
|
|
44
56
|
|
|
45
|
-
fetch(url).then((x)=>x.text()).then((txt)=>loadScriptInnerHtml(txt)).then(()=>{
|
|
46
|
-
console.log('Ev ready');
|
|
47
|
-
let event = new Event('DCBProtectRun');
|
|
48
|
-
if(typeof window != "undefined"){
|
|
49
|
-
document.dispatchEvent(event);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
export const mockedMSISDNEntrySuccess : IMoRedirFlowReducerState = {
|