var webChatApiKey = '73586de6-5ca0-4c97-a9c5-11640ce340f2'; var webChatURL = "https://api-apse2.digital.genesyscloud.com/nexus/v3/chat/sessions"; var webChatEndpoint = 'Classify_Endpoint'; var isDevWebChat = window.location.pathname === "/contact/genesys-test-dev"; // ##### Widget Define UI // Global Genesys Object if (!window._genesys) window._genesys = {}; if (!window._gt) window._gt = []; if (!window._genesys.widgets) window._genesys.widgets = {}; var gmsServicesConfig = { GMSCallbackURL: 'https://gapi-aus4.genesyscloud.com/engagement/v3/callbacks' }; // Initialize per widget - not to override extensions if defined before. //Initializes widgets configuration object. window._genesys.widgets.main = { debug: true, theme: 'light', lang: 'en', mobileMode: 'auto', mobileModeBreakpoint: 600, i18n: { "en": { "callback": { "CallbackFirstName": "First name", "CallbackLastName": "Last name", "CallbackPlaceholderPhone": "Oz mobile or landline & area code", "CallbackPlaceholderNotes": "What do you need help with? (Optional)", "CallbackNotes": "Tell us" }, "webchat": { "BotConnected": "", "BotDisconnected": "", "ChatButton": "Chat", "ChatStarted": "Chat Started", "ChatEnded": "Chat Ended", "ChatFormFirstName": "First Name", "ChatFormLastName": "Last Name", "ChatFormPhoneNumber": "Phone Number", "ChatFormPin": "PIN", "ChatFormEmail": "Email Address", "ChatFormName": "Name", "ChatFormRowId": "Row ID/Number", "ChatFormEmployeeId": "Employee ID", "ChatFormPassword": "Weekly Password", "ChatFormPlaceholderFirstName": "Required", "ChatFormPlaceholderLastName": "Optional", "ChatFormPlaceholderPhoneNumber": "Required", "ChatFormPlaceholderPin": "Optional", "ChatFormPlaceholderEmail": "Optional", "ChatFormPlaceholderName": "Required", "ChatFormPlaceholderRowId": "Optional", "ChatFormPlaceholderEmployeeId": "Required", "ChatFormPlaceholderPassword": "Required", "ChatFormSubmit": "Begin Chat", "ChatFormCancel": "Leave Chat", "ChatFormClose": "Exit" } } } }; window._genesys.widgets.calendar = { showAvailability: true, numberOfDays: 7, timeFormat: 12, hideUnavailableTimeSlots: true, calendarHours: { interval: 15, morning: { enable: true, openTime: '09:00', closeTime: '11:59' }, afternoon: { enable: true, openTime: '12:00', closeTime: '16:59' }, evening: { enable: true, openTime: '17:00', closeTime: '23:59' } } }; window._genesys.widgets.stats = { ajaxTimeout: 3000, ewt: { dataURL: 'https://gapi-aus4.genesyscloud.com/engagement/v3/estimated-wait-time', apiVersion: "v3", apikey: '4cf3ad80-83bc-478f-8999-8206fe70fd54' } }; window._genesys.widgets.webchat = { enableCustomHeader: true, transport: { dataURL: webChatURL, type: 'pureengage-v3-rest', endpoint: webChatEndpoint, headers: { 'x-api-key': webChatApiKey }, stream: isDevWebChat ? "dev" : null } };