Available Javascript Methods
The Fast Track Front End Javascript Library has a set of public methods available. Below you find a list of them.
All of below functions are avaiable at window.FasttrackCrm like window.FasttrackCrm.toggleInbox().
toggleInbox()
Toggles the Inbox modal to be shown or hidden. Inbox functionality must be enabled for this to work.
togglePendingBonusesV2()
Toggles the Pending Bonuses model to be shown or hidden. Pending Bonuses must be enabled for this to work.
init()
If the flag autoInit is set to false, you can manually or by code initialise the javascript library using this method. Also, a good usage of this method if your SID would expire and you want to re-authenticate, then you can do the following:
window.sid = 'new-sid-here'; and then you run this method.
logout()
This method logs the front end user out from the javascript library. If you have the possibility, it is good practice to log the user out from the javascript library if the user logs out from your site.
demoMessage()
After the script has been initialised you can send a Demo Message / Debug Message locally. This can be useful when adjusting Front End designs.