Notification Popover Service

Class finesse.containerservices.NotificationPopoverService

The NotificationPopoverService publishes notifications on the desktop using the newly created topic finext.notification.popover.

Methods

init()

finesse.containerservices.NotificationPopoverService.init(finesse.containerservices.ContainerServices)

Initializes the NotificationPopoverService for use in gadgets. The initialization sets the logger and creates the topic for sending the notifications.

showNotification()

finesse.containerservices.NotificationPopoverService.showNotification(messageFrom,message, isDismissable, timeout, icon, type, pristine)

Sends the notification to the Finesse desktop with the details passed to the showNotification() method.

Example

finesse.containerservices.NotificationPopoverService.showNotification("Michael Littlefoot", "Hello, how are you doing ?", true, 500000, {'name': 'circle', size: 14, color: 'red'}, 'error' )

Parameters

Name

Type

Description

Required

messageFrom

String

The name of the customer from whom the message is coming.

No

message

String

The message sent by the customer.

Yes

isDismissable

Boolean

Whether the notification message popover is dismissable or not by the agent. (Whether to show the close icon).

Default value: true

No

timeout

String

Determines the time (in milliseconds) after which the popup notification gets closed if not canceled explicitly.

Default value: 8000 milliseconds.

Note

When the timeout for a message is set to 0, the desktop does not display the notification pop-up immediately upon its arrival. Instead, the desktop accumulates all the messages with a timeout value of 0 and displays a generic notification pop-up after the configured wait time. The notification remains visible for the pre-configured pop-up duration before it disappears.

No

icon

Object

Object containing name, color, and size of the icon.

The icon has to be from the list of icons supported by Finesse.

Yes

type

String

Type of the message. If the value of type is error, the floating message notification is always visible irrespective of whether the navbar is pinned or not.

Otherwise, floating notification is shown only when navbar is unpinned, which is the default behavior.

No

pristine

Boolean

Flag to prefix "Messages From" text in the notification title.

Default value: false. Indicates to prefix the "Message From" text in the notification title.

No