I am creating a custom softphone, and am using the below resources:
<script type="text/javascript" src="/support/api/38.0/lightning/opencti.js"></script><script src="/support/api/40.0/interaction.js" type="text/javascript"></script>
However, this is some issues as I'm unable to access any sforce.opencti functionality. Every basic operation is failing with the error:
Cannot read property 'opencti' of undefined
and I am unsure why.
Would appreciate any help!