nanorep.floatingWidget.on('cnfReceive', function(cnf) {})
Called when widget get config. This is the place, where cnf can be patched
nanorep.floatingWidget.on('ticketSent', function() {})
Called when contact form sent
nanorep.floatingWidget.on('BoldChat:preChat', function() {})
Called when preChat form has been shown in a chat
nanorep.floatingWidget.on('BoldChat:postChat', function() {})
Called when postChat form has been shown in a chat
nanorep.floatingWidget.on('BoldChat:chatStarted', function() {})
Called when chat with agent starts (after preChat if it exists)
nanorep.floatingWidget.on('BoldChat:chatFormSent', function(params) {})
Called when postChat or transcript form submit
params.type: String |
transcript | postChat |
nanorep.floatingWidget.on('BoldChat:chatEnded', function() {})
Called when chat ended
nanorep.floatingWidget.on('BoldChat:newMessage', function(entryModel, entryElement) {})
Called when any new message appears in the chat log
entryModel: Object |
Entry model object, like { type: 1, text: 'Entry text', avatar... } |
entryElement: DOM element |
Entry DOM element. Could be used to update entry |