Interface BusEventAgentPreEndChat<TPayloadType>

This event is fired before a chat with an agent is ended. This occurs after the user has selected "Yes" from the confirmation modal but it can also be fired if the chat is ended by the agent.

interface BusEventAgentPreEndChat<TPayloadType = unknown> {
    cancelEndChat: boolean;
    endedByAgent: boolean;
    preEndChatPayload: TPayloadType;
    type: AGENT_PRE_END_CHAT;
}

Type Parameters

  • TPayloadType = unknown

Hierarchy (View Summary, Expand)

Properties

cancelEndChat: boolean

This value may be set by a listener to indicate that the process of ending the chat should be cancelled.

endedByAgent: boolean

Indicates if the chat was ended by the agent.

preEndChatPayload: TPayloadType

An arbitrary payload object that a listener may set. This payload will be passed to the service desk ServiceDesk#endChat function.

The type of the event.

MMNEPVFCICPMFPCPTTAAATR