    function loadScript(url, callback) {
        var script = document.createElement("script")
        script.type = "text/javascript";
        script.crossorigin = true;
        if (script.readyState) {  //IE
            script.onreadystatechange = function () {
                if (script.readyState == "loaded" ||
                    script.readyState == "complete") {
                    script.onreadystatechange = null;
                    callback();
                }
            };
        } else {  //Others
            script.onload = function () {
                callback();
            };
        }
        script.src = url;
        document.getElementsByTagName("head")[0].appendChild(script);
    }
    var mode=``;
    var scriptUrl = "https://cdn.mindbehind.com/sdk/mindbehind-webchat.js";
                mode = `undefined`;
    loadScript(scriptUrl, function () {
        var channelId=`62b1b9649f7c0956a0b10b60`;
        var companyId=`cc0213c8-9f62-4ac9-a50c-41b6e853ab43`;
        var partnerName = ``;
        var brandName = ``;
        var brandLogo = "https://api.sorunapp.com/File/391049/mbjenerikikon.png";
        var name = ``;
        var startBrandColor = ``;
        var conversationColor = ``;
        var finalBrandColor = ``;
        var defaultLanguage = ``;
        var votePropertiesWithLanguage = [];
        var left = ``;
        var right = ``;
        var top = ``;
        var bottom = ``;
        var widgetPosition = ``;
        var sideSpace = ``;
        var bottomSpace = ``;
        var backgroundImage = ``;
        var buttonIcon = ``;
        var buttonWidth = ``;
        var buttonHeight = ``;
        var headerText = ``;
        var inputPlaceholder = ``;
        var startDelay = ``;
        var introductionText = ``;
        var previewBackgroundImage = ``;
        var removeInput = ``;
        var showInputOnButtons = ``;
        var mindbehindInfo = true;
        var showMessageCountOverIcon = ``;
        var fileUpload = ``;
        var shareLocation = ``;
        var auth = ``;
        var requireName = ``;
        var requireEmail = ``;
        var voteButtonText = ``;
        var voteHeader = ``;
        var voteMessage = ``;
        var votePlaceholder = ``;
        var feedbackMessage = ``;
        var popupHeader = ``;
        var popupMessage = ``;
        var popupConfirm = ``;
        var popupDecline = ``;
        var endOfConversation = ``;
        var defaultCountry= ``;
        var phoneText= ``;
        var phoneTitle= ``;
        var phoneErrorText= ``;
        var smsText= ``;
        var smsTitle= ``;
        var smsErrorText= ``;
        var nameText = ``;
        var nameTitle = ``;
        var surnameText= ``;
        var surnameTitle= ``;
        var emailText = ``;
        var emailTitle = ``;
        var emailErrorText= ``;
        var sendCodeButtonText= ``;
        var requireKVKK = ``;
        var kvkkTitle = ``;
        var kvkkText = ``;
        var approvalCheckBoxTextGDPR = ``;
        var approvalButtonTextGDPR = ``;
        var displayFirstMessage = ``;
        var firstMessageText = ``;
        var enableCallOut = false;
        var callOutStartBackgroundColor = ``;
        var callOutEndBackgroundColor = ``;
        var calloutConversationColor = ``;
        var callOutText = ``;
        var enableCallOutDelay = false;
        var callOutDelay = ``;
        var enableCallOutTyping = false;
        var typingBackgroundColor = ``;
        var typingDelay = ``;
        var enableButtonSelection = ``;
        var buttonList = [];
        var showWidget = true;
        var startConversationButtonText = ``;
        var redesignEnabled = false;
        var voiceRecording = false;
        var conversationStarterPrompts = [];
        var conversationStarterPermanent = false;
        var aiDisclaimerText = ``;
        var largeViewportEnabled = false;
        voteButtonText = `Gönder`;
        voteHeader = `Konuşma Değerlendirme`;
        voteMessage = `Chatbot ile gerçekleştirdiğiniz deneyimden ne derece memnun kaldınız?`;
        votePlaceholder = `Yorumunuzu yazabilirsiniz.`;
        feedbackMessage = `Geri bildiriminiz için teşekkür ederiz.`;
        brandName = `TatilBudur`;
        brandLogo = `https://mb-files-public.s3-eu-central-1.amazonaws.com/771f7c94-1670-4b6b-8111-a1a754a88624/chatbotwebyazisz2x.png`;
        startBrandColor = `#005cb9`;
        finalBrandColor = `#337dc7`;
            votePropertiesWithLanguage = [
                    {
                    language: `en`,
                    voteHeader: `Konuşma Değerlendirme`,
                    voteMessage: `Chatbot ile gerçekleştirdiğiniz deneyimden ne derece memnun kaldınız?`,
                    voteType: ``,
                    votePlaceholder: `Yorumunuzu yazabilirsiniz.`,
                    voteButtonText: `Gönder`,
                    feedbackMessage: `Geri bildiriminiz için teşekkür ederiz.`
                    }
            ];
            defaultLanguage = `en`;
        buttonIcon = `https://mb-files-public.s3-eu-central-1.amazonaws.com/807db9ba-0030-4d2a-9737-c248351bd515/chatbotwebyazisz2x.png`;
        inputPlaceholder = `Bir mesaj yazın`;

        fileUpload = true;
        popupHeader = `Konuşmayı Sonlandır`;
        popupMessage = `Yolculuğumuzu sonlandırıyorum. Bir sonraki konuşmamıza kadar hoşça kal! 👋`;
        popupConfirm = `Evet`;
        popupDecline = `Hayır`;
        showWidget = true;
        startConversationButtonText = `Yeni bir konuşma başlat`;
        var properties = {
                "companyId": companyId,
                "partnerName": partnerName,
                "brandName": brandName,
                "brandLogo": brandLogo,
                "name" : name,
                "startBrandColor" : startBrandColor,
                "conversationColor" : conversationColor,
                "finalBrandColor" : finalBrandColor,
                "left" : left,
                "right" : right,
                "top" : top,
                "bottom" : bottom,
                "widgetPosition": widgetPosition,
                "sideSpace": sideSpace,
                "bottomSpace": bottomSpace,
                "backgroundImage" : backgroundImage,
                "buttonIcon" : buttonIcon,
                "buttonWidth" : buttonWidth,
                "buttonHeight" : buttonHeight,
                "headerText" : headerText,
                "inputPlaceholder" : inputPlaceholder,
                "startDelay" : startDelay,
                "introductionText" : introductionText,
                "previewBackgroundImage" : previewBackgroundImage,
                "voteButtonText": voteButtonText,
                "voteHeader" : voteHeader,
                "voteMessage" : voteMessage,
                "votePlaceholder" : votePlaceholder,
                "feedbackMessage" : feedbackMessage,
                "removeInput" : removeInput,
                "showInputOnButtons" : showInputOnButtons,
                "mindbehindInfo" : mindbehindInfo,
                "showMessageCountOverIcon" : showMessageCountOverIcon,
                "fileUpload" : fileUpload,
                "shareLocation" : shareLocation,
                "voiceRecording" : voiceRecording,
                "auth" : auth,
                "defaultCountry": defaultCountry,
                "phoneText": phoneText,
                "phoneTitle": phoneTitle,
                "phoneErrorText": phoneErrorText,
                "smsText": smsText,
                "smsTitle": smsTitle,
                "smsErrorText": smsErrorText,
                "sendCodeButtonText": sendCodeButtonText,
                "nameText": nameText,
                "nameTitle": nameTitle,
                "surnameText": surnameText,
                "surnameTitle": surnameTitle,
                "emailText": emailText,
                "emailTitle": emailTitle,
                "emailErrorText": emailErrorText,
                "requireName": requireName,
                "requireEmail": requireEmail,
                "popupHeader": popupHeader,
                "popupMessage": popupMessage,
                "popupConfirm": popupConfirm,
                "popupDecline": popupDecline,
                "endOfConversation":endOfConversation,
                "requireKVKK": requireKVKK,
                "kvkkTitle": kvkkTitle,
                "kvkkText": kvkkText,
                "approvalCheckBoxTextGDPR": approvalCheckBoxTextGDPR,
                "approvalButtonTextGDPR": approvalButtonTextGDPR,
                "displayFirstMessage": displayFirstMessage,
                "firstMessageText": firstMessageText,
                "enableCallOut": enableCallOut,
                "callOutStartBackgroundColor": callOutStartBackgroundColor,
                "callOutEndBackgroundColor": callOutEndBackgroundColor,
                "calloutConversationColor": calloutConversationColor,
                "callOutText": callOutText,
                "enableCallOutDelay": enableCallOutDelay,
                "callOutDelay": callOutDelay,
                "enableCallOutTyping": enableCallOutTyping,
                "typingBackgroundColor": typingBackgroundColor,
                "typingDelay": typingDelay,
                "enableButtonSelection": enableButtonSelection,
                "buttonList": buttonList,
                "showWidget": showWidget,
                "startConversationButtonText": startConversationButtonText,
                "votePropertiesWithLanguage": votePropertiesWithLanguage,
                "defaultLanguage": defaultLanguage,
                "redesignEnabled": redesignEnabled,
                "conversationStarterPrompts": conversationStarterPrompts,
                "conversationStarterPermanent": conversationStarterPermanent,
                "aiDisclaimerText": aiDisclaimerText,
                "largeViewportEnabled": largeViewportEnabled
        };
        MindbehindWebchat.renderMBWebchat(channelId, brandName, brandLogo, mode, companyId, properties);
    });
