cnfReceive

nanorep.floatingWidget.on('cnfReceive', function(cnf) {})

Called when widget get config. This is the place, where cnf can be patched

ticketSent

nanorep.floatingWidget.on('ticketSent', function() {})

Called when contact form sent

ProviderName:preChat

nanorep.floatingWidget.on('BoldChat:preChat', function() {})

Called when preChat form has been shown in a chat

ProviderName:postChat

nanorep.floatingWidget.on('BoldChat:postChat', function() {})

Called when postChat form has been shown in a chat

ProviderName:chatStarted

nanorep.floatingWidget.on('BoldChat:chatStarted', function() {})

Called when chat with agent starts (after preChat if it exists)

ProviderName:chatFormSent

nanorep.floatingWidget.on('BoldChat:chatFormSent', function(params) {})

Called when postChat or transcript form submit

Arguments

params.type: String transcript | postChat

ProviderName:chatEnded

nanorep.floatingWidget.on('BoldChat:chatEnded', function() {})

Called when chat ended

ProviderName:newMessage

nanorep.floatingWidget.on('BoldChat:newMessage', function(entryModel, entryElement) {})

Called when any new message appears in the chat log

Arguments

entryModel: Object Entry model object, like { type: 1, text: 'Entry text', avatar... }
entryElement: DOM element Entry DOM element. Could be used to update entry

ProviderName:unavailableForm

nanorep.floatingWidget.on('BoldChat:unavailableForm', function(formKey) {})

Called when user get unavailableForm

Arguments

formKey: String One of these:
  • api#unavailable#intro
  • api#unavailable#no_operators
  • api#unavailable#unavailable
  • api#unavailable#unavailable_blocked
  • api#unavailable#unavailable_hours_operators
  • api#unavailable#unavailable_invite
  • api#unavailable#unavailable_limit
  • api#unavailable#unavailable_max_queue