
const obotaiChatBotStyleSheet = document.createElement('link');
obotaiChatBotStyleSheet.rel = "stylesheet";
obotaiChatBotStyleSheet.href = 'https://hosting-for-customers.obotai.com/v2/fasttrack/obotai-chatbot.css';
document.head.appendChild(obotaiChatBotStyleSheet);

const obotaiChatBotJSScript = document.createElement('script');
obotaiChatBotJSScript.type = "text/javascript";
obotaiChatBotJSScript.src = 'https://hosting-for-customers.obotai.com/v2/common/latest/obotai-chatbot.js';
obotaiChatBotJSScript.async = !0;
obotaiChatBotJSScript.charset = 'utf-8';
obotaiChatBotJSScript.onload = function () {
    startObotaiChatBot()
}
document.body.appendChild(obotaiChatBotJSScript);

function startObotaiChatBot() {
    const obotaiChatBotContainerDiv = document.createElement('div');
    obotaiChatBotContainerDiv.id = "obotai-chatbot-container";
    document.body.appendChild(obotaiChatBotContainerDiv);
    const obotaiChatBotPropsStr = '{"header": {"title": "Fasttrack", "subtitle": {"text": "Powered by ", "link": {"text": "ObotAI", "href": "https://obot-ai.com/"}}}, "bodyFix": "all", "bot": {"welcomeMsgs": ["Multilingual Chatbot", "\u306f\u3058\u3081\u306b\u4e0a\u306e\u30dc\u30bf\u30f3\u3067\u5229\u7528\u8a00\u8a9e\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002", "Please select your language first by clicking on the button above", "\u8acb\u5148\u7528\u4e0a\u9762\u7684\u6309\u9215\u9078\u64c7\u4f7f\u7528\u8a9e\u8a00\u3002", "\u8bf7\u5148\u7528\u4e0a\u9762\u7684\u6309\u94ae\u9009\u62e9\u4f7f\u7528\u8bed\u8a00\u3002", "\uba3c\uc800 \uc704\uc5d0 \uc788\ub294 \ubc84\ud2bc\uc5d0\uc11c \uc774\uc6a9 \uc5b8\uc5b4\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694."]}, "iconUrl": "https://hosting-for-customers.obotai.com/v2/fasttrack/Q&A.png", "languages": {"codes": ["ja", "en", "zh-cn", "zh-tw", "ko"], "collapsed": false}, "autoLocale": true, "toggle": {"image": {"src": "https://hosting-for-customers.obotai.com/v2/fasttrack/Q&A.png", "height": 350, "width": 350}, "popover": {"texts": ["Multilingual"]}, "hideType": "minimize", "restore": {"texts": ["Restore", "Toggle"]}}, "menu": {"show": true, "ja": [{"sendingText": "\u30ab\u30c6\u30b4\u30ea\u304b\u3089\u9078\u3076", "btnText": "\u30ab\u30c6\u30b4\u30ea\u304b\u3089\u9078\u3076"}], "en": [{"sendingText": "Choose from categories", "btnText": "Choose from categories"}], "zh-cn": [{"sendingText": "\u4ece\u7c7b\u522b\u4e2d\u9009\u62e9", "btnText": "\u4ece\u7c7b\u522b\u4e2d\u9009\u62e9"}], "zh-tw": [{"sendingText": "\u5f9e\u985e\u5225\u4e2d\u9078\u64c7", "btnText": "\u5f9e\u985e\u5225\u4e2d\u9078\u64c7"}], "ko": [{"sendingText": "\uce74\ud14c\uace0\ub9ac\uc5d0\uc11c \uc120\ud0dd", "btnText": "\uce74\ud14c\uace0\ub9ac\uc5d0\uc11c \uc120\ud0dd"}]}, "agentKey": "dc0fbd3489fa43dc8540761e719e3684", "inputCompletion": "04543d2002d644acadee8b645a788d53", "user": {"id": "0ijJaRXVbw", "name": "User"}}';
    const obotaiChatBotProps = JSON.parse(obotaiChatBotPropsStr);
    ObotAIChatBot.load(obotaiChatBotProps, 'obotai-chatbot-container', 'obotai-chatbot-controller');
}
