Module: managers/iqueue-manager

This module manages iQueue calls

Source:

Requires

  • module:common/view

Methods


init()

Initializes class

Source:
Fires:
  • event:assignListeners()

assignListeners()

Assigns listeners to events used in this class.

Source:
Listens to Events:
  • event:EVENT_MODEL_READY

initIqueue(locationIndex)

Loads customer and locations the begins polling based on configCode

Parameters:
Name Type Description
locationIndex Number

[Optional] Location index

Source:
Fires:
  • event:getSessionGuid()
  • cloudConnector.event:fetchCustomerConfigByConfigCode()
  • cloudConnector.event:fetchCustomerLocationsTable()
  • event:EVENT_IQUEUE_GOT_LOCATIONS

getSessionGuid()

Gets unique session guid

Source:
Returns:

sessionGuid


selectLocation(locationIndex)

Gets location object and initiates polling

Parameters:
Name Type Description
locationIndex Number

Location index

Source:
Fires:
  • event:updateWaitlist()
  • event:updateAppointmentlist()
  • event:pollNotificationsQueue()

updateWaitlist()

Gets updated waiting list

Source:
Fires:
  • event:EVENT_IQUEUE_GOT_WAIT_LIST

updateAppointmentlist()

Update appointment list

Source:
Fires:
  • event:EVENT_IQUEUE_GOT_APPOINTMENTS

pollNotificationsQueue()

Polls for notifications

Source:
Fires:
  • event:EVENT_IQUEUE_GOT_NOTIFICATIONS
  • event:EVENT_IQUEUE_GOT_NEW_NOTIFICATION

onJsonLoaded(jData)

When project JSON is loaded process styles

Parameters:
Name Type Description
jData Object

JSON data

Source: