NewChatEvent

Notification Object
      ↪ NewChatEvent


Notification when a new message is received for the chat session.

Subscribing

Event is send every time a user is receiving a new chat
When the chat session is an external session only administrators can subscribe with the select chat session oid.

How to process

When this event is received, a new chat message is received. The new message should be processed and the participant should be warned or the open chat screen should be updaeted.

Fields

Name Type Notes

sessionName

String

the name of the chat session

sessionOid

String

the oid of the chat session

chatOid

String

the oid of the chat session

date

String

the date of the chat in UTC

phoneLine

Phone Line

the phone line of the chat notification

clientId

String

the client id identifies the client from which the chat is send from (smartphone / softphone / ..)

creator

Addressable

the creator of the chat message

addressable

Addressable

the addressable of the chat session

reference

Entity

the sended reference (attachment or object reference)

contents

String

the contents of the chat. Long chat message are truncated

chatSessionType

String

the chat session type (user, group, phoneLine, external, whatsApp)

communicationOid

String

the oid of the linked communication object

forwarded

Boolean

is the chat a forward of another chat message

silent

Boolean

if true, do not show a notification, only refresh the active communication screens

incoming

Boolean

if true, the chat is incoming else it is outgoing

chatHuntingPolicy

LineHuntingPolicy

if true, the chat agent hunting is enabled and the delivery is handled specially