Sms::getConfigAction

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Sms
  4. getConfigAction
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/activity/sms.php
  • Класс: Bitrix\Crm\Controller\Activity\Sms
  • Вызов: Sms::getConfigAction
public function getConfigAction(int $entityTypeId, int $entityId): array
{
	return [
		'enable' => SmsManager::canUse(),
		'manageUrl' => SmsManager::getManageUrl(),
		'contactCenterUrl' => (
			Loader::includeModule('bitrix24')
				? '/contact_center/'
				: '/services/contact_center/'
		),
		'canSendMessage' => SmsManager::canSendMessage(),
		'statusDescription' => SmsManager::getMessageStatusDescriptions(),
		'statusSemantics' => SmsManager::getMessageStatusSemantics(),
		'config' => $this->getConfig($entityTypeId, $entityId),
	];
}

Добавить комментарий