_satellite["_runScript2"](function(event, target, Promise) { (function () { var mbox, tokens; // Add the adobe target response token event listener document.addEventListener(adobe.target.event.REQUEST_SUCCEEDED, getEventData); function getEventData(e) { // Check to verify all necessary information is present for the integration if (e.detail && e.detail.responseTokens) { // Store the token and mbox data tokens = e.detail.responseTokens; // Send the response data when Decibel is fully initialized if (window.hasOwnProperty('decibelInsight')) { decibelInsight('ready', sendAdobeEvent); } else { window['_da_ready'] = sendAdobeEvent; } } // Remove the Adobe listener document.removeEventListener(adobe.target.event.REQUEST_SUCCEEDED, getEventData); } // Send the ATDecibelTokens custom event when decibelInsight is ready function sendAdobeEvent() { var adobe_event = new CustomEvent("ATDecibelTokens", { detail: { tokens: tokens } }); document.dispatchEvent(adobe_event); } })(); });