• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/queue/event.php
  • Класс: BitrixImOpenLinesQueueEvent
  • Вызов: Event::checkFreeSlotBySendMessage
static function checkFreeSlotBySendMessage($messageData): void
{
	if ($messageData['AUTHOR_ID'] > 0)
	{
		//TODO: Replace with the method BitrixImOpenLinesChat::parseLinesChatEntityId or BitrixImOpenLinesChat::parseLiveChatEntityId
		list($connectorId, $lineId) = explode('|', $messageData['CHAT_ENTITY_ID']);

		$configManager = self::initialization($lineId);
		if(!empty($configManager))
		{
			$configManager->checkFreeSlotOnMessageSend($messageData);
		}
	}
}