Bitrix API

Event

Class Event

Table of Contents

Constants

COUNT_SESSIONS_DEFAULT  = 1
COUNT_SESSIONS_REALTIME  = 5

Methods

checkFreeSlotBySendMessage()  : void
Method for checking free slots by sending message data.
checkFreeSlotOnChatAnswer()  : void
OnChatAnswer event handler for filling free slots.
checkFreeSlotOnFinish()  : mixed
OnChatSkip/OnChatMarkSpam/OnChatFinish event handler for filling free slots.
checkFreeSlotOnOperatorTransfer()  : mixed
OnOperatorTransfer event handler for filling free slots.
checkSessionFreeSlotOnFinish()  : void
OnChatSkip/OnChatMarkSpam/OnChatFinish/OnOperatorTransfer event handler for filling free slots.
getLineIsDepartmentQueue()  : array<string|int, mixed>
getLineIsOperator()  : array<string|int, mixed>
getLineIsSessionOperator()  : array<string|int, mixed>
Return all lines where the user is an operator or has active dialogs.
getLineIsSessionOperatorNotLine()  : array<string|int, mixed>
initialization()  : All|Evenly|Strictly|null
initializationUsingConfiguration()  : All|Evenly|Strictly|null
OnAfterDepartmentsDelete()  : mixed
OnAfterDepartmentsUpdate()  : mixed
onAfterTMDayContinue()  : mixed
The working day continued after a pause.
onAfterTMDayEnd()  : void
The working day was over.
onAfterTMDayPause()  : void
The working day is put on pause.
onAfterTMDayStart()  : void
Start of working time.
OnAfterUserDelete()  : mixed
OnBeforeDepartmentsDelete()  : void
OnBeforeDepartmentsUpdate()  : mixed
onDepartmentDelete()  : void
onDepartmentMemberUpdated()  : void
onDepartmentUpdate()  : void
Event handler on department update.
OnEndAbsence()  : void
The event of end of holiday.
onQueueOperatorsAdd()  : void
Added operator to the queue.
OnQueueOperatorsChange()  : bool
Changing the list of responsible persons in the open line queue.
onQueueOperatorsDelete()  : bool
Remove an operator from the queue.
onQueueTypeChange()  : void
Changing the queue type.
OnStartAbsence()  : mixed
Start of vacation.
onUserAdd()  : mixed
onUserDelete()  : bool
Delete the user.
onUserUpdate()  : mixed
User update.
onUserUpdateBefore()  : mixed
refreshQueues()  : void

Constants

COUNT_SESSIONS_DEFAULT

public mixed COUNT_SESSIONS_DEFAULT = 1

COUNT_SESSIONS_REALTIME

public mixed COUNT_SESSIONS_REALTIME = 5

Methods

checkFreeSlotBySendMessage()

Method for checking free slots by sending message data.

public static checkFreeSlotBySendMessage(array<string|int, mixed> $messageData) : void
Parameters
$messageData : array<string|int, mixed>

checkFreeSlotOnChatAnswer()

OnChatAnswer event handler for filling free slots.

public static checkFreeSlotOnChatAnswer(Event $event) : void
Parameters
$event : Event

checkFreeSlotOnFinish()

OnChatSkip/OnChatMarkSpam/OnChatFinish event handler for filling free slots.

public static checkFreeSlotOnFinish(Event $event) : mixed
Parameters
$event : Event

checkFreeSlotOnOperatorTransfer()

OnOperatorTransfer event handler for filling free slots.

public static checkFreeSlotOnOperatorTransfer(Event $event) : mixed
Parameters
$event : Event

checkSessionFreeSlotOnFinish()

OnChatSkip/OnChatMarkSpam/OnChatFinish/OnOperatorTransfer event handler for filling free slots.

public static checkSessionFreeSlotOnFinish(Session $session) : void
Parameters
$session : Session

getLineIsDepartmentQueue()

public static getLineIsDepartmentQueue(array<string|int, int> $departments) : array<string|int, mixed>
Parameters
$departments : array<string|int, int>
Return values
array<string|int, mixed>

getLineIsOperator()

public static getLineIsOperator(mixed $userId[, false $checkTimeman = false ]) : array<string|int, mixed>
Parameters
$userId : mixed
$checkTimeman : false = false
Return values
array<string|int, mixed>

getLineIsSessionOperator()

Return all lines where the user is an operator or has active dialogs.

public static getLineIsSessionOperator(mixed $userId[, bool $checkTimeman = false ]) : array<string|int, mixed>
Parameters
$userId : mixed
$checkTimeman : bool = false
Return values
array<string|int, mixed>

getLineIsSessionOperatorNotLine()

public static getLineIsSessionOperatorNotLine(mixed $userId[, false $checkTimeman = false ][, array<string|int, mixed> $excludeLine = [] ]) : array<string|int, mixed>
Parameters
$userId : mixed
$checkTimeman : false = false
$excludeLine : array<string|int, mixed> = []
Return values
array<string|int, mixed>

initializationUsingConfiguration()

public static initializationUsingConfiguration(array<string|int, mixed> $configLine) : All|Evenly|Strictly|null
Parameters
$configLine : array<string|int, mixed>
Return values
All|Evenly|Strictly|null

OnAfterDepartmentsDelete()

public static OnAfterDepartmentsDelete(mixed $fields) : mixed
Parameters
$fields : mixed

OnAfterDepartmentsUpdate()

public static OnAfterDepartmentsUpdate(mixed &$fields) : mixed
Parameters
$fields : mixed

onAfterTMDayContinue()

The working day continued after a pause.

public static onAfterTMDayContinue(mixed $data) : mixed
Parameters
$data : mixed

onAfterTMDayEnd()

The working day was over.

public static onAfterTMDayEnd(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

onAfterTMDayPause()

The working day is put on pause.

public static onAfterTMDayPause(mixed $data) : void
Parameters
$data : mixed

onAfterTMDayStart()

Start of working time.

public static onAfterTMDayStart(mixed $data) : void
Parameters
$data : mixed

OnAfterUserDelete()

public static OnAfterUserDelete(mixed $userId) : mixed
Parameters
$userId : mixed

OnBeforeDepartmentsDelete()

public static OnBeforeDepartmentsDelete(mixed $sectionId) : void
Parameters
$sectionId : mixed

OnBeforeDepartmentsUpdate()

public static OnBeforeDepartmentsUpdate(mixed &$fields) : mixed
Parameters
$fields : mixed

onDepartmentUpdate()

Event handler on department update.

public static onDepartmentUpdate(Event $event) : void
Parameters
$event : Event
Tags
see
EventName::NODE_UPDATED

OnEndAbsence()

The event of end of holiday.

public static OnEndAbsence(Event $event) : void
Parameters
$event : Event

onQueueOperatorsAdd()

Added operator to the queue.

public static onQueueOperatorsAdd(Event $event) : void
Parameters
$event : Event
Tags
event

'imopenlines:OnQueueOperatorsAdd'

OnQueueOperatorsChange()

Changing the list of responsible persons in the open line queue.

public static OnQueueOperatorsChange(Event $event) : bool
Parameters
$event : Event
Return values
bool

onQueueOperatorsDelete()

Remove an operator from the queue.

public static onQueueOperatorsDelete(Event $event) : bool
Parameters
$event : Event
Tags
event

'imopenlines:OnQueueOperatorsDelete'

Return values
bool

onQueueTypeChange()

Changing the queue type.

public static onQueueTypeChange(Event $event) : void
Parameters
$event : Event
Tags
event

'imopenlines:OnImopenlineChangeQueueType'

OnStartAbsence()

Start of vacation.

public static OnStartAbsence(Event $event) : mixed
Parameters
$event : Event

onUserAdd()

public static onUserAdd(mixed &$userFields) : mixed
Parameters
$userFields : mixed

onUserDelete()

Delete the user.

public static onUserDelete(int $userId) : bool
Parameters
$userId : int
Return values
bool

onUserUpdate()

User update.

public static onUserUpdate(mixed &$userFields) : mixed
Parameters
$userFields : mixed

onUserUpdateBefore()

public static onUserUpdateBefore(mixed &$userFields) : mixed
Parameters
$userFields : mixed

refreshQueues()

public static refreshQueues() : void

        
On this page

Search results