Вы находитесь на странице: 1из 26

lpTagConfig._ver='4.2.3.12';(function(){var initializing=false,fnTest=/hhh/.test (function(){hhh})?/\b_super\b/:/.*/;lpTagConfig.LPClass=function(){};lpTagConfig .LPClass.extend=function(prop){var name,_super=this.prototype;initializing=true; var prototype=new this();initializing=false;for(name in prop){prototype[name]=ty peof prop[name]==='function'&&typeof _super[name]==='function'&&fnTest.test(prop [name])?(function(name,fn){return function(){var tmp=this._super;this.

_super=_su per[name];var ret=fn.apply(this,arguments);this._super=tmp;return ret}})(name,pr op[name]):prop[name]}function LPClass(){if(!initializing&&this._ctor){this._ctor .apply(this,arguments)}}LPClass.prototype=prototype;LPClass.prototype.constructo r=LPClass;LPClass.extend=arguments.callee;return LPClass}})();if(typeof lpTagCon fig.utils==='undefined'){lpTagConfig.utils={CONST:{deliveryBasePathToken:'{deliv eryBasePath}',deliveryFolderPath:'/le/lechat/delivery/'},getDeliveryBasePath:fun ction(){if(lpTagConfig.tagPlugins.conf.serverProps&&lpTagConfig.tagPlugins.conf. serverProps.leChatDeliveryBasePath){return lpTagConfig.tagPlugins.conf.serverPro ps.leChatDeliveryBasePath}},updateUrlPath:function(url){var deliveryBasePath=lpT agConfig.utils.getDeliveryBasePath();if(deliveryBasePath){deliveryBasePath=lpTag Config.utils.format('https://{0}{1}',deliveryBasePath,lpTagConfig.utils.CONST.de liveryFolderPath);return url.replace(new RegExp(lpTagConfig.utils.CONST.delivery BasePathToken,'g'),deliveryBasePath)}else{return url}},isMSModernUI:function(){i f(lpTagConfig.tagPlugins.conf.siteFeatures&&lpTagConfig.tagPlugins.conf.siteFeat ures.isMSModernUI){return lpTagConfig.tagPlugins.conf.siteFeatures.isMSModernUI} },isLEChatAAEnabled:function(){return typeof lpTagConfig.tagPlugins.conf.siteFea tures!=='undefined'&&typeof lpTagConfig.tagPlugins.conf.siteFeatures.leChatAAEna bled!=='undefined'&&lpTagConfig.tagPlugins.conf.siteFeatures.leChatAAEnabled!==n ull&&lpTagConfig.tagPlugins.conf.siteFeatures.leChatAAEnabled},_isLPTagExist:fun ction(){return typeof lpTag!=='undefined'},_isEMTExist:function(){return typeof lpMTag!=='undefined'},getDataFromFiredEvent:function(lpTagData,emtData){return t his._isLPTagExist()?lpTagData:emtData},publishEvent:function(evName,evData){if(t his._isLPTagExist()){lpTag.events.trigger('LPChat',evName,evData);this.log('trig gered by LPTag.events','INFO');return}else if(this._isEMTExist()){lpMTag.events. publish(evName,evData);this.log('published by EMT.events','INFO');return}this.lo g('no LPTag or EMT events mechanism (trigger/publish)','ERROR');return null},reg isterEvent:function(evName,fn){var mechanismExist=false;if(this._isLPTagExist()) {lpTag.events.bind('LPChat',evName,fn);mechanismExist=true}if(this._isEMTExist() ){lpMTag.events.register(evName,fn);mechanismExist=true}if(mechanismExist){retur n}this.log('no LPTag or EMT events mechanism (bind/register)','ERROR');return nu ll},unregisterEvent:function(evId){if(this._isLPTagExist()){return lpTag.events. unbind(evId)}this.log('no LPTag or EMT events mechanism (unbind/unregister)','ER ROR');return false},hasFired:function(evName){var fired=[];if(this._isLPTagExist ()){fired=lpTag.events.hasFired('LPChat',evName)}if(this._isEMTExist()){fired=fi red.concat(lpMTag.events.hasFired(evName))}if(fired===null){this.log('no LPTag o r EMT events mechanism (hasFired)','ERROR');return false}return fired},registerT oBrowserEvents:function(){var eventsArr=[{context:window,evName:'resize'}];var c urEventObject,curEventName,callback;for(var i=0;i<eventsArr.length;i++){curEvent Object=eventsArr[i]['context'];curEventName=eventsArr[i]['evName'];callback=(fun ction(eventName){return function(e){lpTagConfig.utils.publishEvent('LPCHAT_BROWS ER_'+eventName.toUpperCase(),e)};})(curEventName);if(curEventObject.addEventList ener){curEventObject.addEventListener(curEventName,callback,false)}else if(curEv entObject.attachEvent){curEventObject.attachEvent('on'+curEventName,callback)}}} ,log:function(msg,type){type=type||'DEBUG';if(lpMTagDebug&&lpMTagDebug.Display){ lpMTagDebug.Display(msg,type,'LPChat')}},checkHttps:function(src){if(lpTagConfig .lpProtocol==='https'&&src.indexOf('https')!==0){src='https'+src.substr(4)}retur n src},getCookie:function(n){var len,end,start=document.cookie.indexOf(n+'=');if (typeof n==='undefined'||start===-1){return null}len=start+n.length+1;if(!start& &(n!==document.cookie.substring(0,n.length))){return null}end=document.cookie.in dexOf(';',len);if(end===-1){end=document.cookie.length}return unescape(document. cookie.substring(len,end))},setCookie:function(params){var cookieValue=params.na me+'='+params.value+'; path=/';document.cookie=cookieValue},makeScriptCall:funct ion(src,charset){src=this.checkHttps(src);var s=document.createElement("script") ;s.setAttribute("type","text/javascript");s.setAttribute("charset",(charset||"UT

F-8"));s.setAttribute("src",src);var h=document.getElementsByTagName("head");if( h){h.item(0).appendChild(s)}},makeImgCall:function(src){src=this.checkHttps(src) ;var img=new Image();img.src=src;return img},makeLPCall:function(cmd,params){var src=lpTagConfig.utils.format('{0}&cmd={1}',this.getLPBaseUrl(),cmd);for(var par amName in params){if(typeof params[paramName]!=='undefined'){src+=lpTagConfig.ut ils.format('&{0}={1}',paramName,params[paramName])}}this.makeScriptCall(src)},ar rToObject:function(arr){var obj={};for(var i=0;i<arr.length;i++){obj[arr[i]]=arr [i]}return obj},isIE:function(){return this.getIEMatch()!==null},isIE6:function( ){var match=this.getIEMatch();if(match!==null){var version=parseInt(match[2],10) ;if(version===6){return true}}return false},getIEMatch:function(){var agent=navi gator.userAgent;agent=agent.toLowerCase();var msie=/(msie) ([\w.]+)/,match=msie. exec(agent);return match},isQuirksMode:function(){if((document.documentMode&&doc ument.documentMode===5)||document.compatMode==='BackCompat'){this.log("Quirks Mo de === true");return true}this.log("Quirks Mode === false");return false},getObj ById:function(id){if(typeof id!=='undefined'){if(document.getElementById){return document.getElementById(id)}else{if(document.all){return document.all(id)}}}ret urn false},stopEventBubble:function(e){var event=e||window.event;event.cancelBub ble=true;if(event.stopPropagation){event.stopPropagation()}},isEmptyObj:function (obj){for(var key in obj){return false}return true},getObjSize:function(obj){var size=0;for(var prop in obj){size++}return size},clearObj:function(obj){for(var prop in obj){if(obj.hasOwnProperty(prop)){delete obj[prop]}}},cloneObj:function( obj){var newObj=obj instanceof Array?[]:{};for(var prop in obj){newObj[prop]=obj [prop]&&typeof obj[prop]==='object'?this.cloneObj(obj[prop]):obj[prop]}return ne wObj},areEqualUnorderedArrays:function(arr1,arr2){if(arr1.length!==arr2.length){ return false}arr1.sort();arr2.sort();for(var i=0;i<arr1.length;i++){if(arr1[i]!= =arr2[i]){return false}}return true},areEqualObjects:function(obj1,obj2){var pro p;for(prop in obj1){if(typeof obj2[prop]==='undefined'||obj1[prop]!==obj2[prop]) {return false}}for(prop in obj2){if(typeof obj1[prop]==='undefined'||obj1[prop]! ==obj2[prop]){return false}}return true},areUnorderedEqual:function(obj1,obj2){i f(typeof obj1==='undefined'||typeof obj2==='undefined'){return false}if(obj1.con structor!==obj2.constructor){return false}if(obj1.constructor===Array){return lp TagConfig.utils.areEqualUnorderedArrays(obj1,obj2)}else{return lpTagConfig.utils .areEqualObjects(obj1,obj2)}},isPositionFixed:function(){return!lpTagConfig.util s.isIE6()&&!this.isIEQuirksMode()},isIEQuirksMode:function(){return lpTagConfig. utils.isIE()&&lpTagConfig.utils.isQuirksMode()},cssNumStrToInt:function(cssNumSt r){return parseInt(cssNumStr.replace('px',''))},getLPBaseUrl:function(){return l pTagConfig.utils.format('{0}://{1}/hc/{2}/?site={3}',lpTagConfig.lpProtocol,lpTa gConfig.lpServer,lpTagConfig.lpNumber,lpTagConfig.lpNumber)},addPropsToObj:funct ion(toObj,fromObj,overwrite){if(toObj&&fromObj){for(var prop in fromObj){if(!ove rwrite&&toObj[prop]){continue}toObj[prop]=fromObj[prop]}}},onEvent:function(evNa me,evData){this.publishEvent(evName,evData);var logMsg='tagPlugin '+evName;if(ev Data.tagPluginId){logMsg+='(id: '+evData.tagPluginId+')'}if(evData.extra){for(va r i=0;i<evData.extra.length;i++){logMsg+=' ('+evData.extra[i]+')'}}this.log(logM sg);if(typeof evData.action==='function'){evData.action()}},getFuncFromStr:funct ion(funcStr){var namespaces=funcStr.split('.'),funcName=namespaces.pop(),curCont ext=window[namespaces[0]];for(var j=1;j<namespaces.length;j++){curContext=curCon text[namespaces[j]]}return curContext[funcName]},getPageDimensions:function(){va r names=["Height","Width"],pageDimensions={totalHeight:null,totalWidth:null,wind owHeight:null,windowWidth:null,verticalScroll:null,horizontalScroll:null};for(va r i=0;i<names.length;i++){var name=names[i];pageDimensions["total"+name]=Math.ma x(document.documentElement["client"+name],document.body["scroll"+name],document. documentElement["scroll"+name],document.body["offset"+name],document.documentEle ment["offset"+name]);pageDimensions["window"+name]=window.document.compatMode=== "CSS1Compat"&&window.document.documentElement["client"+name]||window.document.bo dy["client"+name]||window.document.documentElement["client"+name]}pageDimensions ["verticalScroll"]=document.documentElement&&document.documentElement.scrollTop| |document.body&&document.body.scrollTop;pageDimensions["horizontalScroll"]=docum ent.documentElement&&document.documentElement.scrollLeft||document.body&&documen t.body.scrollLeft;return pageDimensions},format:function(str){for(var i=1;i<argu ments.length;i++){str=str.replace(new RegExp('\\{'+(i-1)+'\\}','gi'),""+argument

s[i])}return str},convertEngagementTypeToImpressionApproachTypeId:function(engag ementType){var map={button:7,sticky_button:8,invitation:9};return map[engagement Type]},getImprRepState:function(repAvKey){var map={1:3,2:1,3:2,4:3};return map[r epAvKey]}}}if(typeof lpTagConfig.lpAnimate==='undefined'){lpTagConfig.lpAnimate= {ver:'1.0',elements:{},queue:{},conf:{interval:13,duration:500,easing:'swing'},_ easing:{linear:function(relTime,curTime,startValue,changeInVal,duration){return startValue+changeInVal*relTime}},animate:function(domElement,props,options){if(t ypeof(domElement)==='undefined'||typeof(props)==='undefined'){return}if(domEleme nt.id===""){return}if(typeof(this.elements[domElement.id])==='undefined'){if(typ eof(props.length)=='undefined'){props=[props]}if(typeof(options)==='number'){opt ions={duration:options}}var id=domElement.id,that=this;this.elements[id]={id:id, domElement:domElement,props:props,options:{duration:(options&&options.duration)? options.duration:that.conf.duration,easing:(options&&options.easing)?options.eas ing:that.conf.easing,callback:(options&&typeof(options.callback)=='function')?op tions.callback:null}};this._doAnimate(id)}else{var animationRequest={domElement: domElement,props:props,options:options};this._addToQueue(domElement.id,animation Request)}},stop:function(id){var el=this.elements[id];if(typeof el!=='undefined' ){if(el.timeout!=null){clearTimeout(el.timeout)}el.timeout=null;delete this.elem ents[id]}this._removeFromQueue(id)},_doAnimate:function(id){var el=this.elements [id];el.startTime=(new Date()).getTime();el.relTime=el.relPos=0;el.timeout=null; for(var i=0;i<el.props.length;i++){var property=el.props[i];property.start=this. _getCurrentVal(el.domElement,property.name)||0;property.now=property.start}this. _step(el.id)},_step:function(id){var el=this.elements[id],now=(new Date()).getTi me();if(now>=el.startTime+el.options.duration){el.relPos=el.relTime=1;var i,prop erty;for(i=0;i<el.props.length;i++){property=el.props[i];property.now=property.t argetVal;this._update(el.domElement,property.name,property.now)}this._complete(e l)}else{var t=now-el.startTime;el.relTime=t/el.options.duration;el.relPos=this._ easing[el.options.easing](el.relTime,t,0,1,el.options.duration);for(i=0;i<el.pro ps.length;i++){property=el.props[i];property.now=property.start+((property.targe tVal-property.start)*el.relPos);this._update(el.domElement,property.name,propert y.now)}var that=this;el.timeout=setTimeout(function(){that._step(id)},that.conf. interval)}},_update:function(domElement,cssProperty,value){if(domElement.style&& domElement.style[cssProperty]!==null){domElement.style[cssProperty]=value+'px'}} ,_getCurrentVal:function(domElement,cssProperty){if(domElement.style&&domElement .style[cssProperty]!==null){return parseFloat(domElement.style[cssProperty])}},_ complete:function(el){var id=el.id,fn=null;if(el.options.callback!==null&&typeof (el.options.callback)==='function'){fn=el.options.callback}if(el.timeout!=null){ clearTimeout(el.timeout)}el.timeout=null;delete this.elements[id];if(fn!=null){t ry{fn(id)}catch(e){}}if(typeof this.queue[id]!=='undefined'&&this.queue[id]!==nu ll){if(this.queue[id].length>0){var req=this.queue[id].splice(0,1);this.animate( req[0].domElement,req[0].props,req[0].options)}else{this._removeFromQueue(id)}}} ,_addToQueue:function(id,request){if(typeof this.queue[id]==='undefined'){this.q ueue[id]=[]}this.queue[id].push(request)},_removeFromQueue:function(id){if(typeo f this.queue[id]!=='undefined'&&this.queue[id]!==null){delete this.queue[id]}}}} lpTagConfig.lpJsonToDom={_baseCss:{base:{margin:0,padding:0,width:'auto',height: 'auto',borderTopStyle:'none',borderRightStyle:'none',borderBottomStyle:'none',bo rderLeftStyle:'none',borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,bor derLeftWidth:0,outlineStyle:'none',outlineWidth:0,fontStyle:'normal',fontWeight: 'normal',fontVariant:'normal',listStylePosition:'outside',listStyleImage:'none', listStyleType:'none',letterSpacing:'normal',lineHeight:'normal',textDecoration:' none',textAlign:'start',textJustify:'auto',verticalAlign:'baseline',whiteSpace:' normal',wordSpacing:'normal'},container:{backgroundRepeat:'repeat-x',backgroundP osition:'bottom left',borderStyle:'solid'},label:{position:'absolute'},image:{po sition:'absolute'},button:{position:'absolute',backgroundRepeat:'repeat-x',backg roundPosition:'bottom left',borderStyle:'solid',paddingTop:5,paddingBottom:5,pad dingLeft:10,paddingRight:10,cursor:'pointer'},closeButton:{position:'absolute',c ursor:'pointer'}},_cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true ,lineHeight:true,color:true},_rnd:(new Date()).getTime(),_count:0,_converters:{c ontainers:function(json){var container=this._baseConverters.div.call(this,json,' container');return container},labels:function(json){var lbl=this._baseConverters

.text.call(this,json,'label');return lbl},images:function(json){var img=this._ba seConverters.image.call(this,json,'image');return img},buttons:function(json){va r btn=this._baseConverters.text.call(this,json,'button');return btn},closeButton s:function(json){var closeBtn=this._baseConverters.image.call(this,json,'closeBu tton'),that=this;closeBtn.onclick=function(e){that._publishEvent('LPCHAT_CLOSE_E NGAGEMENT_CLICK',e)};return closeBtn}},_baseConverters:{div:function(json,elemTy pe){var css=json.css,div=document.createElement('div');div.setAttribute('id',thi s._getId(elemType,json.id));div.setAttribute('class',this._getClass(elemType));t his._resetAndApplyStyle(div,css,elemType);return div},text:function(json,elemTyp e){var text=json.text,css=json.css,div=document.createElement('div');div.setAttr ibute('id',this._getId(elemType));div.setAttribute('class',this._getClass(elemTy pe));div.innerHTML=this.htmlEncode(text);this._resetAndApplyStyle(div,css,elemTy pe);return div},image:function(json,elemType){if(typeof(json.imageUrl)==='undefi ned'||json.imageUrl===null||json.imageUrl===''){this._log('lpJsonToDom, bad imag eUrl','ERROR');throw new Error('invalid data exception')}var imgSrc=this._checkH ttps(json.imageUrl),css=json.css,img=document.createElement('img');img.setAttrib ute('id',this._getId(elemType));img.setAttribute('class',this._getClass(elemType ));img.setAttribute('src',imgSrc);this._resetAndApplyStyle(img,css,elemType);ret urn img}},convert:function(jsons){var domElements=[],elemArr;if(jsons===null){th is._log('lpJsonToDom, an empty repAv state has been rendered')}else if(typeof(js ons)==='undefined'){this._log('lpJsonToDom, invalid jsons','ERROR');throw new Er ror('invalid data exception')}else{for(var type in jsons){elemArr=jsons[type];if (typeof(elemArr)==='undefined'||elemArr===null){this._log('lpJsonToDom, bad valu e','ERROR');throw new Error('invalid data exception')}if(typeof(elemArr.length)= =='undefined'){elemArr=[elemArr]}for(var i=0;i<elemArr.length;i++){var fn=this._ converters[type];if(typeof(fn)!=='function'){this._log('lpJsonToDom, no converte r for type '+type,'ERROR');throw new Error('invalid data exception')}else{domEle ments.push(fn.call(this,elemArr[i]))}}}}return domElements},applyStyle:function( el,styles){if(typeof(el)!=='undefined'&&el!==null&&typeof(styles)==='object'){fo r(var prop in styles){try{var value=styles[prop];if(this.isNumber(value)&&!this. _cssNumber[prop]){value+='px'}el.style[prop]=value}catch(e){this._log('lpJsonToD om, invalid css ['+prop+'; e:'+e+']','ERROR')}}}},isNumber:function(n){return!is NaN(parseFloat(n))&&isFinite(n)},htmlEncode:function(value){var retval="";if(typ eof(value)!=='undefined'&&value!==null){for(var i=0;i<value.length;i++){retval+= '&#x'+value.charCodeAt(i).toString(16)+';'}}return retval},_getId:function(str,p luginId){var id='lpchat-'+str+'-';id+=pluginId||this._getRnd()+'-'+this._count;t his._count++;return id},_getClass:function(str){return 'lpchat-'+str},_getRnd:fu nction(){return this._rnd},_resetAndApplyStyle:function(el,styles,elemType){this .applyStyle(el,this._baseCss.base);this.applyStyle(el,this._baseCss[elemType]);t his.applyStyle(el,styles)},_log:function(msg,type){if(typeof(lpTagConfig.utils)! =='undefined'){lpTagConfig.utils.log(msg,type)}},_publishEvent:function(evName,h tmlEvent){if(typeof(lpTagConfig.utils)!=='undefined'){var evData={htmlEvent:html Event};return lpTagConfig.tagPlugins.api.utils.publishEvent(evName,evData)}},_ch eckHttps:function(src){if(typeof(lpTagConfig.utils)!=='undefined'){return lpTagC onfig.utils.checkHttps(src)}}};lpTagConfig.tagPlugins={};lpTagConfig.tagPlugins. pluginsArr=[];lpTagConfig.tagPlugins.jsonsArr=[];lpTagConfig.tagPlugins.api={};l pTagConfig.tagPlugins.inPagePluginsArr=[];lpTagConfig.tagPlugins.conf={siteFeatu res:{},siteGeneralProps:{},serverProps:{}};if(typeof(lpTagConfig.tagPlugins.api. utils)==='undefined'){lpTagConfig.tagPlugins.api.utils={publishEvent:function(ev Name,evData){return lpTagConfig.utils.publishEvent(evName,evData)},registerEvent :function(evName,fn){return lpTagConfig.utils.registerEvent(evName,fn)},unregist erEvent:function(evId){return lpTagConfig.utils.unregisterEvent(evId)},hasFired: function(evName){return lpTagConfig.utils.hasFired(evName)},preloadImages:functi on(imgUrls,callback){var unloadedImgs=lpTagConfig.utils.arrToObject(imgUrls),img sInProcess=[],loadedImgStore={},isCallbackInvoked=false,that=this,url,lastIndex; lpTagConfig.utils.log('preloading '+imgUrls.length+' images');if(!this.isEmptyOb j(unloadedImgs)){for(url in unloadedImgs){imgsInProcess.push(new Image());lastIn dex=imgsInProcess.length-1;imgsInProcess[lastIndex].onload=function(){return fun ction(){delete unloadedImgs[this.src];this.onload=null;loadedImgStore[this.src]= {width:this.width,height:this.height};if(that.isEmptyObj(unloadedImgs)&&!isCallb

ackInvoked){isCallbackInvoked=true;lpTagConfig.utils.log('preloading images comp lete');try{callback(true,loadedImgStore)}catch(e){lpTagConfig.utils.log('error i n preload callback ['+e+']','ERROR')}}};}();imgsInProcess[lastIndex].onerror=fun ction(){return function(){lpTagConfig.utils.log('error preloading image: '+this. src,'ERROR');if(!isCallbackInvoked){isCallbackInvoked=true;try{callback(false)}c atch(e){lpTagConfig.utils.log('error in preload callback ['+e+']','ERROR')}}};}( );imgsInProcess[lastIndex].src=url}}else{try{callback(true,loadedImgStore)}catch (e){lpTagConfig.utils.log('error in preload callback ['+e+']','ERROR')}}},extrac tURL:function(bgImageStr){var retVal=bgImageStr.slice(bgImageStr.indexOf("(")+1, bgImageStr.indexOf(")"));if(retVal.charAt(0)==="'"||retVal.charAt(0)==='"'){retV al=retVal.slice(1,retVal.length-1)}return retVal},isPositionFixed:function(){ret urn lpTagConfig.utils.isPositionFixed()},getObjById:function(id){return lpTagCon fig.utils.getObjById(id)},isEmptyObj:function(obj){return lpTagConfig.utils.isEm ptyObj(obj)},getCookie:function(n){return lpTagConfig.utils.getCookie(n)},setCoo kie:function(params){lpTagConfig.utils.setCookie(params)},nextElementSibling:fun ction(el){var nextElementSibling=el.nextElementSibling;if(typeof(nextElementSibl ing)==='undefined'){nextElementSibling=el;do{nextElementSibling=nextElementSibli ng.nextSibling}while(nextElementSibling&&nextElementSibling.nodeType!==1)}return nextElementSibling},firstElementChild:function(el){return el.firstElementChild| |el.children[0]},cssNumStrToInt:function(cssNumStr){return lpTagConfig.utils.css NumStrToInt(cssNumStr)},openChatWindow:function(data){var winURL,protocol;protoc ol=lpTagConfig.utils.isMSModernUI()?'https':lpTagConfig.lpProtocol;winURL=lpTagC onfig.utils.format('{0}://{1}/hc/{2}/?cmd=file&file=visitorWantsToChat&{3}={2}', protocol,lpTagConfig.lpServer,lpTagConfig.lpNumber,'site');if(data.forceOffline) {winURL+='&forceOffline='+encodeURIComponent(data.forceOffline)}if(data.skillNam e){winURL+='&SV!skill='+encodeURIComponent(data.skillName)}if(data.availability) {winURL+=lpTagConfig.utils.format('&at={0}&waitTime={1}',lpTagConfig.tagPlugins. feedsManager.feeds.repAv.availability.getAvailabilityTypeId(data.availability.ty pe),data.availability.seconds)}if(data.instanceId){winURL+='&leInsId='+encodeURI Component(data.instanceId)}if(data.skillId){winURL+='&skId='+encodeURIComponent( data.skillId)}if(data.segmentId){winURL+='&leSegId='+encodeURIComponent(data.seg mentId)}if(data.engagementId){winURL+='&leEngId='+encodeURIComponent(data.engage mentId)}if(data.engagementTypeId){winURL+='&leEngTypeId='+encodeURIComponent(dat a.engagementTypeId)}if(data.name){winURL+='&leEngName='+encodeURIComponent(data. name)}if(data.repAvState){winURL+='&leRepAvState='+encodeURIComponent(data.repAv State)}if(data.referrer){winURL+='&referrer='+data.referrer}if(typeof lpMTag!==' undefined'&&typeof lpMTag.addFirstPartyCookies!=='undefined'){winURL=lpMTag.addF irstPartyCookies(winURL)}if(winURL.length>2000){winURL=winURL.substr(0,2000)}if( !lpTagConfig.utils.isMSModernUI()){window.open(winURL,'ChatWindow','width=475,he ight=400,resizable=yes')}else{var options={src:winURL,width:475,height:400,title :'ChatWindow',server:lpMTagConfig.lpServer,protocol:lpMTagConfig.lpProtocol};try {lpMTagConfig.frameAPI.init(options);lpMTagConfig.frameAPI.openFrame(options)}ca tch(e){window.open(winURL,'ChatWindow','width=475,height=400,resizable=yes');lpT agConfig.utils.log('Opening window in regular mode even we need to open it in if rame mode base on useModernWindow method','ERROR')}}return false},reportImpressi on:function(evData){var data=evData.target._data,showData=evData.showData;if(lpT agConfig.tagPlugins.conf.serverProps.leChatImpressionEventLogEnabled){lpTagConfi g.utils.makeLPCall('engagementVisitorEvent',{site:lpTagConfig.lpNumber,repState: lpTagConfig.utils.getImprRepState(showData.repAvKey),insId:showData.instanceId,e ngId:data.id,name:lpTagConfig.utils.format('{0}_{1}',data.name,showData.instance Name),segId:showData.segmentId,imprApproachType:lpTagConfig.utils.convertEngagem entTypeToImpressionApproachTypeId(showData.engagementType),skillId:showData.skil lId})}},reportTimeOutEvent:function(timeout,channel,t){if(lpTagConfig.tagPlugins .conf.serverProps.leChatImpressionEventLogEnabled){lpTagConfig.utils.makeLPCall( 'mTagInviteTimeout',{lpCallId:'711087090550-0',timeout:timeout,channel:channel,t :t})}},_getReferrerPrefix:function(engagementType,engagementName){return engagem entType==='invitation'?'(engage) ':'(button%20dynamic-button:'+escape(engagement Name)+'('+escape(document.title)+'))%20'},doBehaviourClickAction:function(data){ var clickData=data._currentShownStateData,engData=data._data,clickAction,openCha tWindow=lpTagConfig.tagPlugins.api.utils.openChatWindow,engagementName=lpTagConf

ig.utils.format('{0}_{1}',engData.name,clickData.instanceName),referrer=this._ge tReferrerPrefix(clickData.engagementType,engagementName)+escape(document.locatio n),chatWindowParams={engagementId:clickData.engagementId,engagementTypeId:lpTagC onfig.utils.convertEngagementTypeToImpressionApproachTypeId(clickData.engagement Type),skillId:clickData.skillId,skillName:clickData.skillName,instanceId:clickDa ta.instanceId,segmentId:clickData.segmentId,name:engagementName,repAvState:lpTag Config.utils.getImprRepState(clickData.repAvKey),referrer:referrer,behaviour:cli ckData.repAvStateData.behaviour};if(clickData.repAvStateData){if(lpTagConfig.tag Plugins.api.utils.isClearedRepAvState(clickData.repAvStateData)){return false}el se if(!clickData.repAvStateData.behaviour){chatWindowParams.availability=clickDa ta.repAvStateData.availability;openChatWindow(chatWindowParams)}else{clickAction =clickData.repAvStateData.behaviour.clickAction;switch(clickAction.type){case 'o ffline':chatWindowParams.forceOffline='true';openChatWindow(chatWindowParams);br eak;case 'redirect':window.open(clickAction.url,clickAction.target);break;case ' none':void(0);break;default:lpTagConfig.utils.log('doBehaviourClickAction(): cli ckAction type is invalid.','ERROR');break}}}else{lpTagConfig.utils.log('doBehavi ourClickAction(): current repAv state is incorrect.','ERROR')}},isClearedRepAvSt ate:function(repAvStateData){var presentation=repAvStateData.presentation;return presentation.elements===null&&presentation.background.color==='transparent'&&pr esentation.background.image===''&&presentation.border.width===0},stopEventBubble :function(e){lpTagConfig.utils.stopEventBubble(e)},getPageDimensions:function(){ return lpTagConfig.utils.getPageDimensions()}}}lpTagConfig.tagPlugins.feedsManag er={_conf:{syncFirstFeeds:true},_isRunning:false,_firstFeedsSync:{sync:{},_allAr rived:false,isAllArrived:function(feedName){if(!this._allArrived){delete this.sy nc[feedName];this._allArrived=lpTagConfig.utils.isEmptyObj(this.sync)}return thi s._allArrived}},feeds:{data:{},prevFeedData:{},segments:{_feedName:'segments',_f eedEventName:'SEGMENTS_LIST',_conf:{callbackFunc:null,shouldRegister:false},_upd ate:function(evName,evData){evData=lpTagConfig.utils.getDataFromFiredEvent(evNam e,evData);var segmentsFeed=lpTagConfig.tagPlugins.feedsManager.feeds.segments;se gmentsFeed._conf.callbackFunc(segmentsFeed._feedName,evData.segments)},setShould Register:function(shouldRegister){this._conf.shouldRegister=shouldRegister},getS houldRegister:function(){return this._conf.shouldRegister},init:function(conf){l pTagConfig.utils.addPropsToObj(this._conf,conf,true)},start:function(){this._sub scribeToChange();this._handlePublished()},_handlePublished:function(){var fired= lpTagConfig.utils.hasFired(this._feedEventName),lastEvent=fired[fired.length-1], evName,evData;if(lastEvent){evName=lastEvent.evName;evData=lastEvent.evData||las tEvent.data;if(lastEvent.data){this._update(evData)}else{this._update(evName,evD ata)}}},_subscribeToChange:function(){lpTagConfig.tagPlugins.api.utils.registerE vent(this._feedEventName,this._update)}},repAv:{constants:{STATES:{OFFLINE:1,ONL INE:2,BUSY:3,AWAY:4,NONE:'none'},AVAILABILITY:{REGULAR:{id:1,type:'regular'},INT ERACT_IMMEDIATELY:{id:2,type:'interact_immediately'},WITHIN:{id:3,type:'within'} }},_feedName:'repAv',_feedEventName:'LP_REP_STATE_CHANGED',_lastRequestedTime:0, _isRunning:false,_conf:{cbfUrl:'lpTagConfig.tagPlugins.feedsManager.feeds.repAv. _update',requestDelay:(lpMTag.lpInPageRequestDelay||10)*1000,callbackFunc:null,s houldRegister:false},setShouldRegister:function(shouldRegister){this._conf.shoul dRegister=shouldRegister},getShouldRegister:function(){return this._conf.shouldR egister},availability:{_data:{'-1~1~0':{state:'none',count:1}},add:function(elem ){var id,availabilityId=this.getAvailabilityTypeId(elem.availability.type);id=lp TagConfig.utils.format('{0}~{1}~{2}',elem.skillId,availabilityId,elem.availabili ty.seconds);if(!this._data[id]){this._data[id]={state:lpTagConfig.tagPlugins.fee dsManager.feeds.repAv.constants.STATES.NONE,skillId:elem.skillId,availabilityId: availabilityId,seconds:elem.availability.seconds,count:1}}else{this._data[id].co unt++}},remove:function(id){if(this._data[id]===1){delete this._data[id]}else{th is._data[id]--}},getAvailabilityTypeId:function(type){var availabilityEnum=lpTag Config.tagPlugins.feedsManager.feeds.repAv.constants.AVAILABILITY,id=availabilit yEnum.REGULAR.id;for(var currId in availabilityEnum){if(availabilityEnum[currId] .type===type){id=availabilityEnum[currId].id;break}}return id},setStateFromServe rData:function(serverData){for(var id in serverData){this._data[id].state=server Data[id]}}},_update:function(data){var availabilityStates={},repAvFeed=lpTagConf ig.tagPlugins.feedsManager.feeds.repAv;if(data.ResultSet.lpData[0]['availability

']){availabilityStates=data.ResultSet.lpData[0]['availability']}else{lpTagConfig .utils.log('repAv._update, the returned data from the Server is obsolete','ERROR ')}repAvFeed.availability.setStateFromServerData(availabilityStates);this._conf. callbackFunc(this._feedName,repAvFeed.availability._data)},_setLastTimeRequested :function(){this._lastRequestedTime=(new Date()).getTime()},_getSkillsRepStates: function(){var repAv=lpTagConfig.tagPlugins.feedsManager.feeds.repAv,availabilit yIdsArr=[];for(var id in repAv.availability._data){availabilityIdsArr.push(id)}l pTagConfig.utils.makeLPCall('lpTagRepstateMulti',{lpCallId:'711087090550-0',c:1, cbf:lpTagConfig.tagPlugins.feedsManager.feeds.repAv._conf.cbfUrl,sta:availabilit yIdsArr.join(',')});lpTagConfig.tagPlugins.feedsManager.feeds.repAv._setLastTime Requested()},init:function(conf){lpTagConfig.utils.addPropsToObj(this._conf,conf ,true)},start:function(){this._subscribeToChange();this._getSkillsRepStates()},i sNotCurrent:function(){var currentTime=(new Date()).getTime();return currentTime -this._lastRequestedTime>this._conf.requestDelay},_subscribeToChange:function(){ lpTagConfig.tagPlugins.api.utils.registerEvent(this._feedEventName,this._getSkil lsRepStates)},setShouldRegister:function(shouldRegister){this._conf.shouldRegist er=shouldRegister},getShouldRegister:function(){return this._conf.shouldRegister }},advancedAvailability:{_feedName:'advancedAvailability',_feedEventName:'LP_ADV ANCED_AVAILABILITY',_conf:{shouldRegister:false},_update:function(data){var even tName;lpTagConfig.utils.log('Got update engagement type: '+data.type+' instanceI d: '+data.instanceId+' availability: '+data.repAv,'INFO');if(data.type==='invita tion'){lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_SHOW_INVITATION_ADV ANCED_AVAILABILITY',data)}else{eventName=lpTagConfig.utils.format('LPCHAT_SHOW_I NSTANCE_BY_ADVANCED_AVAILABILITY_{0}',String(data.engagementId));lpTagConfig.uti ls.log('Event Name: '+eventName+' engagementId: '+data.engagementId,'INFO');lpTa gConfig.utils.log('Event Name After Replace: '+eventName+' engagementId: '+data. engagementId+' instanceId: '+data.instanceId+' repAv: '+data.repAv,'INFO');lpTag Config.tagPlugins.api.utils.publishEvent(eventName,data)}},init:function(conf){l pTagConfig.utils.addPropsToObj(this._conf,conf)},start:function(){this._subscrib eToChange()},_subscribeToChange:function(){lpTagConfig.tagPlugins.api.utils.regi sterEvent(this._feedEventName,this._update)},setShouldRegister:function(shouldRe gister){this._conf.shouldRegister=shouldRegister},getShouldRegister:function(){r eturn this._conf.shouldRegister}}},_processFeed:function(name,data,forcePublish) {this.feeds.data[name]=data;if(this._conf.syncFirstFeeds&&!this._firstFeedsSync. isAllArrived(name)){return}if(forcePublish||this._isNewFeedsData(name)){this.fee ds.prevFeedData[name]=lpTagConfig.utils.cloneObj(data);this.publishFeeds()}},_is NewFeedsData:function(processedFeedName){return!lpTagConfig.utils.areUnorderedEq ual(this.feeds.data[processedFeedName],this.feeds.prevFeedData[processedFeedName ])},publishFeeds:function(){lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHA T_FEEDS_SAMPLED',this.feeds.data)},run:function(conf){if(!this._isRunning){lpTag Config.utils.addPropsToObj(this._conf,conf,true);var feed,that=this;for(var feed Key in this.feeds){feed=this.feeds[feedKey];if(typeof feed.start==='function'&&f eed.getShouldRegister()){feed.init({callbackFunc:function(feedName,data,forcePub lish){that._processFeed(feedName,data,forcePublish)}});feed.start();if(this._con f.isFirstSynchronous){this._firstFeedsSync.sync[feedKey]=true}}}this._isRunning= true}},stop:function(){},isRunning:function(){return this._isRunning}};lpTagConf ig.LPObject=lpTagConfig.LPClass.extend({_ctor:function(){},makeImgCall:function( src){return lpTagConfig.utils.makeImgCall(src)},makeScriptCall:function(src){ret urn lpTagConfig.utils.makeScriptCall(src)},publishEvent:function(evName,evData){ return lpTagConfig.utils.publishEvent(evName,evData)},registerEvent:function(evN ame,fn){return lpTagConfig.utils.registerEvent(evName,fn)},log:function(msg,type ){lpTagConfig.utils.log(msg,type)},isIEQuirksMode:function(){return lpTagConfig. utils.isIEQuirksMode()},isPositionFixed:function(){return lpTagConfig.utils.isPo sitionFixed()},onEvent:function(evName,evData){lpTagConfig.utils.onEvent(evName, evData)}});lpTagConfig.tagPlugins.StateManager=function(instances,showStateCallb ack,buttonSkill,buttonAvailability){this.selectedInstance=null;this._instances=i nstances;this._showStateCallback=showStateCallback;this._buttonSkill=buttonSkill ;this._buttonAvailability={type:buttonAvailability?buttonAvailability.type:lpTag Config.tagPlugins.feedsManager.feeds.repAv.constants.AVAILABILITY.REGULAR.type,s econds:buttonAvailability?buttonAvailability.seconds:0}};lpTagConfig.tagPlugins.

StateManager.prototype._feedsData={segments:'',repAv:{'-1':lpTagConfig.tagPlugin s.feedsManager.feeds.repAv.constants.STATES.NONE}};lpTagConfig.tagPlugins.StateM anager.prototype.run=function(){var that=this,instanceObj;if(!lpTagConfig.utils. isLEChatAAEnabled()){lpTagConfig.utils.log('Working with Client side decision',' INFO');lpTagConfig.tagPlugins.api.utils.registerEvent('LPCHAT_FEEDS_SAMPLED',fun ction(evName,evData){evData=lpTagConfig.utils.getDataFromFiredEvent(evName,evDat a);lpTagConfig.utils.addPropsToObj(that._feedsData,evData,true);that._sampleStat e()});lpTagConfig.tagPlugins.feedsManager.publishFeeds();this._sampleState()}els e{instanceObj=this._serverSideDecisionDisplayInstance(this._engagementId);if(ins tanceObj!==null){lpTagConfig.utils.log('Working with Server side decision instan ce: '+instanceObj.instance.isDefault,'INFO');this._prepareAndShowInstance(instan ceObj.instance,instanceObj.repAv)}else{lpTagConfig.utils.log('Working with Serve r side decision default instance is null or no default repAv on default instance ','ERROR')}}};lpTagConfig.tagPlugins.StateManager.prototype._clientSideDecisionD isplayInstance=function(){var instance=null;for(var i=0;i<this._instances.length ;i++){if(this._isInstanceNotSegmented(this._instances[i])||this._isInstanceSegme ntedToVisitorSegment(this._instances[i],this._feedsData.segments)){return this._ instances[i]}}return instance};lpTagConfig.tagPlugins.StateManager.prototype._se rverSideDecisionDisplayInstance=function(){var instance=null,firedShowButtonEven tData=lpTagConfig.tagPlugins.buttonsManager.getInstanceFromStartPage(this._engag ementId);if(firedShowButtonEventData!==null){instance=this._getInstanceById(fire dShowButtonEventData.instanceId);var i,curEngagement;for(i=0;i<lpTagConfig.tagPl ugins.jsonsArr.length;i++){curEngagement=lpTagConfig.tagPlugins.jsonsArr[i];if(c urEngagement.id===this._engagementId){if(curEngagement.useRoom!==false){curEngag ement.skillId=firedShowButtonEventData.roomSkillId;curEngagement.skillName=fired ShowButtonEventData.roomSkillName}break}}if(instance.useRoom!==false){instance.s killId=firedShowButtonEventData.roomSkillId;instance.skillName=firedShowButtonEv entData.roomSkillName}this.selectedInstance=instance;lpTagConfig.utils.log('Inst ance chosen based on start page events instanceId: '+firedShowButtonEventData.in stanceId,'INFO')}if(!this.selectedInstance){for(var i=0;i<this._instances.length ;i++){if(this._instances[i].isDefault){if(this._instances[i].repAv[lpTagConfig.t agPlugins.feedsManager.feeds.repAv.constants.STATES.NONE]!==null){this.selectedI nstance=instance=this._instances[i];firedShowButtonEventData=firedShowButtonEven tData||{};firedShowButtonEventData.repAv=lpTagConfig.tagPlugins.feedsManager.fee ds.repAv.constants.STATES.NONE;lpTagConfig.utils.log('Instance chosen default in stanceId: '+instance.id,'INFO');break}else{lpTagConfig.utils.log('We have a defa ult instance without a none repAv - will not show any image ','INFO')}}}}var ret Object=instance===null?null:{instance:instance,repAv:firedShowButtonEventData.re pAv};return retObject};lpTagConfig.tagPlugins.StateManager.prototype._prepareAnd ShowInstance=function(instance,repAv){var repAvKey,showData;if(instance!==null){ if(lpTagConfig.utils.isLEChatAAEnabled()){repAvKey=repAv;lpTagConfig.utils.log(' repAvailability was set by server side to: '+repAvKey,'INFO')}else{repAvKey=this ._getRepAvKey(instance,lpTagConfig.tagPlugins.feedsManager.feeds.repAv.availabil ity._data);lpTagConfig.utils.log('repAvailability was set by client side: '+repA vKey,'INFO')}if(instance.repAv[repAvKey]){showData={currentInstance:instance,ins tanceId:instance.id,instanceName:instance.name,segmentId:instance.segmentId,segm entHash:instance.segmentHash,repAvKey:repAvKey,skillId:this._getInstanceSkillId( instance),skillName:this._getInstanceSkillName(instance),availability:this._getI nstanceAvailability(instance),overlay:instance.overlay,repAvStateData:instance.r epAv[repAvKey]};this._showState(showData)}}};lpTagConfig.tagPlugins.StateManager .prototype._getInstanceById=function(instanceId){for(var i=0;i<this._instances.l ength;i++){if(instanceId===this._instances[i].id){return this._instances[i]}}ret urn null};lpTagConfig.tagPlugins.StateManager.prototype.startAdvancedAvailabilit yFlow=function(dataObj){var instance=this._getInstanceById(dataObj.instanceId);i f(instance!==null){lpTagConfig.utils.log('Event fired for instanceId: '+instance .id,'INFO')}this._prepareAndShowInstance(instance,dataObj.repAv)};lpTagConfig.ta gPlugins.StateManager.prototype._sampleState=function(){var instance=this._clien tSideDecisionDisplayInstance();this._prepareAndShowInstance(instance)};lpTagConf ig.tagPlugins.StateManager.prototype._showState=function(showData){this._showSta teCallback(showData)};lpTagConfig.tagPlugins.StateManager.prototype._getInstance

Availability=function(instance){return instance.availability?instance.availabili ty:this._buttonAvailability};lpTagConfig.tagPlugins.StateManager.prototype._getI nstanceSkillId=function(instance){var instanceSkillId=typeof instance.skillId!== 'undefined'?instance.skillId:this._buttonSkill.id;return instanceSkillId};lpTagC onfig.tagPlugins.StateManager.prototype._getInstanceSkillName=function(instance) {return instance.skillName||this._buttonSkill.name};lpTagConfig.tagPlugins.State Manager.prototype._getRepAvKey=function(instance,evRepAv){var REP_AV_STATES=lpTa gConfig.tagPlugins.feedsManager.feeds.repAv.constants.STATES,repAvKeyForInstance Skill=this._getRepAvKeyForSkill(instance,evRepAv);repAvKeyForInstanceSkill=repAv KeyForInstanceSkill===REP_AV_STATES.AWAY?REP_AV_STATES.OFFLINE:repAvKeyForInstan ceSkill;return repAvKeyForInstanceSkill};lpTagConfig.tagPlugins.StateManager.pro totype._getRepAvKeyForSkill=function(instance,evRepAv){var id=this._getAvailabil ityId(instance.skillId,lpTagConfig.tagPlugins.feedsManager.feeds.repAv.availabil ity.getAvailabilityTypeId(instance.availability.type),instance.availability.seco nds);return evRepAv[id].state};lpTagConfig.tagPlugins.StateManager.prototype._ge tAvailabilityId=function(skillId,type,seconds){return lpTagConfig.utils.format(' {0}~{1}~{2}',skillId,type,seconds)};lpTagConfig.tagPlugins.StateManager.prototyp e._isInstanceNotSegmented=function(instance){return instance.segmentHash==='all' };lpTagConfig.tagPlugins.StateManager.prototype._isInstanceSegmentedToVisitorSeg ment=function(instance,segments){var isSegmented=false;if(segments){for(var i=0; i<segments.length;i++){if(segments[i]===instance.segmentHash){isSegmented=true;b reak}}}return isSegmented};lpTagConfig.tagPlugins.StateManager.prototype._preloa dInstanceImages=function(instance,callback){var allImages=[],i,backgroundImage,e lements,buttons,closeButtons,images,repAvState,str;if(instance){for(var repAvKey in instance.repAv){repAvState=instance.repAv[repAvKey];backgroundImage=repAvSta te.presentation.background.image||'';elements=repAvState.presentation.elements|| {};buttons=elements.buttons||[];closeButtons=elements.closeButtons||[];images=el ements.images||[];if(backgroundImage){allImages.push(lpTagConfig.tagPlugins.api. utils.extractURL(backgroundImage))}for(i=0;i<buttons.length;i++){str=buttons[i]. css.backgroundImage;if(str){allImages.push(lpTagConfig.tagPlugins.api.utils.extr actURL(str))}}for(i=0;i<closeButtons.length;i++){allImages.push(closeButtons[i]. imageUrl)}for(i=0;i<images.length;i++){allImages.push(images[i].imageUrl)}}}lpTa gConfig.tagPlugins.api.utils.preloadImages(allImages,callback)};lpTagConfig.tagP lugins.LPButtonStateManager=function(engagementId,instances,showStateCallback,bu ttonSkill,buttonAvailability){this._engagementId=engagementId;this._repAvUpdateC ounter=lpTagConfig.tagPlugins.conf.siteGeneralProps.leChatRepAvUpdate;this._inst anceUpdateCounter=lpTagConfig.tagPlugins.conf.siteGeneralProps.leChatInstanceUpd ate;this._currentRepAvKey=lpTagConfig.tagPlugins.feedsManager.feeds.repAv.consta nts.STATES.NONE;this._currentInstanceId='';this._lastNonFailedInstanceLoaderRequ estId=0;this._lastShownInstanceLoadingRequestId=0;this._currentlyLoadingInstance sIds=[];this.constructor.call(this,instances,showStateCallback,buttonAvailabilit y)};lpTagConfig.tagPlugins.LPButtonStateManager.prototype=new lpTagConfig.tagPlu gins.StateManager();lpTagConfig.tagPlugins.LPButtonStateManager.prototype._updat eCurrentRepAvKey=function(showData){if(this._currentRepAvKey!==showData.repAvKey ){this._currentRepAvKey=showData.repAvKey;if(showData.repAvKey!==lpTagConfig.tag Plugins.feedsManager.feeds.repAv.constants.STATES.NONE){this._repAvUpdateCounter --}}};lpTagConfig.tagPlugins.LPButtonStateManager.prototype._showInstance=functi on(showData){if(this._repAvUpdateCounter>-1&&this._instanceUpdateCounter>-1){lpT agConfig.utils.log('Before calling showState on : '+this._currentInstanceId,'INF O');lpTagConfig.tagPlugins.StateManager.prototype._showState.call(this,showData) }};lpTagConfig.tagPlugins.LPButtonStateManager.prototype._showState=function(sho wData){var that=this,thisInstanceLoadingRequestId,thisInstanceLoadingRequestData ={isBack:false,isSuccess:false,showData:showData};lpTagConfig.utils.log('in butt on _showState - showData: '+showData+' state: '+showData.repAvKey,'INFO');if(thi s._currentInstanceId!==showData.instanceId){try{this._lastNonFailedInstanceLoade rRequestId++;thisInstanceLoadingRequestId=this._lastNonFailedInstanceLoaderReque stId;this._currentlyLoadingInstancesIds[thisInstanceLoadingRequestId]=thisInstan ceLoadingRequestData;this._preloadInstanceImages(showData.currentInstance,functi on(isSuccess){var previousLoadedInstanceRequestData,curInstanceLoadingRequestId; that._currentlyLoadingInstancesIds[thisInstanceLoadingRequestId].isBack=true;tha

t._currentlyLoadingInstancesIds[thisInstanceLoadingRequestId].isSuccess=isSucces s;if(isSuccess&&that._lastNonFailedInstanceLoaderRequestId===thisInstanceLoading RequestId){lpTagConfig.utils.log('All images of the latest instance request are succesfully loaded, the following instance is shown: '+showData.instanceId,'INFO ');that._showSuccesfullyLoadedImagesInstance(showData);that._lastShownInstanceLo adingRequestId=thisInstanceLoadingRequestId}else if(that._lastNonFailedInstanceL oaderRequestId===thisInstanceLoadingRequestId&&thisInstanceLoadingRequestId>that ._lastShownInstanceLoadingRequestId){lpTagConfig.utils.log('At least one of the latest instance could not be loaded, the following instance will not be shown: ' +showData.instanceId,'ERROR');that._lastNonFailedInstanceLoaderRequestId--;for(c urInstanceLoadingRequestId=thisInstanceLoadingRequestId-1;curInstanceLoadingRequ estId>that._lastShownInstanceLoadingRequestId;curInstanceLoadingRequestId--){pre viousLoadedInstanceRequestData=that._currentlyLoadingInstancesIds[curInstanceLoa dingRequestId];if(!previousLoadedInstanceRequestData.isBack){break}else{if(!prev iousLoadedInstanceRequestData.isSuccess){continue}else{lpTagConfig.utils.log('Sh ow the following instance request that was successfully loaded before: '+previou sLoadedInstanceRequestData.showData.instanceId,'INFO');that._showSuccesfullyLoad edImagesInstance(previousLoadedInstanceRequestData.showData);break}}}}else if(is Success){lpTagConfig.utils.log('An instance which is not a candidate to be shown as it was not the latest that was requested is successfully loaded: '+showData. instanceId,'INFO')}else{lpTagConfig.utils.log('An instance which is not a candid ate to be shown as it was not the latest that was requested is unsuccessfully lo aded (at least one image was borken): '+showData.instanceId,'ERROR')}})}catch(e) {lpTagConfig.utils.log('Error loading images from instance ['+e+']','ERROR')}}el se{this._updateCurrentRepAvKey(showData);this._showInstance(showData)}};lpTagCon fig.tagPlugins.LPButtonStateManager.prototype._showSuccesfullyLoadedImagesInstan ce=function(showData){this._instanceUpdateCounter--;this._currentInstanceId=show Data.instanceId;this._repAvUpdateCounter=lpTagConfig.tagPlugins.conf.siteGeneral Props.leChatRepAvUpdate;this._updateCurrentRepAvKey(showData);this._showInstance (showData)};lpTagConfig.tagPlugins.LPInvitationStateManager=function(instances,s howStateCallback,buttonSkill,buttonAvailability){this.constructor.call(this,inst ances,showStateCallback,buttonAvailability)};lpTagConfig.tagPlugins.LPInvitation StateManager.prototype=new lpTagConfig.tagPlugins.StateManager();lpTagConfig.tag Plugins.LPInvitationStateManager.prototype.run=function(conf){if(conf.instanceTo Show){this._showState(conf.instanceToShow)}else{lpTagConfig.tagPlugins.StateMana ger.prototype.run.call(this)}};lpTagConfig.tagPlugins.LPInvitationStateManager.p rototype._showState=function(instance){var that=this,showData={instanceId:instan ce.id,instanceName:instance.name,segmentId:instance.segmentId,repAvKey:lpTagConf ig.tagPlugins.feedsManager.feeds.repAv.constants.STATES.ONLINE,skillId:this._get InstanceSkillId(instance),skillName:this._getInstanceSkillName(instance),segment Hash:instance.segmentHash,availability:this._getInstanceAvailability(instance),o verlay:instance.overlay,repAvStateData:instance.repAv[lpTagConfig.tagPlugins.fee dsManager.feeds.repAv.constants.STATES.ONLINE]};try{lpTagConfig.tagPlugins.State Manager.prototype._preloadInstanceImages(instance,function(success){if(success){ lpTagConfig.tagPlugins.StateManager.prototype._showState.call(that,showData)}})} catch(e){lpTagConfig.utils.log('Error loading images from instance ['+e+']','ERR OR')}};lpTagConfig.tagPlugins.LPEngagementView=function(){};lpTagConfig.tagPlugi ns.LPEngagementView.prototype.setData=function(data){this._data=data;if(data.lay out.position.type==='fixed'){this._zIndex=9999}};lpTagConfig.tagPlugins.LPEngage mentView.prototype.preloadImages=function(callback){var allImages=[],i,backgroun dImage,elements,buttons,closeButtons,images,repAvState,str,instances=this._data. states;if(instances){for(var instanceIndex=0;instanceIndex<instances.length;inst anceIndex++){for(var repAvKey in instances[instanceIndex].repAv){repAvState=inst ances[instanceIndex].repAv[repAvKey];backgroundImage=repAvState.presentation.bac kground.image||'';elements=repAvState.presentation.elements||{};buttons=elements .buttons||[];closeButtons=elements.closeButtons||[];images=elements.images||[];i f(backgroundImage){allImages.push(lpTagConfig.tagPlugins.api.utils.extractURL(ba ckgroundImage))}for(i=0;i<buttons.length;i++){str=buttons[i].css.backgroundImage ;if(str){allImages.push(lpTagConfig.tagPlugins.api.utils.extractURL(str))}}for(i =0;i<closeButtons.length;i++){allImages.push(closeButtons[i].imageUrl)}for(i=0;i

<images.length;i++){allImages.push(images[i].imageUrl)}}}}lpTagConfig.tagPlugins .api.utils.preloadImages(allImages,callback)};lpTagConfig.tagPlugins.LPEngagemen tView.prototype.getFixedParentContainer=function(){return document.body};lpTagCo nfig.tagPlugins.LPEngagementView.prototype.setStatePosition=function(showData){v ar coordinates;if(showData.repAvStateData&&this._data.layout.position.type==='fi xed'&&this._containerEl){coordinates=this._getCoordinates(showData);this._contai nerEl.style.top=coordinates.top+'px';this._containerEl.style.left=coordinates.le ft+'px'}};lpTagConfig.tagPlugins.LPEngagementView.prototype.showState=function(s howData){showData.engagementId=this._data.id;showData.engagementType=this._data. type;this.setStatePosition(showData)};lpTagConfig.tagPlugins.LPEngagementView.pr ototype._getCoordinates=function(showData){var coordinates={},borderWidth=showDa ta.repAvStateData.presentation.border.width,totalHeight=this._data.layout.size.h eight+2*borderWidth,totalWidth=this._data.layout.size.width+2*borderWidth,locati onArr=showData.overlay.location.split(' '),pageDims=lpTagConfig.tagPlugins.api.u tils.getPageDimensions();switch(locationArr[0]){case 'top':coordinates.top=0;bre ak;case 'middle':coordinates.top=(pageDims.windowHeight-totalHeight)/2;break;cas e 'bottom':coordinates.top=pageDims.windowHeight-totalHeight;break;default:coord inates.top=showData.overlay.top;break}switch(locationArr[1]){case 'left':coordin ates.left=0;break;case 'center':coordinates.left=(pageDims.windowWidth-totalWidt h)/2;break;case 'right':coordinates.left=pageDims.windowWidth-totalWidth;break;d efault:coordinates.left=showData.overlay.left;break}if(!lpTagConfig.tagPlugins.a pi.utils.isPositionFixed()){coordinates.top+=pageDims.verticalScroll;coordinates .left+=pageDims.horizontalScroll}return coordinates};lpTagConfig.tagPlugins.LPEn gagementView.prototype._hide=function(el){if(el!==null&&el.style!==null){el.styl e.display='none'}};lpTagConfig.tagPlugins.LPEngagementView.prototype._show=funct ion(el){if(el!==null&&el.style!==null){el.style.display='block'}};lpTagConfig.ta gPlugins.LPEngagementView.prototype.addToPage=function(){var that=this;this._cre ateButtonDomContainer();if(this._data.layout.position.type==='anchor'){var selec tedDiv=lpTagConfig.tagPlugins.api.utils.getObjById(this._data.layout.position.di vId);if(!selectedDiv){throw new Error('div with the divId that was set does not exist.')}this._addAnchorDivToPage(selectedDiv,this._containerEl)}else{this._addF ixedDivToPage(this._containerEl)}lpTagConfig.utils.registerEvent('LPCHAT_BROWSER _RESIZE',function(){that.setStatePosition(that._currentShownStateData)});this._s how(this._containerEl)};lpTagConfig.tagPlugins.LPEngagementView.prototype.attach Events=function(){this._attachOnClickEvent()};lpTagConfig.tagPlugins.LPEngagemen tView.prototype._attachOnClickEvent=function(){var that=this;if(this._containerE l){this._containerEl['onclick']=function(){that._doBehaviourClickAction(that)}}} ;lpTagConfig.tagPlugins.LPEngagementView.prototype._doBehaviourClickAction=funct ion(data){lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_ENGAGEMENT_ACCEP TED',{engagementId:this._data.id,engagementType:this._data.type,currentRepAvStat eData:data._currentShownStateData});lpTagConfig.tagPlugins.api.utils.doBehaviour ClickAction(data)};lpTagConfig.tagPlugins.LPEngagementView.prototype._close=func tion(){this._hide(this._containerEl)};lpTagConfig.tagPlugins.LPEngagementView.pr ototype._updateButtonCursor=function(repAvStateData){this._containerEl.style.cur sor=(repAvStateData.behaviour&&repAvStateData.behaviour.clickAction.type==='none ')||lpTagConfig.tagPlugins.api.utils.isClearedRepAvState(repAvStateData)?'auto': 'pointer'};lpTagConfig.tagPlugins.LPEngagementView.prototype._createButtonDomCon tainer=function(){var containerJson=this._getContainerConf();this._containerEl=l pTagConfig.lpJsonToDom.convert({containers:containerJson})[0];if(typeof this._co ntainerEl==='undefined'){throw new Error('Error creating tagPlugin container (id : '+this._data.id+')')}};lpTagConfig.tagPlugins.LPEngagementView.prototype._crea teDomRepAvState=function(repAvStateData){var stateContainerJson=this._getRepAvSt ateContainerConf(repAvStateData),stateContainerEl=lpTagConfig.lpJsonToDom.conver t({containers:stateContainerJson})[0];var innerElemsDomArr=lpTagConfig.lpJsonToD om.convert(repAvStateData.presentation.elements);for(var i=0;i<innerElemsDomArr. length;i++){stateContainerEl.appendChild(innerElemsDomArr[i])}this._containerEl. appendChild(stateContainerEl);repAvStateData.domObj=stateContainerEl;return stat eContainerEl};lpTagConfig.tagPlugins.LPEngagementView.prototype._addAnchorDivToP age=function(selectedDiv,tagPluginContainer){switch(this._data.layout.position.d ivIdAnchor){case 'lastChild':selectedDiv.appendChild(tagPluginContainer);break;c

ase 'firstChild':var firstEl=lpTagConfig.tagPlugins.api.utils.firstElementChild( selectedDiv);selectedDiv.insertBefore(tagPluginContainer,firstEl);break;case 'be fore':selectedDiv.parentNode.insertBefore(tagPluginContainer,selectedDiv);break; case 'after':var nextEl=lpTagConfig.tagPlugins.api.utils.nextElementSibling(sele ctedDiv);selectedDiv.parentNode.insertBefore(tagPluginContainer,nextEl);break;de fault:selectedDiv.appendChild(tagPluginContainer);break}};lpTagConfig.tagPlugins .LPEngagementView.prototype._addFixedDivToPage=function(tagPluginContainer){var parentContainer,divId=this._data.layout.position.divId;if(!divId||lpTagConfig.ut ils.getObjById(divId)){parentContainer=this.getFixedParentContainer();parentCont ainer.appendChild(tagPluginContainer)}};lpTagConfig.tagPlugins.LPEngagementView. prototype._getContainerConf=function(){var layoutData=this._data.layout,conf={id :this._data.id,type:layoutData.position.type,css:{width:layoutData.size.width,he ight:layoutData.size.height,zIndex:this._zIndex||'auto',display:'none'}};if(conf .type==='anchor'){conf.css.position='relative'}else{conf.css.position=lpTagConfi g.tagPlugins.api.utils.isPositionFixed()?'fixed':'absolute'}return conf};lpTagCo nfig.tagPlugins.LPEngagementView.prototype._getRepAvStateContainerConf=function( repAvStateData){var containerDimensions=this._getRepAvStateContainerDimensions(r epAvStateData),conf={css:{backgroundColor:repAvStateData.presentation.background .color,backgroundImage:repAvStateData.presentation.background.image,borderWidth: repAvStateData.presentation.border.width,borderColor:repAvStateData.presentation .border.color,borderRadius:repAvStateData.presentation.border.radius,width:conta inerDimensions.width,height:containerDimensions.height,zIndex:this._zIndex,posit ion:'relative',display:'none'}};return conf};lpTagConfig.tagPlugins.LPEngagement View.prototype._getRepAvStateContainerDimensions=function(repAvStateData){var co ntainerDimensions={};if(lpTagConfig.utils.isIEQuirksMode()||typeof repAvStateDat a.presentation.size==='undefined'){containerDimensions.width=this._data.layout.s ize.width;containerDimensions.height=this._data.layout.size.height}else{containe rDimensions.width=repAvStateData.presentation.size.width;containerDimensions.hei ght=repAvStateData.presentation.size.height}return containerDimensions};lpTagCon fig.tagPlugins.LPButtonView=function(){};lpTagConfig.tagPlugins.LPButtonView.pro totype=new lpTagConfig.tagPlugins.LPEngagementView();lpTagConfig.tagPlugins.LPBu ttonView.prototype.setData=function(data){lpTagConfig.tagPlugins.LPEngagementVie w.prototype.setData.call(this,data);if(data.layout.position.type==='fixed'){this ._zIndex=9999}};lpTagConfig.tagPlugins.LPButtonView.prototype.showState=function (showData){var repAvStateContainerEl=null;if(showData.repAvStateData){repAvState ContainerEl=showData.repAvStateData.domObj||this._createDomRepAvState(showData.r epAvStateData)}if(repAvStateContainerEl!==this._currentShownRepAvStateEl){lpTagC onfig.tagPlugins.LPEngagementView.prototype.showState.call(this,showData);this._ updateButtonCursor(showData.repAvStateData);if(this._currentShownRepAvStateEl){t his._hide(this._currentShownRepAvStateEl)}if(repAvStateContainerEl!==null){this. _updateButtonCursor(showData.repAvStateData);this._show(repAvStateContainerEl)}t his._currentShownRepAvStateEl=repAvStateContainerEl;this._currentShownStateData= showData;lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_BUTTON_STATE_DISP LAYED',{target:this,showData:showData})}};lpTagConfig.tagPlugins.LPButtonView.pr ototype._close=function(){lpTagConfig.tagPlugins.LPEngagementView.prototype._clo se.call(this);lpTagConfig.tagPlugins.api.utils.publishEvent('LP_CHAT_BUTTON_CLOS E')};lpTagConfig.tagPlugins.LPInvitationView=function(){};lpTagConfig.tagPlugins .LPInvitationView.prototype=new lpTagConfig.tagPlugins.LPEngagementView();lpTagC onfig.tagPlugins.LPInvitationView.prototype.setData=function(data){lpTagConfig.t agPlugins.LPEngagementView.prototype.setData.call(this,data);this._zIndex=10000} ;lpTagConfig.tagPlugins.LPInvitationView.prototype._doBehaviourClickAction=funct ion(currentRepAvStateData){lpTagConfig.tagPlugins.LPEngagementView.prototype._do BehaviourClickAction.call(this,currentRepAvStateData);this._close()};lpTagConfig .tagPlugins.LPInvitationView.prototype.showState=function(showData){lpTagConfig. tagPlugins.LPEngagementView.prototype.showState.call(this,showData);var repAvSta teContainerEl=this._createDomRepAvState(showData.repAvStateData);this._updateBut tonCursor(showData.repAvStateData);this._show(repAvStateContainerEl);this._curre ntShownRepAvStateEl=repAvStateContainerEl;this._currentShownStateData=showData;l pTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_INVITATION_DISPLAYED',{targ et:this,showData:showData});this._doAnimation(showData.overlay.invitationType)};

lpTagConfig.tagPlugins.LPInvitationView.prototype._doAnimation=function(invitati onType){switch(invitationType){case 'floating':this._animateFloating();break;cas e 'fixed':break;default:break}};lpTagConfig.tagPlugins.LPInvitationView.prototyp e._animateFloating=function(){var that=this,doneAnimations={toTheRight:false,toT heLeft:false};this._doFloatingAnimation(doneAnimations);this._containerEl.onmous eover=function(){lpTagConfig.lpAnimate.stop(that._containerEl.id)};this._contain erEl.onmouseout=function(){that._doFloatingAnimation(doneAnimations)}};lpTagConf ig.tagPlugins.LPInvitationView.prototype._doFloatingAnimation=function(doneAnima tions){var pageDims=lpTagConfig.tagPlugins.api.utils.getPageDimensions(),invitat ionWidth=this._data.layout.size.width,leftCoordinate=lpTagConfig.tagPlugins.api. utils.cssNumStrToInt(this._containerEl.style.left),millisPerPixel=7,targetLeftCo ordinate=30,that=this;if(!doneAnimations.toTheRight){lpTagConfig.lpAnimate.anima te(this._containerEl,{name:'left',targetVal:pageDims.windowWidth-invitationWidth },{easing:'linear',duration:(pageDims.windowWidth-invitationWidth-leftCoordinate )*millisPerPixel,callback:function(){doneAnimations.toTheRight=true;that._doFloa tingAnimation(doneAnimations)}})}if(doneAnimations.toTheRight&&!doneAnimations.t oTheLeft){lpTagConfig.lpAnimate.animate(this._containerEl,{name:'left',targetVal :targetLeftCoordinate},{easing:'linear',duration:(leftCoordinate-targetLeftCoord inate)*millisPerPixel,callback:function(){doneAnimations.toTheLeft=true;that._co ntainerEl.onmouseover=null;that._containerEl.onmouseout=null}})}};lpTagConfig.ta gPlugins.LPInvitationView.prototype.addToPage=function(){this._createButtonDomCo ntainer();this._addFixedDivToPage(this._containerEl);this._show(this._containerE l)};lpTagConfig.tagPlugins.LPInvitationView.prototype.attachEvents=function(){lp TagConfig.tagPlugins.LPEngagementView.prototype._attachOnClickEvent.call(this);t his._attachOnCloseButtonClickEvent()};lpTagConfig.tagPlugins.LPInvitationView.pr ototype._attachOnCloseButtonClickEvent=function(){var that=this;lpTagConfig.tagP lugins.api.utils.registerEvent('LPCHAT_CLOSE_ENGAGEMENT_CLICK',function(evName,e vData){evData=lpTagConfig.utils.getDataFromFiredEvent(evName,evData);that.close( );lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_INVITATION_REJECTED');lp TagConfig.tagPlugins.api.utils.stopEventBubble(evData.htmlEvent)})};lpTagConfig. tagPlugins.LPInvitationView.prototype.close=function(){lpTagConfig.tagPlugins.LP EngagementView.prototype._close.call(this)};lpTagConfig.tagPlugins.LPPlugin=lpTa gConfig.LPObject.extend({_ctor:function(view,data){this._super();if(!data||!view ){this.log('LPPLUGIN.ctor(): Invalid tagPlugin data or/and view','ERROR');return }this._view=view;this._data=data;this._id=this._data.id;this._view.setData(this. _data);this.onEvent('INIT_PLUGIN',{tagPluginId:this._id})},getView:function(){re turn this._view},getData:function(){return this._data},start:function(){var that =this;this.onEvent('START',{tagPluginId:this._id});this.create()},create:functio n(){this.onEvent('CREATE',{tagPluginId:this._id})},_reportImpression:function(im prUrl){this.makeScriptCall(imprUrl);this.onEvent('IMPRESSION',{tagPluginId:this. _id,extra:[imprUrl]})},addToPage:function(){this._view.addToPage()},attachEvents :function(){this._view.attachEvents()}});lpTagConfig.tagPlugins.LPEngagement=lpT agConfig.tagPlugins.LPPlugin.extend({_ctor:function(view,data){this._super(view, data)},create:function(){this._super();if(!this._view.getFixedParentContainer()) {throw new Error('LPPlugin.create(): container element does not exist.')}this.ad dToPage();this.attachEvents()},start:function(){this._super()}});lpTagConfig.tag Plugins.LPButton=lpTagConfig.tagPlugins.LPEngagement.extend({_ctor:function(data ){var eventName,LPButtonViewObject=lpTagConfig.ovr&&lpTagConfig.ovr.tagPlugins&& lpTagConfig.ovr.tagPlugins.LPButtonView?lpTagConfig.tagPlugins.ovr.LPButtonView: lpTagConfig.tagPlugins.LPButtonView,view=new LPButtonViewObject();this._super(vi ew,data);var that=this,showStateCallback=function(repAvStateData){that._view.sho wState(repAvStateData)};var StateManager=lpTagConfig.ovr&&lpTagConfig.ovr.tagPlu gins&&lpTagConfig.ovr.tagPlugins.LPButtonStateManager?lpTagConfig.ovr.tagPlugins .LPButtonStateManager:lpTagConfig.tagPlugins.LPButtonStateManager;this._stateMan ager=new StateManager(data.id,data.states,showStateCallback,{id:data.skillId,nam e:data.skillName},data.availability);if(lpTagConfig.utils.isLEChatAAEnabled()){e ventName=lpTagConfig.utils.format('LPCHAT_SHOW_INSTANCE_BY_ADVANCED_AVAILABILITY _{0}',String(data.id));lpTagConfig.utils.log('Registering to Button id: '+eventN ame,'INFO');lpTagConfig.utils.registerEvent(eventName,function(evData){lpTagConf ig.utils.log('event was captured by listener, eventName: '+eventName,'INFO');var

curInstance,i;if(data.useRoom!==false){data.skillId=evData.roomSkillId;data.ski llName=evData.roomSkillName}for(i=0;i<data.states.length;i++){curInstance=data.s tates[i];if(curInstance.id===evData.instanceId){if(curInstance.useRoom!==false){ curInstance.skillId=evData.roomSkillId;curInstance.skillName=evData.roomSkillNam e;break}}}that._stateManager.startAdvancedAvailabilityFlow(evData)})}},create:fu nction(){this._super();this._stateManager.run()}});lpTagConfig.tagPlugins.LPInvi tation=lpTagConfig.tagPlugins.LPEngagement.extend({_ctor:function(data){var LPBu ttonViewObject=lpTagConfig.ovr&&lpTagConfig.ovr.tagPlugins&&lpTagConfig.ovr.tagP lugins.LPButtonView?lpTagConfig.tagPlugins.ovr.LPInvitationView:lpTagConfig.tagP lugins.LPInvitationView,view=new LPButtonViewObject();this._super(view,data);var that=this,showStateCallback=function(repAvStateData){that._view.showState(repAv StateData)};var StateManager=lpTagConfig.ovr&&lpTagConfig.ovr.tagPlugins&&lpTagC onfig.ovr.tagPlugins.LPInvitationStateManager?lpTagConfig.ovr.tagPlugins.LPInvit ationStateManager:lpTagConfig.tagPlugins.LPInvitationStateManager;this._stateMan ager=new StateManager(data.states,showStateCallback,{id:data.skillId,name:data.s killName},data.availability)},start:function(stateManagerConf){this._stateManage rConf=stateManagerConf;this._super()},create:function(){this._super();this._stat eManager.run(this._stateManagerConf)}});lpTagConfig.tagPlugins.buttonsManager={s tart:function(){lpTagConfig.tagPlugins.api.utils.registerEvent('LPCHAT_BUTTON_ST ATE_DISPLAYED',function(evName,evData){evData=lpTagConfig.utils.getDataFromFired Event(evName,evData);if(evData.showData.repAvKey!==lpTagConfig.tagPlugins.feedsM anager.feeds.repAv.constants.STATES.NONE){lpTagConfig.tagPlugins.api.utils.repor tImpression(evData)}});this._handleInPageButtons()},_handleInPageButtons:functio n(){var pluginJSON,i;for(i=0;i<lpTagConfig.tagPlugins.jsonsArr.length;i++){plugi nJSON=lpTagConfig.tagPlugins.jsonsArr[i];if(this._isInPage(pluginJSON)){this._sh owButton(pluginJSON)}}},getInstanceFromStartPage:function(engagementId){var retO bject=null;lpTagConfig.utils.log('in _getInstanceFromStartPage for Button '+enga gementId,'INFO');var firedEvents=lpTagConfig.utils.hasFired('LP_ADVANCED_AVAILAB ILITY');if(firedEvents.length>0){for(var i=0;i<firedEvents.length;i++){lpTagConf ig.utils.log('StartPage already fired for engagementId: '+firedEvents[i].data.en gagementId,'INFO');if(firedEvents[i].data.type!=='invitation'){if(engagementId== =firedEvents[i].data.engagementId){retObject={'instanceId':firedEvents[i].data.i nstanceId,'repAv':firedEvents[i].data.repAv}}}}}else{return null}return retObjec t},_isInPage:function(pluginJSON){return lpTagConfig.utils.getObjById(pluginJSON .layout.position.divId)||pluginJSON.type==='sticky_button'},_showButton:function (pluginJSON){var newTagPlugin;newTagPlugin=lpTagConfig.tagPlugins.factory(plugin JSON);lpTagConfig.tagPlugins.pluginsArr.push(newTagPlugin);lpTagConfig.tagPlugin s.inPagePluginsArr[newTagPlugin._data.id]=newTagPlugin._data;newTagPlugin.start( )}};lpTagConfig.tagPlugins.invitationsManager={CONSTANTS:{INVITATION_REJECTED:'L PChatIR',ACCEPTED_INVITATION_SEGMENTS:'LPChatAIS',INVITATION_TYPES:{SEGMENT:3,AG ENT:4,SERVER:5},VISITOR_STATUS:{CHAT_STATUS:'CHAT_STATUS',ENGAGE_STATUS:'ENGAGE_ STATUS',REJECT_STATUS:'REJECT_STATUS'}},_utils:lpTagConfig.utils,_startedInvitat ionTrigger:null,_lpInvitationStarted:null,_lpInvitationShown:null,_lpInvitationA ccepted:null,_lpInvitationTimeout:null,_currentShownInvitationShowData:null,_cur rentServerInvitationOnPage:null,_currentInvitation:null,start:function(){this._i nitCurInvitationState();this._registerInvitationListeners();this._handleSegmente dInvitation();this._handleInviteToChat();if(lpTagConfig.utils.isLEChatAAEnabled( )){this._handleFiredEventsInStartPage()}},getCurrentInvitation:function(){return this._currentInvitation},_getPluginByInstance:function(instanceId){var curPlugi nJSON,curInstance,i,j;for(i=0;i<lpTagConfig.tagPlugins.jsonsArr.length;i++){curP luginJSON=lpTagConfig.tagPlugins.jsonsArr[i];for(j=0;j<curPluginJSON.states.leng th;j++){curInstance=curPluginJSON.states[j];if(curInstance.id===instanceId){retu rn{plugin:curPluginJSON,instance:curInstance}}}}return null},_handleFiredEventsI nStartPage:function(){lpTagConfig.utils.log('in _handleFiredEventsInStartPage fo r Invitation','INFO');var firedEvents=lpTagConfig.utils.hasFired('LP_ADVANCED_AV AILABILITY'),curEventData;if(firedEvents.length>0){for(var i=0;i<firedEvents.len gth;i++){curEventData=firedEvents[i].data;lpTagConfig.utils.log('StartPage alrea dy fired for invitationId: '+curEventData.engagementId,'INFO');if(curEventData.t ype==='invitation'){lpTagConfig.tagPlugins.api.utils.publishEvent('LPCHAT_SHOW_I NVITATION_ADVANCED_AVAILABILITY',curEventData)}}}},_showInvitationHandlerAdvance

dAvailability:function(instanceId){if(!this._isNewServerInvitationCurrentlyShown ()){var retObject=this._getPluginByInstance(instanceId);if(retObject!==null){thi s._showInvitation(retObject.plugin,retObject.instance);this._setNewServerInvitat ionCurrentlyShown(true)}else{lpTagConfig.utils.log('Unable to get pluginJSON for instanceId: '+instanceId,'ERROR')}}},_initCurInvitationState:function(){this._s etInvitationStarted(false);this._setInvitationAccepted(false);this._setInvitatio nTimeout(false)},_handleSegmentedInvitation:function(){if(!lpTagConfig.utils.isL EChatAAEnabled()){var that=this;this._utils.registerEvent('LPCHAT_FEEDS_SAMPLED' ,function(evName,evData){evData=lpTagConfig.utils.getDataFromFiredEvent(evName,e vData);var pluginJSON,instanceToShow,i;if(that._isInvitationRejected()||that._is InvitationCurrentlyShown()||that._isChatRequested()){return}for(i=0;i<lpTagConfi g.tagPlugins.jsonsArr.length;i++){pluginJSON=lpTagConfig.tagPlugins.jsonsArr[i]; if(pluginJSON.type==='invitation'){instanceToShow=that._getSegmentedInstance(plu ginJSON,evData.segments);if(instanceToShow!==null&&evData.repAv&&that._isAvailab ilityRepAvOnline(instanceToShow,evData.repAv)){that._showSegmentedInvitation(plu ginJSON,instanceToShow);break}}}});lpTagConfig.tagPlugins.feedsManager.publishFe eds()}},_showSegmentedInvitation:function(invitationJSON,instanceToShow){var tha t=this;this._utils.publishEvent('LPCHAT_INVITATION_STARTED',{trigger:this.CONSTA NTS.INVITATION_TYPES.SEGMENT});if(instanceToShow.delay){setTimeout(function(){if (!that._isOldInvitationCurrentlyShown()&&!that._isChatRequested()){that._showInv itation(invitationJSON,instanceToShow)}},instanceToShow.delay*1000)}else{this._s howInvitation(invitationJSON,instanceToShow)}},_addAcceptedInvitationSegment:fun ction(segmentHash){var acceptedInvitationSegments=this._getAcceptedInvitationSeg ments();if(!this._isAcceptedInvitationSegment(segmentHash)){acceptedInvitationSe gments.push(segmentHash)}this._utils.setCookie({name:this.CONSTANTS.ACCEPTED_INV ITATION_SEGMENTS,value:acceptedInvitationSegments.join(',')})},_getAcceptedInvit ationSegments:function(){var acceptedInvitationSegmentsStr=this._utils.getCookie (this.CONSTANTS.ACCEPTED_INVITATION_SEGMENTS);return acceptedInvitationSegmentsS tr?acceptedInvitationSegmentsStr.split(','):[]},_isAcceptedInvitationSegment:fun ction(segmentHash){var acceptedInvitationSegments=this._getAcceptedInvitationSeg ments();for(var i=0;i<acceptedInvitationSegments.length;i++){if(acceptedInvitati onSegments[i]===segmentHash){return true}}return false},_showInvitation:function (pluginJSON,instanceToShow){var stateManagerConf={instanceToShow:instanceToShow} ;this._currentShownInvitationShowData={engagementId:pluginJSON.id,instanceId:ins tanceToShow.id,segmentId:instanceToShow.segmentId,skillId:instanceToShow.skillId };this._currentInvitation=lpTagConfig.tagPlugins.factory(pluginJSON);lpTagConfig .tagPlugins.pluginsArr.push(this._currentInvitation);lpTagConfig.tagPlugins.inPa gePluginsArr[this._currentInvitation._data.id]=this._currentInvitation._data;thi s._currentInvitation.start(stateManagerConf)},_getSegmentedInstance:function(plu ginJSON,segmentsFeedData){var instanceToShow=null,curInstance,curSegment,i,j;for (i=0;i<pluginJSON.states.length;i++){curInstance=pluginJSON.states[i];if(curInst ance.segmentHash==='all'&&!this._isAcceptedInvitationSegment(curInstance.segment Hash)){instanceToShow=curInstance}else if(segmentsFeedData){for(j=0;j<segmentsFe edData.length;j++){curSegment=segmentsFeedData[j];if(curInstance.segmentHash===c urSegment&&!this._isAcceptedInvitationSegment(curSegment)){instanceToShow=curIns tance}}}if(instanceToShow){break}}return instanceToShow},_isAvailabilityRepAvOnl ine:function(instance,repAvFeed){var availabilityId=lpTagConfig.tagPlugins.State Manager.prototype._getAvailabilityId(instance.skillId,lpTagConfig.tagPlugins.fee dsManager.feeds.repAv.availability.getAvailabilityTypeId(instance.availability.t ype),instance.availability.seconds);return repAvFeed[availabilityId].state===lpT agConfig.tagPlugins.feedsManager.feeds.repAv.constants.STATES.ONLINE},_handleInv iteToChat:function(){var that=this;this._utils.registerEvent('LPCHAT_INVITE_TO_C HAT',function(evName,evData){evData=lpTagConfig.utils.getDataFromFiredEvent(evNa me,evData);that._inviteToChatHandler(evData.invitations[0].id)})},_inviteToChatH andler:function(defaultInvitationId){var pluginJSON,i;for(i=0;i<lpTagConfig.tagP lugins.jsonsArr.length;i++){pluginJSON=lpTagConfig.tagPlugins.jsonsArr[i];if(plu ginJSON.id===defaultInvitationId&&!this._isInvitationCurrentlyShown()){this._uti ls.publishEvent('LPCHAT_INVITATION_STARTED',{trigger:this.CONSTANTS.INVITATION_T YPES.AGENT});this._showInvitation(lpTagConfig.tagPlugins.jsonsArr[i],pluginJSON. states[pluginJSON.states.length-1]);break}}},_registerInvitationListeners:functi

on(){this._registerOldInvitationListeners();this._registerNewInvitationListeners ()},_registerOldInvitationListeners:function(){var that=this;if(this._utils.hasF ired('LP_INV_START').length>0){this._initCurInvitationState();this._setInvitatio nStarted(true)}if(this._utils.hasFired('LP_INV_SHOWN').length>0){this._setInvita tionShown(true);this._setLPVisitorStatus(this.CONSTANTS.VISITOR_STATUS.ENGAGE_ST ATUS)}this._utils.registerEvent('LP_INV_START',function(){that._initCurInvitatio nState();that._setInvitationStarted(true)});this._utils.registerEvent('LP_INV_SH OWN',function(){that._setInvitationShown(true);that._setLPVisitorStatus(that.CON STANTS.VISITOR_STATUS.ENGAGE_STATUS)});this._utils.registerEvent('LP_INV_DECLINE ',function(){that._setInvitationRejected(true)});this._utils.registerEvent('LP_I NV_TIMEOUT',function(){that._setInvitationTimeout(true)})},_registerNewInvitatio nListeners:function(){var that=this,inviteToChatEventData;if(this._utils.hasFire d('LPCHAT_INVITE_TO_CHAT').length>0){inviteToChatEventData=that._utils.hasFired( 'LPCHAT_INVITE_TO_CHAT')[0].evData||that._utils.hasFired('LPCHAT_INVITE_TO_CHAT' )[0].data;that._inviteToChatHandler(inviteToChatEventData.invitations[0].id)}thi s._utils.registerEvent('LPCHAT_INVITATION_STARTED',function(evName,evData){evDat a=lpTagConfig.utils.getDataFromFiredEvent(evName,evData);that._initCurInvitation State();that._setInvitationStarted(true);that._startedInvitationTrigger=evData.t rigger});this._utils.registerEvent('LPCHAT_INVITATION_DISPLAYED',function(evName ,evData){evData=lpTagConfig.utils.getDataFromFiredEvent(evName,evData);var param s,value;if(that._startedInvitationTrigger===that.CONSTANTS.INVITATION_TYPES.SEGM ENT){value=1}if(that._startedInvitationTrigger===that.CONSTANTS.INVITATION_TYPES .SERVER){value=2}params=[{key:'ibs',value:value}];that._reportInvitationShown(pa rams);that._reportInvitationImpression(evData);that._setInvitationShown(true);th at._setLPVisitorStatus(that.CONSTANTS.VISITOR_STATUS.ENGAGE_STATUS);that._handle InvitationTimeout(that._currentInvitation._data.timeout)});this._utils.registerE vent('LPCHAT_ENGAGEMENT_ACCEPTED',function(evName,evData){evData=lpTagConfig.uti ls.getDataFromFiredEvent(evName,evData);if(evData.engagementType==='invitation') {that._setInvitationAccepted(true);that._setLPVisitorStatus(that.CONSTANTS.VISIT OR_STATUS.CHAT_STATUS);that._addAcceptedInvitationSegment(evData.showData.curren tRepAvStateData.segmentHash)}if(!evData.currentRepAvStateData.behaviour){that._s etChatRequested()}});this._utils.registerEvent('LPCHAT_INVITATION_REJECTED',func tion(){that._reportInvitationRejected();that._setInvitationRejected(true);that._ setNewServerInvitationCurrentlyShown(false)});if(lpTagConfig.utils.isLEChatAAEna bled()){this._utils.registerEvent('LPCHAT_SHOW_INVITATION_ADVANCED_AVAILABILITY' ,function(evData){if(that._isChatRequested()){return}var curEngagement,curInstan ce,data,i;for(i=0;i<lpTagConfig.tagPlugins.jsonsArr.length;i++){curEngagement=lp TagConfig.tagPlugins.jsonsArr[i];if(curEngagement.id===evData.engagementId){data =curEngagement;break}}if(data.useRoom!==false){data.skillId=evData.roomSkillId;d ata.skillName=evData.roomSkillName}for(i=0;i<data.states.length;i++){curInstance =data.states[i];if(curInstance.id===evData.instanceId){if(curInstance.useRoom!== false){curInstance.skillId=evData.roomSkillId;curInstance.skillName=evData.roomS killName;break}}}that._utils.publishEvent('LPCHAT_INVITATION_STARTED',{trigger:t hat.CONSTANTS.INVITATION_TYPES.SERVER});that._showInvitationHandlerAdvancedAvail ability(evData.instanceId)})}},_reportInvitationShown:function(params){var cPara m=new hcArrayStorage();lpMTagConfig.inviteShown=true;cParam=lpMTag.lpSetCallPara ms('mTagInviteShown');cParam.add('channel','web');cParam.add('t','1');if(params) {for(var i=0;i<params.length;i++){cParam.add(params[i].key,params[i].value)}}lpM Tag.mtagAddToQueue(lpMTag.lpURL,cParam,null,false)},_reportInvitationImpression: function(evData){lpTagConfig.tagPlugins.api.utils.reportImpression(evData)},_han dleInvitationTimeout:function(timeout){var that=this,timeoutSecs;if(timeout){tim eoutSecs=timeout;setTimeout(function(){if(that._isNewInvitationCurrentlyShown()) {that._currentInvitation.getView().close();that._setInvitationTimeout(true);that ._setNewServerInvitationCurrentlyShown(false);var invitationConstTypes=that.CONS TANTS.INVITATION_TYPES,t=that._startedInvitationTrigger===invitationConstTypes.A GENT?invitationConstTypes.AGENT:invitationConstTypes.SEGMENT;lpTagConfig.tagPlug ins.api.utils.reportTimeOutEvent(timeout/1000,'web',t);that._utils.log('invitati on timeout','INFO')}},timeoutSecs)}},_isInvitationStarted:function(){return this ._lpInvitationStarted},_isInvitationShown:function(){return this._lpInvitationSh own},_isInvitationAccepted:function(){return this._lpInvitationAccepted},_isInvi

tationRejected:function(){if(lpTagConfig.utils.isLEChatAAEnabled()){return false }return this._utils.getCookie(this.CONSTANTS.INVITATION_REJECTED)==='true'},_isI nvitationTimeout:function(){return this._lpInvitationTimeout},_isInvitationCurre ntlyShown:function(){return this._isNewInvitationCurrentlyShown()||this._isOldIn vitationCurrentlyShown()},_isNewInvitationCurrentlyShown:function(){return this. _isInvitationStarted()&&!this._isInvitationAccepted()&&!this._isInvitationReject ed()&&!this._isInvitationTimeout()},_isNewServerInvitationCurrentlyShown:functio n(){return this._currentServerInvitationOnPage},_isChatRequested:function(){retu rn this._lpChatRequested},_setNewServerInvitationCurrentlyShown:function(isOnPag e){return this._currentServerInvitationOnPage=isOnPage},_isOldInvitationCurrentl yShown:function(){return lpMTag.lpVisitorStatus==='ENGAGE_STATUS'},_setInvitatio nStarted:function(isInvitationStarted){this._lpInvitationStarted=isInvitationSta rted},_setInvitationShown:function(isInvitationShown){this._lpInvitationShown=is InvitationShown},_setInvitationAccepted:function(isInvitationAccepted){this._lpI nvitationAccepted=isInvitationAccepted},_setLPVisitorStatus:function(status){lpM Tag.lpVisitorStatus=status},_setInvitationRejected:function(isInvitationRejected ){this._utils.setCookie({name:this.CONSTANTS.INVITATION_REJECTED,value:isInvitat ionRejected.toString()})},_setInvitationTimeout:function(isInvitationTimeout){th is._lpInvitationTimeout=isInvitationTimeout},_setChatRequested:function(){this._ lpChatRequested=true},_reportInvitationRejected:function(){var cParam=new hcArra yStorage();lpMTagConfig.inviteShown=false;this._setLPVisitorStatus(this.CONSTANT S.VISITOR_STATUS.REJECT_STATUS);cParam=lpMTag.lpSetCallParams('mTagRejectChat'); cParam.add('channel','web');if(this._startedInvitationTrigger===this.CONSTANTS.I NVITATION_TYPES.AGENT){cParam.add('t',this.CONSTANTS.INVITATION_TYPES.AGENT)}els e{cParam.add('t',this.CONSTANTS.INVITATION_TYPES.SEGMENT)}if(this._currentShownI nvitationShowData.instanceId){cParam.add('leInsId',this._currentShownInvitationS howData.instanceId)}if(this._currentShownInvitationShowData.skillId){cParam.add( 'skId',this._currentShownInvitationShowData.skillId)}if(this._currentShownInvita tionShowData.segmentId){cParam.add('leSegId',this._currentShownInvitationShowDat a.segmentId)}if(this._currentShownInvitationShowData.engagementId){cParam.add('l eEngId',this._currentShownInvitationShowData.engagementId)}lpMTag.mtagAddToQueue (lpMTag.lpURL,cParam,null,false);this._currentShownInvitationShowData=null;retur n false}};lpTagConfig.tagPlugins.factory=function(data){var tagPlugin;switch(dat a.type){case 'button':case 'sticky_button':tagPlugin=new lpTagConfig.tagPlugins. LPButton(data);break;case 'invitation':tagPlugin=new lpTagConfig.tagPlugins.LPIn vitation(data);break;default:throw new Error('tagPlugin type does not exist','ER ROR');break}return tagPlugin};lpTagConfig.tagPlugins.start=function(){try{lpTagC onfig.tagPlugins.transformJsons();lpTagConfig.tagPlugins.preConfigFeeds();lpTagC onfig.utils.registerToBrowserEvents();lpTagConfig.tagPlugins.feedsManager.run({} );lpTagConfig.tagPlugins.buttonsManager.start();lpTagConfig.tagPlugins.runOnVisi torExist()}catch(e){lpTagConfig.utils.log(e.message,'ERROR')}};lpTagConfig.tagPl ugins.runOnVisitorExist=function(){var startManagers=function(){lpTagConfig.tagP lugins.invitationsManager.start()};if(lpMTagConfig.isVisitor){startManagers()}el se{lpMTagConfig.ifVisitorCode=lpMTagConfig.ifVisitorCode||[];lpMTagConfig.ifVisi torCode.push(startManagers)}};lpTagConfig.tagPlugins.preConfigFeeds=function(){i f(lpTagConfig.utils.isLEChatAAEnabled()){lpTagConfig.tagPlugins.setFeedRegistrat ion(['advancedAvailability'])}else{lpTagConfig.tagPlugins.setFeedRegistration([' segments','repAv'])}};lpTagConfig.tagPlugins.setFeedRegistration=function(feedNa mes){var i;for(i=0;i<feedNames.length;i++){var currentFeed=lpTagConfig.tagPlugin s.feedsManager.feeds[feedNames[i]];if(currentFeed!==null){currentFeed.setShouldR egister(true);lpTagConfig.utils.log('Registering to feed: '+feedNames[i],'INFO') }else{lpTagConfig.utils.log('feed: '+feedNames[i]+' is null','ERROR')}}};lpTagCo nfig.tagPlugins.transformJsons=function(){var curPluginJSON,curInstance,i,j;for( i=0;i<lpTagConfig.tagPlugins.jsonsArr.length;i++){curPluginJSON=lpTagConfig.tagP lugins.jsonsArr[i];curPluginJSON.skillId=curPluginJSON.skillId||-1;curPluginJSON .timeout=curPluginJSON.timeout||120000;curPluginJSON.availability=curPluginJSON. availability||{type:lpTagConfig.tagPlugins.feedsManager.feeds.repAv.constants.AV AILABILITY.REGULAR.type,seconds:0};lpTagConfig.tagPlugins.feedsManager.feeds.rep Av.availability.add({skillId:curPluginJSON.skillId,availability:curPluginJSON.av ailability});curPluginJSON.states=curPluginJSON.states||[];for(j=0;j<curPluginJS

ON.states.length;j++){curInstance=curPluginJSON.states[j];lpTagConfig.tagPlugins .replaceImagePathsFromInstance(curInstance);curInstance.skillId=curInstance.skil lId||curPluginJSON.skillId||-1;curInstance.skillName=curInstance.skillName||curP luginJSON.skillName;curInstance.timeout=curInstance.timeout||curPluginJSON.timeo ut;curInstance.useRoom=typeof curInstance.useRoom!=='undefined'?curInstance.useR oom:curPluginJSON.useRoom;curInstance.segmentId=curInstance.segmentId||'';curIns tance.segmentHash=curInstance.segmentHash||'all';curInstance.availability=curIns tance.availability||curPluginJSON.availability;lpTagConfig.tagPlugins.feedsManag er.feeds.repAv.availability.add({skillId:curInstance.skillId,availability:curIns tance.availability})}}};lpTagConfig.tagPlugins.replaceImagePathsFromInstance=fun ction(instance){var i,elements,buttons,closeButtons,images,repAvState;if(instanc e){for(var repAvKey in instance.repAv){repAvState=instance.repAv[repAvKey];eleme nts=repAvState.presentation.elements||{};buttons=elements.buttons||[];closeButto ns=elements.closeButtons||[];images=elements.images||[];if(repAvState.presentati on.background.image){repAvState.presentation.background.image=lpTagConfig.utils. updateUrlPath(repAvState.presentation.background.image)}for(i=0;i<buttons.length ;i++){if(buttons[i].css.backgroundImage){buttons[i].css.backgroundImage=lpTagCon fig.utils.updateUrlPath(buttons[i].css.backgroundImage)}}for(i=0;i<closeButtons. length;i++){closeButtons[i].imageUrl=lpTagConfig.utils.updateUrlPath(closeButton s[i].imageUrl)}for(i=0;i<images.length;i++){images[i].imageUrl=lpTagConfig.utils .updateUrlPath(images[i].imageUrl)}}}}; lpTagConfig.tagPlugins.jsonsArr.push({"id":"632080_f8385e05-68f1-4789-83fc-e2c57 588c753","name":"VC Invitation","description":"The default invitation for the Vi sitor Center","advancedAvailabilityAndConditions":true,"layout":{"position":{"ty pe":"fixed"},"size":{"height":289,"width":607}},"states":[{"id":"632080749325220 3968","name":"ES_BS_Business","segmentId":"632080_49a19dc2-7ca4-4e6c-80c3-fac39a 98faa6","segmentHash":"54d45f9c81703790812e3dc9e719ba6e","repAv":{"2":{"presenta tion":{"background":{"color":"transparent","image":""},"border":{"style":"solid" ,"color":"transparent","width":0,"radius":0},"elements":{"buttons":[{"css":{"fon tFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeight":"bold","fontSt yle":"","color":"#ffffff","left":"370","top":"197","zIndex":"1030","backgroundCo lor":"#570310","backgroundImage":"","backgroundRepeat":"repeat-x","backgroundPos ition":"bottom left","borderStyle":"solid","borderColor":"#5a010e","borderWidth" :"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"54 8","top":"0","zIndex":"2030"},"imageUrl":"https://www.capella.edu/assets/images/ chat/lp_invitation_close_button.png"}],"images":[{"css":{"left":"0","top":"0","z Index":"1005"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitat ion_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"http s://www.capella.edu/assets/images/chat/lp_invitation_photo.jpg"}],"labels":[{"cs s":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","fontWeight":"","font Style":"","color":"#ffffff","left":"354","top":"70","zIndex":"1015"},"text":"Que stions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"13","font Weight":"bold","fontStyle":"","color":"#ffffff","left":"317","top":"128","zIndex ":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily":"Aria l,Helvetica,sans-serif","fontSize":"13","fontWeight":"","fontStyle":"italic","co lor":"#dbc2be","left":"337","top":"153","zIndex":"1025"},"text":"We can answer a ll of your questions"}]},"size":{"height":289,"width":607}}}},"overrideCondition s":false,"isDefault":false,"overrideSkills":true,"skillName":"ES_BS_Business","s killId":"3","useRoom":false,"overlay":{"invitationType":"fixed","left":0,"locati on":"middle center","top":0},"delay":0},{"id":"6320801712588559644","name":"ES_B S_IT","segmentId":"632080_2c527f2d-d9e1-4ce4-9340-b05f38cd7bcf","segmentHash":"7 a8b91ce5c926fcc7ae2b8b42947981","repAv":{"2":{"presentation":{"background":{"col or":"transparent","image":""},"border":{"style":"solid","color":"transparent","w idth":0,"radius":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva, sans-serif","fontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff" ,"left":"372","top":"197","zIndex":"1030","backgroundColor":"#570310","backgroun dImage":"","backgroundRepeat":"repeat-x","backgroundPosition":"bottom left","bor derStyle":"solid","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"} ,"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2

030"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_close _button.png"}],"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUr l":"https://www.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css ":{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/ass ets/images/chat/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial , Aharoni, Verdana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#fff fff","left":"362","top":"62","zIndex":"1015"},"text":"Questions?"},{"css":{"font Family":"Verdana,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontSty le":"","color":"#ffffff","left":"314","top":"124","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif" ,"fontSize":"13","fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":" 336","top":"151","zIndex":"1025"},"text":"We can answer all of your questions"}] },"size":{"height":289,"width":607}}}},"overrideConditions":false,"isDefault":fa lse,"overrideSkills":true,"skillName":"ES_BS_IT","skillId":"4","useRoom":false," overlay":{"invitationType":"fixed","left":0,"location":"middle center","top":0}, "delay":0},{"id":"6320803481282227937","name":"ES_BS_Psychology","segmentId":"63 2080_37bc344b-e88e-48af-8cec-a67994b6e6a0","segmentHash":"ab7aba78c1f13ebd4eb323 3af2a589","repAv":{"2":{"presentation":{"background":{"color":"transparent","ima ge":""},"border":{"style":"solid","color":"transparent","width":0,"radius":0},"e lements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize" :"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"370","top":"1 96","zIndex":"1030","backgroundColor":"#570310","backgroundImage":"","background Repeat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"solid","bor derColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}]," closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"http s://www.capella.edu/assets/images/chat/lp_invitation_close_button.png"}],"images ":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capell a.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"7","top":"7 ","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_inv itation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","f ontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"359","top ":"68","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Genev a,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle":"","color":"#fffff f","left":"315","top":"129","zIndex":"1020"},"text":"Chat with an Enrollment Cou nselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","font Weight":"","fontStyle":"italic","color":"#dbc2be","left":"331","top":"154","zInd ex":"1025"},"text":"We can answer all of your questions"}]},"size":{"height":289 ,"width":607}}}},"overrideConditions":false,"isDefault":false,"overrideSkills":t rue,"skillName":"ES_BS_Psychology","skillId":"5","useRoom":false,"overlay":{"inv itationType":"fixed","left":0,"location":"middle center","top":0},"delay":0},{"i d":"6320808115732415868","name":"ES_BS_Public Safety","segmentId":"632080_83eba3 f8-81cb-417f-bb58-365209971f21","segmentHash":"4824e66f355ad06f22a7ce2e9d47464", "repAv":{"2":{"presentation":{"background":{"color":"transparent","image":""},"b order":{"style":"solid","color":"transparent","width":0,"radius":0},"elements":{ "buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fon tWeight":"bold","fontStyle":"","color":"#ffffff","left":"370","top":"197","zInde x":"1030","backgroundColor":"#570310","backgroundImage":"","backgroundRepeat":"r epeat-x","backgroundPosition":"bottom left","borderStyle":"solid","borderColor": "#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButto ns":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"http://www.cap ella.edu/assets/images/chat/lp_invitation_close_button.png"}],"images":[{"css":{ "left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/asset s/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex": "1010"},"imageUrl":"http://www.capella.edu/assets/images/chat/lp_invitation_phot o.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35 ","fontWeight":"","fontStyle":"","color":"#ffffff","left":"356","top":"70","zInd ex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif ","fontSize":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"3 11","top":"127","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"c ss":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":"","

fontStyle":"italic","color":"#dbc2be","left":"332","top":"152","zIndex":"1025"}, "text":"We can answer all of your questions"}]},"size":{"height":289,"width":607 }}}},"overrideConditions":false,"isDefault":false,"overrideSkills":true,"skillNa me":"ES_BS_Public Safety","skillId":"18","useRoom":false,"overlay":{"invitationT ype":"fixed","left":0,"location":"middle center","top":0},"delay":0},{"id":"6320 809067559238440","name":"ES_EDD_EDS","segmentId":"632080_8e72790f-7086-45d0-9592 -f9ffaaed2d57","segmentHash":"da2c7f2f9f937fd1d7ea99c72682ac4a","repAv":{"2":{"p resentation":{"background":{"color":"transparent","image":""},"border":{"style": "solid","color":"transparent","width":0,"radius":0},"elements":{"buttons":[{"css ":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeight":"bold", "fontStyle":"","color":"#ffffff","left":"370","top":"197","zIndex":"1030","backg roundColor":"#570310","backgroundImage":"","backgroundRepeat":"repeat-x","backgr oundPosition":"bottom left","borderStyle":"solid","borderColor":"#5a010e","borde rWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"le ft":"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www.capella.edu/assets /images/chat/lp_invitation_close_button.png"}],"images":[{"css":{"left":"0","top ":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/assets/images/chat/l p_invitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"},"imageU rl":"https://www.capella.edu/assets/images/chat/lp_invitation_photo.jpg"}],"labe ls":[{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"35","fontWeig ht":"","fontStyle":"","color":"#ffffff","left":"357","top":"68","zIndex":"1015"} ,"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize ":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"316","top":" 127","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontF amily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":"","fontStyle": "italic","color":"#dbc2be","left":"335","top":"153","zIndex":"1025"},"text":"We can answer all of your questions"}]},"size":{"height":289,"width":607}}}},"overr ideConditions":false,"isDefault":false,"overrideSkills":true,"skillName":"ES_EDD _EDS","skillId":"6","useRoom":false,"overlay":{"invitationType":"fixed","left":0 ,"location":"middle center","top":0},"delay":0},{"id":"6320809429229496678","nam e":"ES_Grad_BizTech","segmentId":"632080_4e3ba9af-e631-41fb-9865-df980a965f79"," segmentHash":"78421e71255942b13a6c3d39585aee6b","repAv":{"2":{"presentation":{"b ackground":{"color":"transparent","image":""},"border":{"style":"solid","color": "transparent","width":0,"radius":0},"elements":{"buttons":[{"css":{"fontFamily": "Verdana,Geneva,sans-serif","fontSize":"18","fontWeight":"bold","fontStyle":""," color":"#ffffff","left":"364","top":"197","zIndex":"1030","backgroundColor":"#57 0310","backgroundImage":"","backgroundRepeat":"repeat-x","backgroundPosition":"b ottom left","borderStyle":"solid","borderColor":"#5a010e","borderWidth":"10","bo rderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top": "-1","zIndex":"2045"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_ invitation_close_button.png"}],"images":[{"css":{"left":"0","top":"-1","zIndex": "1005"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_607 x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"https://www .capella.edu/assets/images/chat/lp_invitation_photo.jpg"}],"labels":[{"css":{"fo ntFamily":"Arial, Aharoni, Verdana","fontSize":"35","fontWeight":"","fontStyle": "","color":"#ffffff","left":"352","top":"62","zIndex":"1015"},"text":"Questions? "},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"13","fontWeight" :"bold","fontStyle":"","color":"#ffffff","left":"316","top":"123","zIndex":"1020 "},"text":"Chat with an enrollment counselor"},{"css":{"fontFamily":"Arial,Helve tica,sans-serif","fontSize":"13","fontWeight":"","fontStyle":"italic","color":"# dbc2be","left":"333","top":"149","zIndex":"1025"},"text":"We can answer all of y our questions"}]},"size":{"height":289,"width":607}}}},"overrideConditions":fals e,"isDefault":false,"overrideSkills":true,"skillName":"ES_Grad_BizTech","skillId ":"47","useRoom":false,"overlay":{"invitationType":"fixed","left":0,"location":" middle center","top":0},"delay":0},{"id":"6320801920155257312","name":"ES_Grad_E d","segmentId":"632080_30a76da8-cf9f-4158-b99f-622186b32c81","segmentHash":"a5ca effd74dde7e9347aa4ab13bf38","repAv":{"2":{"presentation":{"background":{"color": "transparent","image":""},"border":{"style":"solid","color":"transparent","width ":0,"radius":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans -serif","fontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","le

ft":"364","top":"197","zIndex":"1030","backgroundColor":"#570310","backgroundIma ge":"","backgroundRepeat":"repeat-x","backgroundPosition":"bottom left","borderS tyle":"solid","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"te xt":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045" },"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_close_but ton.png"}],"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":" https://www.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{" left":"6","top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/ images/chat/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Ah aroni, Verdana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff" ,"left":"354","top":"69","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFami ly":"Verdana,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle": "","color":"#ffffff","left":"314","top":"127","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fo ntSize":"13","fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":"338" ,"top":"151","zIndex":"1025"},"text":"We can answer all of your questions"}]},"s ize":{"height":289,"width":607}}}},"overrideConditions":false,"isDefault":false, "overrideSkills":true,"skillName":"ES_Grad_Ed","skillId":"48","useRoom":false,"o verlay":{"invitationType":"fixed","left":0,"location":"middle center","top":0}," delay":0},{"id":"6320806365155936074","name":"ES_MBA_MS_HRM_Leadership","segment Id":"632080_2d419209-09ef-4ee1-8451-ca640b7b3de4","segmentHash":"cf17ee3f4bd1fc1 e74b7016f657a45a","repAv":{"2":{"presentation":{"background":{"color":"transpare nt","image":""},"border":{"style":"solid","color":"transparent","width":0,"radiu s":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","f ontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"370", "top":"196","zIndex":"1030","backgroundColor":"#570310","backgroundImage":"","ba ckgroundRepeat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"sol id","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUr l":"https://www.capella.edu/assets/images/chat/lp_invitation_close_button.png"}] ,"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://ww w.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6", "top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/images/cha t/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Ver dana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"3 54","top":"56","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verda na,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle":"","color" :"#ffffff","left":"315","top":"119","zIndex":"1020"},"text":"Chat with an Enroll ment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"1 3","fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":"334","top":"14 5","zIndex":"1025"},"text":"We can answer all of your questions "}]},"size":{"he ight":289,"width":607}}}},"overrideConditions":false,"isDefault":false,"override Skills":true,"skillName":"ES_MBA_MS_HRM_Leadership","skillId":"8","useRoom":fals e,"overlay":{"invitationType":"fixed","left":0,"location":"middle center","top": 0},"delay":0},{"id":"632080520476832811","name":"ES_MS_Counseling","segmentId":" 632080_a21d7840-e335-4e19-a9e3-5236902681c0","segmentHash":"513b166fe7e83ebc765b d27a328cb884","repAv":{"2":{"presentation":{"background":{"color":"transparent", "image":""},"border":{"style":"solid","color":"transparent","width":0,"radius":0 },"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontS ize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"368","top ":"198","zIndex":"1030","backgroundColor":"#570310","backgroundImage":"","backgr oundRepeat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"solid", "borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW" }],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":" https://www.capella.edu/assets/images/chat/lp_invitation_close_button.png"}],"im ages":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.ca pella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top ":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp _invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana ","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"352",

"top":"61","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,G eneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle":"","color":"#f fffff","left":"315","top":"125","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13"," fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":"336","top":"150"," zIndex":"1025"},"text":"We can answer all of your questions"}]},"size":{"height" :289,"width":607}}}},"overrideConditions":false,"isDefault":false,"overrideSkill s":true,"skillName":"ES_MS_Counseling","skillId":"9","useRoom":false,"overlay":{ "invitationType":"fixed","left":0,"location":"middle center","top":0},"delay":0} ,{"id":"6320809631946248179","name":"ES_MS_Education","segmentId":"632080_aba0ef d5-836a-42ef-ad28-24e1bce15f11","segmentHash":"c8cc957f1e2e372449728be1dfb2341f" ,"repAv":{"2":{"presentation":{"background":{"color":"transparent","image":""}," border":{"style":"solid","color":"transparent","width":0,"radius":0},"elements": {"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fo ntWeight":"bold","fontStyle":"","color":"#ffffff","left":"364","top":"197","zInd ex":"1030","backgroundColor":"#570310","backgroundImage":"","backgroundRepeat":" repeat-x","backgroundPosition":"bottom left","borderStyle":"solid","borderColor" :"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButt ons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www.c apella.edu/assets/images/chat/lp_invitation_close_button.png"}],"images":[{"css" :{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/ass ets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex ":"1010"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_p hoto.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize": "35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"353","top":"60","z Index":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-se rif","fontSize":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left" :"317","top":"124","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"}, {"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":" ","fontStyle":"italic","color":"#dbc2be","left":"335","top":"150","zIndex":"1025 "},"text":"We can answer all of your questions"}]},"size":{"height":289,"width": 607}}}},"overrideConditions":false,"isDefault":false,"overrideSkills":true,"skil lName":"ES_MS_Education","skillId":"19","useRoom":false,"overlay":{"invitationTy pe":"fixed","left":0,"location":"middle center","top":0},"delay":0},{"id":"63208 09162744284257","name":"ES_MS_IT","segmentId":"632080_7a468173-ac97-4d4b-a91c-73 5e7a4b9927","segmentHash":"39898157ec45e86694e5892ba564137f","repAv":{"2":{"pres entation":{"background":{"color":"transparent","image":""},"border":{"style":"so lid","color":"transparent","width":0,"radius":0},"elements":{"buttons":[{"css":{ "fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeight":"bold","fo ntStyle":"","color":"#ffffff","left":"364","top":"197","zIndex":"1030","backgrou ndColor":"#570310","backgroundImage":"","backgroundRepeat":"repeat-x","backgroun dPosition":"bottom left","borderStyle":"solid","borderColor":"#5a010e","borderWi dth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left" :"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www.capella.edu/assets/im ages/chat/lp_invitation_close_button.png"}],"images":[{"css":{"left":"0","top":" -1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_i nvitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"},"imageUrl" :"https://www.capella.edu/assets/images/chat/lp_invitation_photo.jpg"}],"labels" :[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","fontWeight":"" ,"fontStyle":"","color":"#ffffff","left":"357","top":"61","zIndex":"1015"},"text ":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"13" ,"fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"317","top":"123"," zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily" :"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":"","fontStyle":"itali c","color":"#dbc2be","left":"334","top":"148","zIndex":"1025"},"text":"We can an swer all of your questions "}]},"size":{"height":289,"width":607}}}},"overrideCo nditions":false,"isDefault":false,"overrideSkills":true,"skillName":"ES_MS_IT"," skillId":"10","useRoom":false,"overlay":{"invitationType":"fixed","left":0,"loca tion":"middle center","top":0},"delay":0},{"id":"6320805441834312153","name":"ES _MS_PSL","segmentId":"632080_a186fa9e-12b3-43ba-a802-7b7a50ddf9c5","segmentHash"

:"5c6b12c4676aef21804526dc33466ec6","repAv":{"2":{"presentation":{"background":{ "color":"transparent","image":""},"border":{"style":"solid","color":"transparent ","width":0,"radius":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Gen eva,sans-serif","fontSize":"18","fontWeight":"bold","fontStyle":"","color":"#fff fff","left":"369","top":"196","zIndex":"1030","backgroundColor":"#570310","backg roundImage":"","backgroundRepeat":"repeat-x","backgroundPosition":"bottom left", "borderStyle":"solid","borderColor":"#5a010e","borderWidth":"10","borderRadius": "4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex ":"2045"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_c lose_button.png"}],"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"ima geUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{ "css":{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu /assets/images/chat/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"A rial, Aharoni, Verdana","fontSize":"35","fontWeight":"","fontStyle":"","color":" #ffffff","left":"354","top":"58","zIndex":"1015"},"text":"Questions?"},{"css":{" fontFamily":"Verdana,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fon tStyle":"","color":"#ffffff","left":"314","top":"120","zIndex":"1020"},"text":"C hat with an Enrollment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-se rif","fontSize":"13","fontWeight":"","fontStyle":"italic","color":"#dbc2be","lef t":"331","top":"146","zIndex":"1025"},"text":"We can answer all of your question s "}]},"size":{"height":289,"width":607}}}},"overrideConditions":false,"isDefaul t":false,"overrideSkills":true,"skillName":"ES_MS_PSL","skillId":"11","useRoom": false,"overlay":{"invitationType":"fixed","left":0,"location":"middle center","t op":0},"delay":0},{"id":"6320803023442997727","name":"ES_MS_Psychology","segment Id":"632080_2f0913f0-5e8e-44c9-bd8f-bea1238da27f","segmentHash":"48f0808973b9534 aae574dfb2e2272ed","repAv":{"2":{"presentation":{"background":{"color":"transpar ent","image":""},"border":{"style":"solid","color":"transparent","width":0,"radi us":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif"," fontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"371" ,"top":"197","zIndex":"1030","backgroundColor":"#570310","backgroundImage":"","b ackgroundRepeat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"so lid","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageU rl":"https://www.capella.edu/assets/images/chat/lp_invitation_close_button.png"} ],"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://w ww.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6" ,"top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/images/ch at/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Ve rdana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":" 353","top":"59","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verd ana,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle":"","color ":"#ffffff","left":"314","top":"120","zIndex":"1020"},"text":"Chat with an Enrol lment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":" 13","fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":"334","top":"1 45","zIndex":"1025"},"text":"We can answer all of your questions "}]},"size":{"h eight":289,"width":607}}}},"overrideConditions":false,"isDefault":false,"overrid eSkills":true,"skillName":"ES_MS_Psychology","skillId":"12","useRoom":false,"ove rlay":{"invitationType":"fixed","left":0,"location":"middle center","top":0},"de lay":0},{"id":"6320809765634063406","name":"ES_Nursing","segmentId":"632080_531d 61c8-97d5-4058-a90f-3823c0262fe0","segmentHash":"bfc4403fd699b883abadd73fa19bdf2 ","repAv":{"2":{"presentation":{"background":{"color":"transparent","image":""}, "border":{"style":"solid","color":"transparent","width":0,"radius":0},"elements" :{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","f ontWeight":"bold","fontStyle":"","color":"#ffffff","left":"364","top":"197","zIn dex":"1030","backgroundColor":"#570310","backgroundImage":"","backgroundRepeat": "repeat-x","backgroundPosition":"bottom left","borderStyle":"solid","borderColor ":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeBut tons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www. capella.edu/assets/images/chat/lp_invitation_close_button.png"}],"images":[{"css ":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/as

sets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"7","zInde x":"1010"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_ photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize" :"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"351","top":"60"," zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-s erif","fontSize":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left ":"316","top":"124","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"} ,{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight": "","fontStyle":"italic","color":"#dbc2be","left":"335","top":"149","zIndex":"102 5"},"text":"We can answer all of your questions "}]},"size":{"height":289,"width ":607}}}},"overrideConditions":false,"isDefault":false,"overrideSkills":true,"sk illName":"ES_Nursing","skillId":"25","useRoom":false,"overlay":{"invitationType" :"fixed","left":0,"location":"middle center","top":0},"delay":0},{"id":"63208006 57854962668","name":"ES_PhD_Business_IT_OM_DBA","segmentId":"632080_cec87353-348 e-4333-93b8-485ed5258920","segmentHash":"7ed6e586dccc5099161b01cf81bfc90","repAv ":{"2":{"presentation":{"background":{"color":"transparent","image":""},"border" :{"style":"solid","color":"transparent","width":0,"radius":0},"elements":{"butto ns":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeigh t":"bold","fontStyle":"","color":"#ffffff","left":"368","top":"197","zIndex":"10 30","backgroundColor":"#570310","backgroundImage":"","backgroundRepeat":"repeatx","backgroundPosition":"bottom left","borderStyle":"solid","borderColor":"#5a01 0e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{ "css":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www.capella. edu/assets/images/chat/lp_invitation_close_button.png"}],"images":[{"css":{"left ":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/assets/ima ges/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010 "},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_photo.jp g"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","f ontWeight":"","fontStyle":"","color":"#ffffff","left":"354","top":"67","zIndex": "1015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","f ontSize":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"317", "top":"124","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css": {"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":"","font Style":"italic","color":"#dbc2be","left":"337","top":"150","zIndex":"1025"},"tex t":"We can answer all of your questions "}]},"size":{"height":289,"width":607}}} },"overrideConditions":false,"isDefault":false,"overrideSkills":true,"skillName" :"ES_PhD_Business_IT_OM_DBA","skillId":"13","useRoom":false,"overlay":{"invitati onType":"fixed","left":0,"location":"middle center","top":0},"delay":0},{"id":"6 320800194616352475","name":"ES_PhD_Education","segmentId":"632080_6f23afc1-cdbf4969-b942-454c08ad8520","segmentHash":"7ed4a2f959b329c6318737e13cb78d6","repAv": {"2":{"presentation":{"background":{"color":"transparent","image":""},"border":{ "style":"solid","color":"transparent","width":0,"radius":0},"elements":{"buttons ":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeight" :"bold","fontStyle":"","color":"#ffffff","left":"364","top":"197","zIndex":"1030 ","backgroundColor":"#570310","backgroundImage":"","backgroundRepeat":"repeat-x" ,"backgroundPosition":"bottom left","borderStyle":"solid","borderColor":"#5a010e ","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"c ss":{"left":"548","top":"-1","zIndex":"2045"},"imageUrl":"https://www.capella.ed u/assets/images/chat/lp_invitation_close_button.png"}],"images":[{"css":{"left": "0","top":"-1","zIndex":"1005"},"imageUrl":"https://www.capella.edu/assets/image s/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"} ,"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_photo.jpg" }],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","fon tWeight":"","fontStyle":"","color":"#ffffff","left":"357","top":"68","zIndex":"1 015"},"text":"Questions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fon tSize":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"316","t op":"127","zIndex":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{" fontFamily":"Arial,Helvetica,sans-serif","fontSize":"13","fontWeight":"","fontSt yle":"italic","color":"#dbc2be","left":"338","top":"152","zIndex":"1025"},"text" :"We can answer all of your questions "}]},"size":{"height":289,"width":607}}}},

"overrideConditions":false,"isDefault":false,"overrideSkills":true,"skillName":" ES_PhD_Education","skillId":"14","useRoom":false,"overlay":{"invitationType":"fi xed","left":0,"location":"middle center","top":0},"delay":0},{"id":"632080011718 6824577","name":"ES_PhD_PSL","segmentId":"632080_b4f16096-b597-461a-bb02-db651d7 4dcc5","segmentHash":"11c9d5b474e78323bd9dd6abd8f73d9","repAv":{"2":{"presentati on":{"background":{"color":"transparent","image":""},"border":{"style":"solid"," color":"transparent","width":0,"radius":0},"elements":{"buttons":[{"css":{"fontF amily":"Verdana,Geneva,sans-serif","fontSize":"18","fontWeight":"bold","fontStyl e":"","color":"#ffffff","left":"369","top":"197","zIndex":"1030","backgroundColo r":"#570310","backgroundImage":"","backgroundRepeat":"repeat-x","backgroundPosit ion":"bottom left","borderStyle":"solid","borderColor":"#5a010e","borderWidth":" 10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548" ,"top":"-1","zIndex":"2045"},"imageUrl":"https://www.capella.edu/assets/images/c hat/lp_invitation_close_button.png"}],"images":[{"css":{"left":"0","top":"-1","z Index":"1005"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitat ion_607x289.png"},{"css":{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"http s://www.capella.edu/assets/images/chat/lp_invitation_photo.jpg"}],"labels":[{"cs s":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","fontWeight":"","font Style":"","color":"#ffffff","left":"358","top":"66","zIndex":"1015"},"text":"Que stions?"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"13","font Weight":"bold","fontStyle":"","color":"#ffffff","left":"316","top":"128","zIndex ":"1020"},"text":"Chat with an Enrollment Counselor"},{"css":{"fontFamily":"Aria l,Helvetica,sans-serif","fontSize":"13","fontWeight":"","fontStyle":"italic","co lor":"#dbc2be","left":"334","top":"151","zIndex":"1025"},"text":"We can answer a ll of your questions "}]},"size":{"height":289,"width":607}}}},"overrideConditio ns":false,"isDefault":false,"overrideSkills":true,"skillName":"ES_PhD_PSL","skil lId":"15","useRoom":false,"overlay":{"invitationType":"fixed","left":0,"location ":"middle center","top":0},"delay":0},{"id":"6320804661924156475","name":"ES_PhD _SBS","segmentId":"632080_daa29cb1-cab9-4574-8c39-b3ea06def4b8","segmentHash":"3 1328a905713922b26d6c66e1a33f9","repAv":{"2":{"presentation":{"background":{"colo r":"transparent","image":""},"border":{"style":"solid","color":"transparent","wi dth":0,"radius":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,s ans-serif","fontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff", "left":"364","top":"197","zIndex":"1030","backgroundColor":"#570310","background Image":"","backgroundRepeat":"repeat-x","backgroundPosition":"bottom left","bord erStyle":"solid","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"}, "text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"20 30"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitation_close_ button.png"}],"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl ":"https://www.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css" :{"left":"6","top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/asse ts/images/chat/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Verdana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffff ff","left":"354","top":"62","zIndex":"1015"},"text":"Questions?"},{"css":{"fontF amily":"Verdana,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyl e":"","color":"#ffffff","left":"315","top":"126","zIndex":"1020"},"text":"Chat w ith an Enrollment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif", "fontSize":"13","fontWeight":"","fontStyle":"italic","color":"#dbc2be","left":"3 35","top":"149","zIndex":"1025"},"text":"We can answer all of your questions "}] },"size":{"height":289,"width":607}}}},"overrideConditions":false,"isDefault":fa lse,"overrideSkills":true,"skillName":"ES_PhD_SBS","skillId":"16","useRoom":fals e,"overlay":{"invitationType":"fixed","left":0,"location":"middle center","top": 0},"delay":0},{"id":"6320803609364283624","name":"ES_Undergrad_BizTech","segment Id":"632080_933fc74e-420f-4f3c-b6d6-f8f22386a9c6","segmentHash":"1c8edbb89c466f4 8d2bffb18dd6928f","repAv":{"2":{"presentation":{"background":{"color":"transpare nt","image":""},"border":{"style":"solid","color":"transparent","width":0,"radiu s":0},"elements":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","f ontSize":"18","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"367", "top":"198","zIndex":"1030","backgroundColor":"#570310","backgroundImage":"","ba ckgroundRepeat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"sol

id","borderColor":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"closeButtons":[{"css":{"left":"548","top":"-1","zIndex":"2045"},"imageUr l":"https://www.capella.edu/assets/images/chat/lp_invitation_close_button.png"}] ,"images":[{"css":{"left":"0","top":"-1","zIndex":"1005"},"imageUrl":"https://ww w.capella.edu/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6", "top":"7","zIndex":"1010"},"imageUrl":"https://www.capella.edu/assets/images/cha t/lp_invitation_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial, Aharoni, Ver dana","fontSize":"35","fontWeight":"","fontStyle":"","color":"#ffffff","left":"3 57","top":"61","zIndex":"1015"},"text":"Questions?"},{"css":{"fontFamily":"Verda na,Geneva,sans-serif","fontSize":"13","fontWeight":"bold","fontStyle":"","color" :"#ffffff","left":"316","top":"121","zIndex":"1020"},"text":"Chat with an Enroll ment Counselor"},{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fontSize":"1 3","fontWeight":"normal","fontStyle":"italic","color":"#dbc2be","left":"337","to p":"146","zIndex":"1025"},"text":"We can answer all of your questions"}]},"size" :{"height":289,"width":607}}}},"overrideConditions":false,"isDefault":false,"ove rrideSkills":true,"skillName":"ES_Undergrad_BizTech","skillId":"49","useRoom":fa lse,"overlay":{"invitationType":"fixed","left":0,"location":"middle center","top ":0},"delay":0},{"id":"632080717215811021","name":"default","segmentId":"632080_ e54c43c2-5815-4167-8889-952e4bd5d80f","segmentHash":"8b3539f24d4fa84052541295e55 e8417","repAv":{"2":{"presentation":{"background":{"color":"transparent","image" :""},"border":{"style":"solid","color":"transparent","width":0,"radius":0},"elem ents":{"buttons":[{"css":{"fontFamily":"Verdana,Geneva,sans-serif","fontSize":"1 8","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"365","top":"200" ,"zIndex":"1025","backgroundColor":"#570310","backgroundImage":"","backgroundRep eat":"repeat-x","backgroundPosition":"bottom left","borderStyle":"solid","border Color":"#5a010e","borderWidth":"10","borderRadius":"4"},"text":"CHAT NOW"}],"clo seButtons":[{"css":{"left":"546","top":"0","zIndex":"2030"},"imageUrl":"https:// www.capella.edu/assets/images/chat/lp_invitation_close_button.png"}],"images":[{ "css":{"left":"-2","top":"0","zIndex":"1005"},"imageUrl":"https://www.capella.ed u/assets/images/chat/lp_invitation_607x289.png"},{"css":{"left":"6","top":"8","z Index":"1010"},"imageUrl":"https://www.capella.edu/assets/images/chat/lp_invitat ion_photo.jpg"}],"labels":[{"css":{"fontFamily":"Arial,Helvetica,sans-serif","fo ntSize":"35","fontWeight":"normal","fontStyle":"","color":"#ffffff","left":"354" ,"top":"72","zIndex":"1015"},"text":"Questions? "},{"css":{"fontFamily":"Arial,H elvetica,sans-serif","fontSize":"13","fontWeight":"normal","fontStyle":"italic", "color":"#dbc2be","left":"333","top":"155","zIndex":"1020"},"text":"We can answe r all of your questions"},{"css":{"fontFamily":"Verdana,Geneva,sans-serif","font Size":"13","fontWeight":"bold","fontStyle":"","color":"#ffffff","left":"312","to p":"129","zIndex":"1030"},"text":"Chat with an Enrollment Counselor"}]},"size":{ "height":289,"width":607}}}},"overrideConditions":false,"isDefault":true,"overri deSkills":true,"skillName":"ES_General","skillId":"7","useRoom":false,"overlay": {"invitationType":"fixed","left":0,"location":"middle center","top":0},"delay":0 }],"skillName":"ES_General_Button","skillId":"50","useRoom":true,"timeout":12000 0,"availability":{"type":"pd","pdName":"chat-sales-english","pdId":"1","seconds" :0},"type":"invitation"}); lpTagConfig.tagPlugins.conf = {"serverProps":{"leChatImpressionEventLogEnabled": true,"leChatDeliveryBasePath":"va.content.lpsnmedia.net"},"siteGeneralProps":{"l eChatRepAvUpdate":2,"leChatInstanceUpdate":3},"siteFeatures":{"isMSModernUI":fal se,"leChatAAEnabled":true}} lpTagConfig.tagPlugins.start();

Вам также может понравиться