` (function() { var d = document.createElement('div'); d.id = 'ZN_cYLzuCZeQ15WxVP'; var qs = document.getElementById('qualtrics-script'); qs.parentNode.insertBefore(d, qs); // provide a globa accessor to qualtrics if (!window.qualtricsData) { window.qualtricsData = function(key) { return window.gtmData[key] || null; }; } if (!window.reloadQualtrics) { window.reloadQualtrics = function() { if (window.QSI && window.QSI.API) { if (window.QSI.reg) { /** * Before calling unload(), make sure FeedbackButton types have cleanup functions defined * For some reason, cleanupAnimation and cleanupButton were undefined and producing errors * See SMS-2128 for more information */ for (let key in window.QSI.reg) { const item = window.QSI.reg[key]; if (item.type === "FeedbackButton") { if (!item.cleanupAnimation) { item.cleanupAnimation = ()=>{g&&g.parentNode&&g.parentNode.removeChild(g),window.removeEventListener("message",I)}; } if (!item.cleanupButton) { item.cleanupButton = ()=>{s.parentNode.removeChild(s)}; } } } } window.QSI.API.unload(); window.QSI.API.load().done(window.QSI.API.run); } }; } // Special API that will trigger a feedback through a global variable // because qualtrics is a weird beast if (!window.setQualtricsTriggerFeedback) { window.setQualtricsTriggerFeedback = function() { window.show_qualtrics_feedback = true; window.reloadQualtrics(); }; } if (!window.removeQualtricsTriggerFeedback) { window.removeQualtricsTriggerFeedback = function() { window.show_qualtrics_feedback = false; }; } if (!window.setHomepageFeedbackTrigger) { window.setHomepageFeedbackTrigger = function() { window.show_hp_voc_feedback = true; window.reloadQualtrics(); }; } if (!window.removeHomepageFeedbackTrigger) { window.removeHomepageFeedbackTrigger = function() { window.show_hp_voc_feedback = false; }; } if (window === window.top) { window.addEventListener("qsi_js_loaded", function() { window.reloadQualtrics(); }, false); } if (!window.setIntegrationFeedbackTrigger) { window.setIntegrationFeedbackTrigger = function(name) { window.show_integration_voc_survey = true; window.integration_name = name; window.reloadQualtrics(); }; } if (!window.removeIntegrationFeedbackTrigger) { window.removeIntegrationFeedbackTrigger = function() { window.show_integration_voc_survey = false; }; } // SMS-3304 Qualtrics survey for sms funnel // SMS-6707 Qualtrics survey for sms credits dropoff })();