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.

FastTrack CRM Ready Event (Not required)

How to Listen for the Event

UseCase: If you run autoInit = false, and you would like to know when the script is loaded.
To respond when FastTrack CRM is ready, simply add an event listener to the window object fasttrack-crm-ready:

Usage Notes

  1. The event fires once, after all FastTrack CRM setup steps are complete.
  2. Any code that depends on CRM functionality should be placed inside this event listener or triggered after it.
  3. The listener should be added before or as soon as possible after the FastTrack CRM script is loaded to ensure the event isn’t missed.