I'm currently working on a project where I need to access the Genesys Cloud API from Salesforce. The company is using Service Cloud Voice rather than the embedded Genesys client, so I was planning to use the Javascript SDK from a lightning component.
I've downloaded the current SDK js and put it into Salesforce as a static resource (which is how SF requires you to use external libraries), however it doesn't seem to be available to the component even though I can see that the resource is loaded in the network trace.
Here's how I include it in my component: <ltng:require scripts="{!$Resource.GenesysPureCloudJavascriptSDK}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />
The "afterScriptsLoaded" function does not get called.
Has anyone done this successfully? My other approach is to just use the basic API, which I would expect to work, but would be nice to use the SDK for authorization and standards.