The direction (sub-communication type) of an interaction.
The SDK supports two well-known directions today - inbound and outbound. Server-reported
values that the SDK does not handle (e.g. callback, voicemail) are normalised to
InteractionCommSubType.UNKNOWN so consumers can branch safely without a string
match against an open-ended set. Read from InteractionTrait.communicationSubType.
Example
if (interaction.communicationSubType === InteractionCommSubType.OUTBOUND) { console.log("Agent-initiated outbound call"); }
The direction (sub-communication type) of an interaction.
The SDK supports two well-known directions today - inbound and outbound. Server-reported values that the SDK does not handle (e.g.
callback,voicemail) are normalised to InteractionCommSubType.UNKNOWN so consumers can branch safely without a string match against an open-ended set. Read from InteractionTrait.communicationSubType.Example