var initESW=function(e){switch(buttonCityExperiencesName="City_Experiences_Chat_Button",buttonWalksName="Walks_Chat_Button",buttonDevourName="Devour_Chat_Button",deploymentWalksItalyName="WalksofItaly_Deployment",pageUrl=window.location.href.toLowerCase(),deploymentName="",!0){case pageUrl.includes("dev2.cityexperiences.com"):case pageUrl.includes("cityexperiences.com")&&(pageUrl.includes("/group-events")||pageUrl.includes("/anniversaries")||pageUrl.includes("/anniversary-cruises")||pageUrl.includes("/anniversary-party-venue")||pageUrl.includes("/birthday-party-venue")||pageUrl.includes("/birthdays-anniversaries")||pageUrl.includes("/birthdays")||pageUrl.includes("/birthday-party-cruise")||pageUrl.includes("/ceremonies-receptions")||pageUrl.includes("/client-entertainment")||pageUrl.includes("/client-entertaining")||pageUrl.includes("/corporate-events")||pageUrl.includes("/elementary-middle-school-events")||pageUrl.includes("/employee-outings")||pageUrl.includes("/high-school-events")||pageUrl.includes("/just-for-fun-venue")||pageUrl.includes("/meetings-events")||pageUrl.includes("/other-special-occasions")||pageUrl.includes("/private-events")||pageUrl.includes("/rehearsal-dinners")||pageUrl.includes("/schools")||pageUrl.includes("/social-events-birthday-party-venue")||pageUrl.includes("/social-events")||pageUrl.includes("/special-occasions")||pageUrl.includes("/university-events")||pageUrl.includes("/wedding-related-events")||pageUrl.includes("/weddings")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/anniversaries/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/birthdays/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/company-outings/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/corporate-hire/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/filming/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/fundraisers/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/group-sightseeing/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/london-groups/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/meetings-events/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/private-hire-speed-boat/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/private-hire/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/private-hire/inspire-me/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/private-hire/private-hire-menu/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/private-hire/something-different/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/proms-graduations/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/reunions-alumni/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/school-venue/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/schools/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/social-events/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/thames-jet-bespoke-hire/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/thames-jet-private-corporate-hire/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/thamesjet/new-years-eve-package/")||pageUrl.includes("www.cityexperiences.com/london/city-cruises/thamesjet/private-hire-speed-boat/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/anniversaries/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/birthdays/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/company-outings/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/corporate-hire/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/fundraisers/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/gin-night/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/hennings-events/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/meetings-events/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/poole-groups/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/private-hire/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/school-venue/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/social-events/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/special-events/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/transport-engagement-parties/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/wedding-cruises/")||pageUrl.includes("www.cityexperiences.com/poole/city-cruises/weddings-receptions/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/group-tours/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/private-hire/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/school-venue/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/social-events/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/special-events/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/wedding-cruises/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-about/york-private-hire-christmas-private-parties/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-festive-events/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-groups/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-hen-parties-venue/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-party-cruises/")||pageUrl.includes("www.cityexperiences.com/york/city-cruises/york-private-boart-party-veneue-private-parties-with-city-cruises/")||pageUrl.includes("www.cityexperiences.com/puerto-rico/")||pageUrl.includes("puerto%20rico")):buttonName=buttonCityExperiencesName,displayChatButton=!1,autoOpenPostChatSurvey=!0,textChatWith="Chat with us!",textAgentOffline="Agent Offline",destination="";break;case pageUrl.includes("cityexperiences.com")&&(pageUrl.includes("cityexperiences.com/contact-us")||pageUrl.includes("cityexperiences.com/account")||pageUrl.includes("san-francisco")&&pageUrl.includes("alcatraz")||pageUrl.includes("new-jersey")&&pageUrl.includes("statue")||pageUrl.includes("new-york")&&pageUrl.includes("statue")):buttonName=buttonCityExperiencesName,displayChatButton=!0,autoOpenPostChatSurvey=!0,textChatWith="Chat with us!",textAgentOffline="Agent Offline",destination="";break;case pageUrl.includes("takewalks.com")||pageUrl.includes("walksofitaly.com")||pageUrl.includes("tw-demo-env.us-east-1.elasticbeanstalk.com")||pageUrl.includes("walkstest"):buttonName=buttonWalksName,pageUrl.includes("walksofitaly.com")&&(deploymentName=deploymentWalksItalyName),displayChatButton=!0,autoOpenPostChatSurvey=!0,textChatWith="Chat with a Specialist",textAgentOffline="Agent Offline",(pageUrl.includes("tw-demo-env.us-east-1.elasticbeanstalk.com")||pageUrl.includes("walkstest"))&&(textChatWith="CHAT WITH A SPECIALIST",textAgentOffline="AGENT OFFLINE");break;case pageUrl.endsWith("devourtours.com/")||pageUrl.includes("devourtours.com/faq")||pageUrl.includes("devourtours.com/destinations/"):buttonName=buttonDevourName,displayChatButton=!0,autoOpenPostChatSurvey=!0,textChatWith="Chat with a Specialist",textAgentOffline="Agent Offline";break;case pageUrl.includes("devourtours.com"):buttonName=buttonDevourName,displayChatButton=!1;break;default:buttonName=buttonCityExperiencesName,displayChatButton=!0,autoOpenPostChatSurvey=!0,textChatWith="Chat with us!",textAgentOffline="Agent Offline",destination=""}buttonName==buttonCityExperiencesName&&(destination="",function e(){let i="Alcatraz City Cruises",t="New Jersey - Statue City Cruises",s="New York - Statue City Cruises",n="Niagara Falls";Object.entries({"san-francisco&&alcatraz":i,"san%20francisco&&alcatraz":i,"san-francisco":"San Francisco","new-jersey&&statue":t,"new%20jersey&&statue":t,"new-york&&statue":s,"new%20york&&statue":s,statue:s,"new-york":"New York","new-jersey":"New Jersey",alexandria:"Alexandria",baltimore:"Baltimore",berkeley:"Berkeley",boston:"Boston",chicago:"Chicago","long-beach":"Long Beach","marina-del-rey":"Marina del Rey","newport-beach":"Newport Beach","niagara-us":n,"niagara-ca":"Niagara Falls (CA)","niagara/":n,norfolk:"Norfolk",philadelphia:"Philadelphia",sacramento:"Sacramento","san-diego&&san%20diego":"San Diego","washington-dc&&washington%20dc":"Washington DC",gananoque:"Gananoque",toronto:"Toronto",london:"London (UK)",poole:"Poole (UK)",york:"York (UK)",paris:"Paris","city=athens":"Athens","city=florence":"Florence","city=milan":"Milan","city=pompeii":"Pompeii","/rome/":"Rome","/venice/":"Venice","city=lisbon":"Lisbon",barcelona:"Barcelona",madrid:"Madrid","city=san%20sebastian":"San Sebastian","city=seville":"Seville",weehawken:"Weehawken","city=seattle":"Seattle","new-orleans":"New Orleans","city=charleston":"Charleston","city=miami":"Miami"}).find(([e])=>e.split("&&").every(e=>pageUrl.includes(e))||pageUrl.includes(e))?.[1]||destination}()),embedded_svc.settings.displayHelpButton=displayChatButton,embedded_svc.settings.language="",embedded_svc.settings.defaultMinimizedText=textChatWith,embedded_svc.settings.disabledMinimizedText=textAgentOffline,embedded_svc.settings.storageDomain=window.location.hostname.toString(),embedded_svc.settings.autoOpenPostChat=autoOpenPostChatSurvey,embedded_svc.settings.enabledFeatures=["LiveAgent"],embedded_svc.settings.entryFeature="LiveAgent",embedded_svc.settings.extraPrechatInfo=[{entityName:"Contact",saveToTranscript:"ContactId",showOnCreate:!0,entityFieldMaps:[{doCreate:!1,doFind:!0,fieldName:"LastName",isExactMatch:!0,label:"Last Name"},{doCreate:!1,doFind:!0,fieldName:"FirstName",isExactMatch:!0,label:"First Name"},{doCreate:!1,doFind:!0,fieldName:"Email",isExactMatch:!0,label:"Email"},{doCreate:!1,doFind:!0,fieldName:"Phone",isExactMatch:!0,label:"Phone"}]}],buttonName==buttonCityExperiencesName&&(embedded_svc.settings.chatbotAvatarImgURL="https://hornblowergroup.my.salesforce-sites.com/resource/ce_chatbotAvatarImg",embedded_svc.settings.prepopulatedPrechatFields={},embedded_svc.settings.extraPrechatFormDetails=[{label:"Last Name",transcriptFields:["PreChat_Last_Name__c"],displayToAgent:!0},{label:"First Name",transcriptFields:["PreChat_First_Name__c"],displayToAgent:!0},{label:"Email",transcriptFields:["PreChat_Email__c"],displayToAgent:!0},{label:"Company Name",transcriptFields:["PreChat_Company__c"],displayToAgent:!0},{label:"Phone",transcriptFields:["PreChat_Phone__c"],displayToAgent:!0},{label:"Destination",value:destination,transcriptFields:["PreChat_Port__c"],displayToAgent:!0},{label:"SourceURL",value:window.location.href,transcriptFields:["PreChat_URL__c"],displayToAgent:!0},{label:"SourceURLPath",value:window.origin+window.location.pathname,transcriptFields:["PreChat_URL_Path__c"],displayToAgent:!0},{label:"ChatButton",value:buttonName,transcriptFields:["PreChat_Chat_Button__c"],displayToAgent:!0}],embedded_svc.init("https://hornblowergroup.my.salesforce.com","https://hornblowergroup.my.salesforce-sites.com/redirect",e,"00Di0000000eM4Z","City_Experiences_Chat_Embedded_Service_Deployment",{baseLiveAgentContentURL:"https://c.la1-c2-ia5.salesforceliveagent.com/content",deploymentId:"5723r000000JPvz",buttonId:"5733r000000JSn5",baseLiveAgentURL:"https://d.la1-c2-ia5.salesforceliveagent.com/chat",eswLiveAgentDevName:"EmbeddedServiceLiveAgent_Parent04I3r000000fxTJEAY_17f9e91a832",isOfflineSupportEnabled:1})),(buttonName==buttonWalksName||buttonName==buttonDevourName)&&(destination=buttonName==buttonWalksName?"Italy":"Spain",function e(){let i="France",t="Greece",s="Ireland",n="Italy",c="Netherlands",a="Portugal",r="Spain";destination=Object.entries({"/spain/":r,"/france/":i,"/uk/":"UK","/united-states/":"US","/italy/":n,"/portugal/":a,"/greece/":t,"/ireland/":s,"/netherlands/":c,walksofitaly:n,"london-tours":"UK","paris-tours":i,"bordeaux-tours":i,"athens-tours":t,"florence-tours":n,"milan-tours":n,"pompeii-tours":n,"rome-tours":n,"venice-tours":n,"naples-tours":n,"bologna-tours":n,"barcelona-tours":r,"madrid-tours":r,"san-sebastian-tours":r,"lisbon-tours":a,"dublin-tours":s,"amsterdam-tours":c,"seville-tours":r,"new-york-tours":"US","niagara-falls-tours":"US","boston-tours":"US","san-francisco-tours":"US","chicago-tours":"US","new-orleans-tours":"US","washington-dc-tours":"US","statue-of-liberty-tour-ellis-island-tour":"US"}).find(([e])=>e.split("&&").every(e=>pageUrl.includes(e))||pageUrl.includes(e))?.[1]||destination}(),buttonName==buttonWalksName&&(embedded_svc.settings.chatbotAvatarImgURL="https://hornblowergroup.lightning.force.com/resource/1657637987000/WalksIcon",embedded_svc.settings.prepopulatedPrechatFields={PreChat_Destination_Walks__c:destination},embedded_svc.settings.extraPrechatFormDetails=[{label:"Last Name",transcriptFields:["PreChat_Last_Name__c"],displayToAgent:!0},{label:"First Name",transcriptFields:["PreChat_First_Name__c"],displayToAgent:!0},{label:"Email",transcriptFields:["PreChat_Email__c"],displayToAgent:!0},{label:"Phone",transcriptFields:["PreChat_Phone__c"],displayToAgent:!0},{label:"Confirmation Number",transcriptFields:["PreChat_Confirmation_Number__c"],displayToAgent:!0},{label:"Destination",transcriptFields:["PreChat_Port__c"],displayToAgent:!0},{label:"SourceURL",value:window.location.href,transcriptFields:["PreChat_URL__c"],displayToAgent:!0},{label:"SourceURLPath",value:window.origin+window.location.pathname,transcriptFields:["PreChat_URL_Path__c"],displayToAgent:!0},{label:"ChatButton",value:buttonName,transcriptFields:["PreChat_Chat_Button__c"],displayToAgent:!0}]),buttonName==buttonDevourName&&(embedded_svc.settings.prepopulatedPrechatFields={PreChat_Destination_Devour__c:destination},embedded_svc.settings.extraPrechatFormDetails=[{label:"Last Name",transcriptFields:["PreChat_Last_Name__c"],displayToAgent:!0},{label:"First Name",transcriptFields:["PreChat_First_Name__c"],displayToAgent:!0},{label:"Email",transcriptFields:["PreChat_Email__c"],displayToAgent:!0},{label:"Phone",transcriptFields:["PreChat_Phone__c"],displayToAgent:!0},{label:"Confirmation Number",transcriptFields:["PreChat_Confirmation_Number__c"],displayToAgent:!0},{label:"Destination",transcriptFields:["PreChat_Port__c"],displayToAgent:!0},{label:"SourceURL",value:window.location.href,transcriptFields:["PreChat_URL__c"],displayToAgent:!0},{label:"SourceURLPath",value:window.origin+window.location.pathname,transcriptFields:["PreChat_URL_Path__c"],displayToAgent:!0},{label:"ChatButton",value:buttonName,transcriptFields:["PreChat_Chat_Button__c"],displayToAgent:!0}]),deploymentName==deploymentWalksItalyName?embedded_svc.init("https://hornblowergroup.my.salesforce.com","https://hornblowergroup.my.salesforce-sites.com",e,"00Di0000000eM4Z","WalksofItaly_Deployment",{baseLiveAgentContentURL:"https://c.la1-c2-ia5.salesforceliveagent.com/content",deploymentId:"5723r000000JPvl",buttonId:"5733r000000JSml",baseLiveAgentURL:"https://d.la1-c2-ia5.salesforceliveagent.com/chat",eswLiveAgentDevName:"EmbeddedServiceLiveAgent_Parent04I3r000000fxTYEAY_180b7c94f7f",isOfflineSupportEnabled:!1}):buttonName==buttonDevourName?embedded_svc.init("https://hornblowergroup.my.salesforce.com","https://hornblowergroup.my.salesforce-sites.com/redirect",e,"00Di0000000eM4Z","Devour_Chat_Button_Deployment",{baseLiveAgentContentURL:"https://c.la1-c2-ia5.salesforceliveagent.com/content",deploymentId:"5723r000000JPvl",buttonId:"5733r000000JSnK",baseLiveAgentURL:"https://d.la1-c2-ia5.salesforceliveagent.com/chat",eswLiveAgentDevName:"EmbeddedServiceLiveAgent_Parent04I3r000000fxTdEAI_181430f993c",isOfflineSupportEnabled:!1}):embedded_svc.init("https://hornblowergroup.my.salesforce.com","https://hornblowergroup.my.salesforce-sites.com/redirect",e,"00Di0000000eM4Z","Walks_Chat_Embedded_Service_Deployment",{baseLiveAgentContentURL:"https://c.la1-c2-ia5.salesforceliveagent.com/content",deploymentId:"5723r000000JPvl",buttonId:"5733r000000JSml",baseLiveAgentURL:"https://d.la1-c2-ia5.salesforceliveagent.com/chat",eswLiveAgentDevName:"EmbeddedServiceLiveAgent_Parent04I3r000000fxT5EAI_17f4fa8f00d",isOfflineSupportEnabled:!1}))};if(window.embedded_svc)initESW("https://service.force.com");else{var e=document.createElement("script");e.setAttribute("src","https://hornblowergroup.my.salesforce.com/embeddedservice/5.0/esw.min.js"),e.onload=function(){initESW(null)},document.body.appendChild(e)}