(function () {
var id = 'RR55e591ed2e40f';
var url = 'https://resnova.resrequest.com';
var apiUrl = url + '/api/v3';
var scriptUrl = url + '/resources/widget/resnova.js';
var linkUrl = url + '/resources/widget/resnova.css';
var widgetContainer = document.getElementsByClassName('resrequest-widget-' + id)[0];
var widgetElement = document.createElement('rr-resnova');
widgetElement.setAttribute('widget-id', id);
widgetElement.setAttribute('api-url', apiUrl);
widgetContainer.appendChild(widgetElement);
const script = document.createElement('script');
script.setAttribute('async', 'true');
script.setAttribute('src', scriptUrl);
widgetContainer.appendChild(script);
const link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', linkUrl);
widgetContainer.appendChild(link);
})();