CTI scenarios

Here are three basic scenarios for the CTI application.

  1. Make the agent available to make or accept calls.
  2. Handle the incoming calls.
  3. Handle the outbound calls.

How do I initialize the partner application as an MCA application?

Before implementing these scenarios, you must initialize the partner application as an MCA application to enable the communication with the Fusion application. Here's how you do it:
  1. Inject the UIEF (ui-events-framework) JavaScript library into the partner application. To do this, you must include the ui-events-framework-library into the partner application's HTML page. Here's the code to inject the library to the application:
    // Step 1: Include the javascript library in partner application
    <script src="https://static.oracle.com/cdn/ui-events-framework/libs/ui-events-framework-client.js"></script>
  2. Initialize the UIEF library. Once you can inject the UIEF JavaScript file into the HTML. You can initialize the framework using the following line:
    // Step 2: Initialize the library from partner application
    const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('PARTNER APP NAME', 'v1');