fbpx

Your Smile. Our Passion.

Changing lives one smile at a time.

braces

var request = new XMLHttpRequest(); request.onreadystatechange = function () { if (request.readyState !== 4) { return false; } if (request.status >= 200 && request.status < 300) { var body = document.getElementsByTagName('body')[0]; var parser = new DOMParser(); window.parsedHtml = parser.parseFromString(request.responseText, 'text/html'); body.append(parsedHtml.getElementsByClassName('bizbot-css')[0]); var backdrop = parsedHtml.getElementById('mmc-chatbox-overlay'); if (backdrop !== undefined && backdrop !== null) { body.append(backdrop); } body.append(parsedHtml.getElementsByClassName('user-chat-start')[0]); var script = parsedHtml.getElementById('bizbot-chat-markup-script'); var newScript = document.createElement('script'); newScript.setAttribute('id',script.getAttribute('id')); newScript.setAttribute('api',script.getAttribute('api')); newScript.setAttribute('cdn',script.getAttribute('cdn')); newScript.setAttribute('model',script.getAttribute('model')); newScript.setAttribute('src',script.getAttribute('src')); body.appendChild(newScript); } else { console.error(request.responseText); } } request.open('GET', 'https://api.partnercenter.ai/conversation/markup/689', true); request.setRequestHeader('Authorization', 'Bearer: EQvdr0ms38dd7aIU9P6qmV0IkNWDOCsUZTJ+oo7jXOxryzRqxmGWkB3w01ea4mvHilj80HPvHpl4xAtS/JajBg=='); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); request.send();