Skip to main content

$aimychat

The $aimychat service allows you to interact with the Aimychat customer engagement platform.

$aimychat.findOperatorGroupByMainOperator

This method allows you to check in which group a specific agent is assigned as the default agent.

Syntax

The method accepts an agent login as a string argument:

$aimychat.findOperatorGroupByMainOperator("agent-login@example.com");

The method returns an object with two properties:

PropertyTypeDescription
idNumberGroup ID.
nameStringGroup name.

If the specified agent is the default agent in one of the groups, the method will return the group name and its ID. Otherwise, the method returns null.