; ; ;var synalio=(function(){var a="1.12";var b="_rslgvry";var c=false; ; ;var h="left: auto;right: 0px;"; ; ;var d="z-index: 999999998;position:fixed; bottom: 0px;border: 0px;background: none;"+h;var l="height: 550px;";var f="height:52px;";var g="width:420px;"; ;var m;var n="93ce1bf7025d478387390e0f3d14f2a3";var o=false;var p=false;var q=1;var r= 30;var s;var t=[];var u="チャットで物件探し!!";var v="https://s3-ap-northeast-1.amazonaws.com/rebot-line-resized/195/4f4db7aa44dd4703a8009e14fe3e1dfb.jpg/origin";var w=[];var x;var y;var z;var A;var B;var C;var D;var E;var F;var G=1;var H;var I;var J=[];var K=0;var L="";var M="メニューに戻る";var N={};var O="None";var P=(O!=='None')?JSON.parse(O.replace(/'/g,'"')):[];var Q;var R="Please check"; ; ; ;var V='
  • User Avatar

    @1

  • ';var W='
  • @1

  • ';var X='

    @1

    ';var Y='
    ';var Z='
  • @1
  • ';var ab='
    ';var ac='
  • @1
  • ';var ad='
    ご利用ありがとうございます。
    よろしければ、今後の改善のため、オペレータに対する評価をお願いいたします。
    '; ;;var ag=[];var ah=11;var ai=30;var aj= 0;var ak='';var al= -1;var am='_rslgvry_conv_cnt';var an='';var ao=0;var ap=!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);function aq(){var a='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(a){var b=Math.random()*16|0,c=a=='x'?b:(b&0x3|0x8);return c.toString(16);});return a;}function ar(){ak=ap?localStorage.getItem(b):bo(b);if(!ak){ak=aq();as(ak);}return ak;}function as(a){if(ap)localStorage.setItem(b,a);else if(!a)bp(A,b,'',null,'Thu, 01 Jan 1970 00:00:00 UTC');else bp(A,b,a);}function at(){var a=ap?localStorage.getItem(am):bo(am);var b=parseInt(a);if(isNaN(b))b=0;au(b+1);}function au(a){if(ap)localStorage.setItem(am,a.toString());else bp(A,am,a.toString());}function av(a){var b=document.createElement('template');b.innerHTML=a;if(b.content)return b.content;else return b.firstElementChild;}function aw(a,b,c,d,e,f,g){if(!b){aR(av(W.replace(/@1/g,a.replace(/\r?\n/g,'
    '))));aT(1);}if(I)clearTimeout(I);xhr=new XMLHttpRequest();xhr.onerror=aK;xhr.ontimeout=aK;xhr.open('POST','https://rebot.resola.ai/api/web');xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xhr.send(aL(a,c,d,e,f,g));xhr.onreadystatechange=aI;at();}function ax(a,b){if(!a.match(/^https?:\/\//i))a='//'+a;window.open(a,b);}function ay(){xhr_page=new XMLHttpRequest();xhr_page.onreadystatechange=aE;xhr_page.open('POST','https://rebot.resola.ai/api/web/93ce1bf7025d478387390e0f3d14f2a3/move_page');xhr_page.setRequestHeader('Content-Type','application/json');var a={s:ak,session_id:an,title:A.title,url:location.href};if(bu()==1)a.demo=1;if(Object.keys(N).length>0)a.ext=N;xhr_page.send(JSON.stringify(a));}function az(a,b){if(bu()!=1){var c=new XMLHttpRequest();if(b)c.onreadystatechange=function(){if(c.readyState===4&&c.status===200)b();};if(a.event_data&&synalioWindow.Nanalytics){a.event_data.session_id=an;a.event_data.pv_num=ao;}c.open('POST','https://rebot.resola.ai/analytics/event');c.setRequestHeader('Content-Type','application/json');c.send(JSON.stringify(a));}}function aA(a,b){var c='258'!='-1';if(!c)return;H=new XMLHttpRequest();H.onreadystatechange=aD;H.open('POST','https://rebot.resola.ai/api/web/93ce1bf7025d478387390e0f3d14f2a3/chat_logs');H.setRequestHeader('Content-Type','application/json');H.send(JSON.stringify({s:a,session_id:b}));}function aB(a,b,c,d,e,f){xhr_state=new XMLHttpRequest();xhr_state.open('POST','https://rebot.resola.ai/api/web/93ce1bf7025d478387390e0f3d14f2a3/auto_message');xhr_state.setRequestHeader('Content-Type','application/json');var g={s:a,state:b,response:c,buttons:d,node:e,scenario_response:f};if(bu()==1)g.demo=1;xhr_state.send(JSON.stringify(g));}function aC(a){xhr_state=new XMLHttpRequest();xhr_state.open('POST','https://rebot.resola.ai/api/web/93ce1bf7025d478387390e0f3d14f2a3/satisfaction_survey');xhr_state.setRequestHeader('Content-Type','application/json');xhr_state.send(JSON.stringify(a));}function aD(){switch(H.readyState){case 4:if(((200<=H.status&&H.status<300)||(H.status==304))&&H.responseText){var a=JSON.parse(H.responseText);ak=a.s;t=a.logs;if(a.is_rtchat)bf();br(a.is_rtchat);if(t.length>0&&al<0){o=true;if(K>0)aQ();t.forEach(function(a){aG(a);});var b=t[t.length-1];if((b.type==='bot'||b.type==='admin_user'||b.type==='end_user')&&b.buttons)aJ(b); ;var c=bo('r_window');if(c==='on')synalio.toggle(0,false);else if(w.length>0)bq(); ;setTimeout(function(){ ;synalio.resize(x.offsetHeight); ;aT(1);},300);}else{ ;var d={'event_type':'page_start','event_data':{'unique_id':n,'user_id':ak}};az(d,function(){ ;});}ay(); ;if(K==0){} ;K=0;}break;}}function aE(){switch(xhr_page.readyState){case 4:if(((200<=xhr_page.status&&xhr_page.status<300)||(xhr_page.status==304))&&xhr_page.responseText){var a=JSON.parse(xhr_page.responseText);ak=a.s; ;if(a.reserve)I=setTimeout(function(){var b={'event_type':'chat_opened','event_data':{'unique_id':n,'user_id':ak}};az(b);aF(a.reserve,ak);},a.reserve.time*1000); ;}break;}}function aF(a,b){aN(); ;aO();var c=true; ;for(var d=0;d');if(a.type==='end_user')aR(av(W.replace(/@1/g,msg)));else if(a.type==='bot')if(b){aR(av(ac.replace(/@1/g,a.text).replace(/@2/g,'input')));ag.push('input');}else aR(av(V.replace(/@2/g,u).replace(/@3/g,v).replace(/@1/g,msg)));else if(a.type==='admin_user'){var c=a.sender?a.sender:u;var d=a.sender_image?a.sender_image:v;aR(av(V.replace(/@2/g,c).replace(/@3/g,d).replace(/@1/g,msg)));if(!a.is_read)w.push(a.msg_id);}}function aH(a){var b={};var c=a.elements;for(var d=0;d=2){aR(av(ac.replace('@1',b.replace(g[0],'')).replace(/@2/g,g[1])));ag.push(g[1]);}else aR(av(V.replace(/@2/g,u).replace(/@3/g,v).replace(/@1/g,b)));if(e==d.length)aT(1);d.shift();f=0;}if(d.length==0){aJ(c);synalio.onCompleteWriteMessage(JSON.parse(xhr.responseText));return;}setTimeout(function(){l();},a);}}break;}}function aJ(a){var b=0;if(a.buttons&&a.buttons.length>0){var c=[];var d=a.reply_deco||[];var e=0;for(var f=0;fe)g=d[e];e++;var h=a.buttons[f].img?a.buttons[f].img:a.buttons[f].label.replace(/"/g,'"');var i=a.buttons[f].img?Y:X;var j=a.buttons[f].url?a.buttons[f].url:a.buttons[f].msg.replace(/"/g,'"');var k=a.buttons[f].url&&a.buttons[f].url_target?a.buttons[f].url_target:'';c.push(i.replace(/@1/g,h).replace(/@2/g,j).replace(/@3/g,g).replace(/@4/g,k));}aR(av(Z.replace(/@1/g,c.join(''))));b=c.length;}else if(!a.no_button){var l=X.replace(/@1/g,M).replace(/@2/g,M).replace(/@3/g,'');if(ag.length==0){b++;aR(av(Z.replace(/@1/g,l)));}} ;}function aK(){var a="
  • 送信に失敗しました。
    ネットワーク接続をご確認いただくか、お時間おいて再度お試しください。
  • ";aR(av(a));}function aL(a,b,c,d,e,f){if(!ak)ak=new Date().getTime().toString(16)+Math.floor(1000*Math.random()).toString(16);var g=[];var h=null;g.push("appid="+n);g.push("content="+encodeURIComponent(a));g.push("mode=web");g.push("s="+ak);g.push("session_id="+an);g.push("pv_num="+ao);if(bu()==1)g.push("demo=1");if(b)g.push("button=1");if(c)g.push("init=1");if(d)g.push("image="+d);if(d)g.push("mime_type="+e);if(Object.keys(N).length>0)g.push("ext="+JSON.stringify(N));if(al!="")g.push("scenario_id="+al);for(var i=0;i0)while(b.length>0)a.removeChild(b[0]);}function aO(){do{var a=ag.shift();if(a!=undefined)aP(a);}while(a!=undefined);}function aP(a){var b=z.getElementsByName(a);for(var c=0;c0){var c=loader[0].parentNode.parentNode;c.parentNode.removeChild(c);}b.appendChild(a);if(b.childElementCount>ai)b.removeChild(b.children[0]);}function aS(a){aN();var b=z.getElementsByClassName('synalio-chat-footer')[0];b.appendChild(a);}function aT(a){var b=z.getElementsByClassName("chat-message-body");if(b.length-a>=0){var c=b[b.length-a];var d=z.getElementsByClassName("synalio-chat-header")[0];var e=z.getElementsByClassName("synalio-chat-body")[0];smoothScr.stopShow();smoothScr.anim(c,e,d);}}var aU=function(a){a.preventDefault();};function aV(){var a=document.documentElement;var b=(window.pageXOffset||a.scrollLeft)-(a.clientLeft||0);var c=(window.pageYOffset||a.scrollTop)-(a.clientTop||0);if(!j.top){j.top=c;j.left=b;}else if(j.top>0&&c>0&&!i){j.top=c;j.left=b;}}function aW(){if(j.top){var a=j.top;window.scrollTo(0,a);}}function aX(a){if(a===true)A.body.setAttribute('style',"position:fixed;overflow:hidden;width:100%;");else{A.body.setAttribute("style","overflow:auto");aW();}}function aY(a){if(a.target.scrollHeight>=a.target.offsetHeight)if(a.target.scrollHeight<2*r){if(a.target.scrollHeight>0)a.target.style.height=a.target.scrollHeight+"px";}else a.target.style.height=2*r+"px";else{var b;for(var c=0;c<=10;c++){b=Number(a.target.style.height.split("px")[0]);a.target.style.height=b-r+"px";if(a.target.scrollHeight>a.target.offsetHeight){if(a.target.scrollHeight>r)a.target.style.height=a.target.scrollHeight+"px";else a.target.style.height=r+"px";break;}}} ;synalio.resize(x.offsetHeight); ;}function aZ(){var a=z.getElementById("synalio-chat-text-input");a.placeholder=a.placeholder;}function bc(a){aZ();var b=z.getElementsByClassName('synalio-chat-window')[0];if(b.style.display=='none')return;var c=parseInt('550px');if(a.innerHeight'))));aT(1);w.push(b.msg_id);if(A.hasFocus())bn();bq();br(true);}J.forEach(function(a){clearTimeout(a);});}function bj(){console.log('WS connected');if(K>0)aA(ak);bn();}function bk(){K++;if(K<50)setTimeout(function(){bf();},(K-1)*5000);}function bl(a){var b=null;var c=0;for(i=0;i2)h.shift();bp.domain=h.join('.');a.cookie=f+'domain=.'+bp.domain;var i=bo(b);if(i!=c){bp.domain=location.hostname;a.cookie=f+'domain=.'+bp.domain;}}else a.cookie=f+'domain=.'+bp.domain;}function bq(){ ;if(G==1&&w.length>0){var a=z.getElementById('synalio-chat-window-notice-badge');a.innerHTML=w.length;a.style.display='block';} ;}function br(a){if(a){c=false;z.getElementById('synalio-chat-footer-rtchat').style.display='block';z.getElementById('home-icon').className+=' synalio-home-disable'; ;z.getElementById('synalio-chat-footer-container').style.display='block'; ;}else{z.getElementById('synalio-chat-footer-rtchat').style.display='none';var b=z.getElementById('home-icon');b.className=b.className.replace('synalio-home-disable',''); ;z.getElementById('synalio-chat-footer-container').style.display='none'; ;if(sessionStorage.getItem("alwayshide")==='true')z.getElementById('synalio-chat-footer-container').style.display='none';} ;synalio.resize(x.offsetHeight); ;}function bs(a){var b=z.getElementById('synalio-chat-footer-container');var c=null;for(var d=0;db.length&&d.substr(0,b.length)==b)||(d.length>c.length&&d.substr(0,c.length)==c))return true;}return false;}function bu(){var a=aj;var b=A.getElementById('synalio-demo');if(b)try{a=parseInt(b.value);}catch(c){console.log(c);}return a;}smoothScr={iterr:20,tm:null,step:null,lastScrollTop:null,stopShow:function(){clearTimeout(this.tm);this.iterr=30;},anim:function(a,b,c){var d=c.offsetHeight;var e=window.navigator.userAgent;var f=e.indexOf('Trident/');var g=0;if(f>0){var h=e.indexOf('rv:');g=parseInt(e.substring(h+3,e.indexOf('.',h)),10);}if(f>0&&g==11&&window.parent)d=0;var i=(a.offsetTop-d-b.scrollTop)/5.0;b.scrollTop+=i;if(this.iterr>1)this.iterr-=1;else this.itter=0;if(this.lastScrollTop!=b.scrollTop&&i>1&&b.scrollTop'; ;aw('画像受信',true,false,false,b,c);aR(av(W.replace(/@1/g,d)));},onPressGoHome:function(){sessionStorage.removeItem("alwayshide");if(!be()){aw(M,true,true,null,null,null,{'home':1});aO();}},onCompleteWriteMessage:function(a){},onCompleteToggle:function(a){},onCompleteLoad:function(){},resize:function bx(a){D.style.height=(a-C.offsetHeight-E.offsetHeight)+"px";},onFormChanged:function(a){if(!a||a.nodeName!=="FORM")return;var b,c,d=[],e={},f={},g={};for(b=a.elements.length-1;b>=0;b=b-1){if(a.elements[b].name==="")continue;if(a.elements[b].nodeName=='INPUT'){var h=a.elements[b].getAttribute('type');if(h=='checkbox'){if(!(a.elements[b].name in e))e[a.elements[b].name]=[];if(a.elements[b].checked)e[a.elements[b].name].push(a.elements[b].value);if(Q){Q.setCustomValidity('');Q=null;}}else if(h=='radio'){if(!(a.elements[b].name in g))g[a.elements[b].name]='';if(a.elements[b].checked)g[a.elements[b].name]=a.elements[b].value;}else d.push(a.elements[b].name+"="+a.elements[b].value);}else if(a.elements[b].nodeName=='TEXTAREA')d.push(a.elements[b].name+"="+a.elements[b].value);else if(a.elements[b].nodeName=='SELECT'){if(a.elements[b].type=='select-one')d.push(a.elements[b].name+"="+a.elements[b].value);else if(a.elements[b].type=='select-multiple'){if(!(a.elements[b].name in f))f[a.elements[b].name]=[];for(c=a.elements[b].options.length-1;c>=0;c=c-1)if(a.elements[b].options[c].selected)f[a.elements[b].name].push(a.elements[b].value);}}else if(a.elements[b].nodeName=='BUTTON'){var h=a.elements[b].getAttribute('type');if(h=='button')d.push(a.elements[b].name+"="+a.elements[b].value);}}for(var i in e)d.push("checkbox_"+i+"="+JSON.stringify(e[i]));for(var j in f)d.push("selectbox_"+j+"="+JSON.stringify(f[j]));for(var k in g)d.push(k+"="+g[k]);var l=d.join("&");z.getElementById(a.getAttribute('name')+'-form-data').value=l;},onSubmitForm:function(a){var b=a.getAttribute("form-name");var c=z.getElementById(b);if(!c||!bl(c)||!c.checkValidity())return bm(c);var d=a.getAttribute("form-data-id");var e=z.getElementById(d).value;if(!e||e===''){synalio.onFormChanged(c);e=z.getElementById(d).value;}if(e){var f='##form:'+b+'##'+e;aw(f,true);aO();}aN();return false;},onFocusEvent:function(){bn();},showCSForm:function(){var a=z.getElementsByClassName("cs-rating");for(var b=0;b0)g[g.length-1].style.display='none';var h=z.getElementsByClassName("cs-rating-done");if(h.length>0)h[h.length-1].style.display='block';if(bu()==1)c.demo=1;aC(c);return false;},onTeijinImageClieck:function(a,b){ ;return; ;},isExceedFileSizeTeijin:function(a,b){ ;return false; ;},isTeijinUpload:function(){ ;return;},addExtVal:function(a,b){N[a]=b;}};})();var synalioWindow=window.parent?window.parent:window;if(document.readyState=='complete')synalio.onLoadEvent();else synalioWindow.addEventListener('load',synalio.onLoadEvent,true);synalioWindow.addEventListener('focus',synalio.onFocusEvent);