How to get Event Callback from Faqprime?

   

Answer

Faqprime Events

var faqbotEventType = {

FAQBOT_NORMALSTART: 1, // Event id for the normal start 

FAQBOT_HOTSTART: 2, // Event id for the hotspot

FAQBOT_TIMERINTENT: 3, // Event id for timer intent

FAQBOT_TIMERSTART: 4 // Event if for timer start

};

 

Faqprime Event Call Back:

faqbotEventNotification(eventarray)

 

Parameters 

eventarray with two elements 

eventarray.event, returns the event(faqbotEventType)

eventarray.url, returns the url on which event is initiated 

 

Sample Implementation

       function faqbotEventNotification(ev)
       {
               console.log(ev.event);
               console.log(ev.url);
       }

...