We are making the switch to Salesforce (from GoldMine) and we are working to implement a system that will automatically route phone calls to the appropriate trip adviser based on their destination specialization and phone availability status. This system will be looking at a custom field on a custom object we have (User Setting.user_status__c) to determine who is available.
I have been searching to try and find anything that gives me an idea of how best to accomplish this, and I feel like all the pieces are there for me to do so (the UserPresence status, accessible by the embeddable widget, maybe using Salesforce's streaming api with a connected application to subscribe to changes coming from the RC widget) but I don't know where to start in regards to having the RC embeddable send events to a custom field in Salesforce. Where would I put the code telling Salesforce to listen for User Status Presence Changes? Where do I put the code that tells the RingCentral embeddble widget to emit User Status change events? Is the embeddable widget extensible to that degree? How does it get authorization to change a Users Salesforce Data?
It doesn't look like the event data that I want is provided by the embeddable widget based on the available events listed on this page.