Categories

TD SYNNEX

2 months ago
7 Views

TD SYNNEX e.pageName).pageName, pageCategory: dataLayer.find(e => e.pageCategory).pageCategory, country: window.Nuance.NuanceData.CountryCode, //languageCulture: window.Nuance.NuanceData.languageCulture, CustomerType: window.Nuance.NuanceData.CustomerType, status: ‘MicrositePageView_status’ }]; console.log(‘Nuance Public list objects _WebChatPublic:’ + JSON.stringify(list)); EncryptNuancePublicDetails(list); } else setTimeout(waitForPublicElement, 250); } else setTimeout(waitForPublicElement, 250); } function waitForInq() if (typeof Inq !== “undefined”) Inq.reinitChat(); else setTimeout(waitForInq, 250); function waitForInqWithId(id) if (typeof Inq !== “undefined”) Inq.reinitChat(id); else setTimeout(waitForInqWithId, 250); […]


TD SYNNEX e.pageName).pageName, pageCategory: dataLayer.find(e => e.pageCategory).pageCategory, country: window.Nuance.NuanceData.CountryCode, //languageCulture: window.Nuance.NuanceData.languageCulture, CustomerType: window.Nuance.NuanceData.CustomerType, status: ‘MicrositePageView_status’ }]; console.log(‘Nuance Public list objects _WebChatPublic:’ + JSON.stringify(list)); EncryptNuancePublicDetails(list); } else setTimeout(waitForPublicElement, 250); } else setTimeout(waitForPublicElement, 250); } function waitForInq() if (typeof Inq !== “undefined”) Inq.reinitChat(); else setTimeout(waitForInq, 250); function waitForInqWithId(id) if (typeof Inq !== “undefined”) Inq.reinitChat(id); else setTimeout(waitForInqWithId, 250); function EncryptNuancePublicDetails(list) var item = JSON.stringify(list); $.ajax( url: ‘/InTouch/MVC/Header/AESEncryptionPublic’, //url: ‘/MVC/Header/AESEncryptionPublic’, type: ‘POST’, dataType: ‘json’, data: ‘ObjEncryption’: item , success: function (results) console.log(‘Main Nuance Public results _WebChatPublic :’ + JSON.stringify(results)); results.forEach(function (item) console.log(‘Foreach Nuance Public Objects _WebChatPublic :’ + JSON.stringify(item)); window.Nuance.NuanceData.pageName = item.pageName; window.Nuance.NuanceData.pageCategory = item.pageCategory; window.Nuance.NuanceData.Status = item.status; ); , error: function (error) console.log(‘Error occured in EncryptNuancePublicDetails function _WebChatPublic:’ + error); ); function NuanceChangeLanguage(language) window.Nuance.NuanceData.languageCulture = language; waitForInq(); function NuanceSetStatus(status, extras) var list = [ nuancestatus: status ]; var InqId = 0; var item = JSON.stringify(list); $.ajax( url: ‘/InTouch/MVC/Header/AESEncryptionPublic’, type: ‘POST’, dataType: ‘json’, data: ‘ObjEncryption’: item , success: function (results) results.forEach(function (item) window.Nuance.NuanceData.Status = item.nuancestatus; ); , error: function (error) console.log(‘Error occured in EncryptNuancePublicDetails function NuanceSetStatus:’ + error); ); try if (extras.currentPane == 2) InqId = 38380691; if (extras.currentPane == 3) InqId = 38380693; if (extras.currentPane == 4) InqId = 38380695; if (extras.currentPane == 5) InqId = 38380697; if (extras.currentPane == 6) InqId = 38380699; if (status == ‘Success’) InqId = 38380703; if (status == ‘Failure’) InqId = 38380701; waitForInqWithId(InqId); catch (err) console.log(‘NuanceSetStatus : ‘, status, extras); console.log(‘NuanceSetStatus err : ‘, err.message); waitForInq(); waitForPublicElement(); waitForInq(); ]]>

Source

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *