initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
req.query.subChannel = req.query.channel === "Root.Mobile.Android" ? "MAPP:GOOGLE" : "MAPP:APPLE";
|
||||
req.query.channel = req.query.channel === "Root.Mobile.Android" ? "MAPP:GOOGLE" : "MAPP:APPLE";
|
||||
req.query.isMapp = true;
|
||||
|
||||
const isQAP = req.query.qap === 'true';
|
||||
console.log(`isQAP: ${isQAP}`);
|
||||
|
||||
res.send(`
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,user-scalable=no">
|
||||
<script>
|
||||
window.trackingJson = ${JSON.stringify(req.query || {})};
|
||||
window.ivasMessengerSettings = {
|
||||
token: "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJ3b3Jrc3BhY2VJZCI6IjY3YmNhODYyMjEwMDcxNjI3ZDMyZWYxMiIsImlhdCI6MTc0MDQxNzEyMn0.L_gLTj-ekDYs9SU6Jsehu9F-iKa5JAjAJEjpGkuXIbzNCdie2j63oPH0Ca9w5a4SIZ7AgFTDVO-1XPyAvCUaNNAHuFetnCSGScCl7K17cKlLJtn1tKA1E4jTd_Unz6wsbT21HV5mkBOBqOtGF2sqUuPLOe-ctY44zC6Yq44rNQZ5WJCJUu_7urT_6nyIVJxONDnWvIQH3vletseBrFod8flZTcQ9tlkcjqzc78y2FzO3c4xhJ9AHiRJ63tgaKm8oi8jZMXbp7d35tycNzRjk9Q4aONKdG8ciFwzjlIHGKMtI_C8x0xZH5sHIwJhGb6NJV69aX89ghdanzuDZpAfORg",
|
||||
domain: "https://messenger.ivastudio.verint.live",
|
||||
fullscreen: true,
|
||||
port: "443",
|
||||
branch: "current",
|
||||
onError: (error) => console.error("Something went wrong with the websockets for IVA Messenger", error)
|
||||
};
|
||||
|
||||
${isQAP && `window.ivasMessengerSettings.branch = 'current';`}
|
||||
|
||||
!(function () {
|
||||
function t() {
|
||||
var t = document.createElement("script");
|
||||
(t.type = "text/javascript"), (t.async = !0), (t.src = "https://messenger.ivastudio.verint.live" + ":" + "443" + "/loader");
|
||||
var e = document.getElementsByTagName("script")[0];
|
||||
e.parentNode.insertBefore(t, e);
|
||||
}
|
||||
window.attachEvent ? window.attachEvent("onload", t) : window.addEventListener("load", t, !1);
|
||||
})();
|
||||
</script></head><body></body></html>`);
|
||||
Reference in New Issue
Block a user