MultiChannelAdapterContext
Fusion Application has legacy Multi Channel Adapter APIs exposed that third party applications can use to enable real time communications over phone, chat, and so on. UEF supports all the legacy MCA APIs through UEF and this approach has some advantages over the legacy integration as given shown in this topic.
Advantages of using MCA through UEF are as follows:
-
Control and Access VB objects from MCA actions.
-
Single client library needed for third party integration. (injection of mcaInteractionV1.js can be avoided which is used for integration of legacy MCA).
-
Typescript support for MCA events and actions.
-
Single coding pattern experience for all third party integration, such as both UEF and MCA.
-
Perform multiple operations from third party client app on MCA action completions, such as Pop more screensNote: This implementation is backward compatible and shouldn't affect the existing integrations with MCA.
MultiChannelAdaptorContext is the object that encapsulates the events and actions on different channels when there's a telephonic or chat interaction happening. This object is added on top of UEF provider object to access a CommunicationChannelContext, for example, PhoneContext. Users can get the MultiChannelAdaptorContext by calling getMultiChannelAdaptorContext API provided in UEF provider object.
Syntax
getMultiChannelAdaptorContext(): Promise<IMultiChannelAdaptorContext>;
Here's a Typescript example of how to access multiChannelAdaptorContext.
const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const multiChannelAdaptorContext: IMultiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();
Here's a Javascript example of how to access multiChannelAdaptorContext:
const uiEventsFrameworkInstance = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const multiChannelAdaptorContext = await uiEventsFrameworkInstance.getMultiChannelAdaptorContext();
Supported Methods
Method Name | Description | Example |
---|---|---|
getActiveChannels | Gets supported channels, such as Phone, Chat, and so on. | See getActiveChannels inIMultiChannelAdaptorContext |
getCommunicationChannelContext | Gets the context of the communication channel supported over multiChannelAdaptorContext object, such as PhoneContext. | See getCommunicationsChannelContext in IMultiChannelAdaptorContext |