• Модуль: messageservice
  • Путь к файлу: ~/bitrix/modules/messageservice/lib/converter.php
  • Класс: BitrixMessageServiceConverter
  • Вызов: Converter::convertBizprocProviders
static function convertBizprocProviders()
{
	if (!MainLoader::includeModule('bizproc'))
		return false;

	$providerList = BizprocRestProviderTable::getList();

	while ($row = $providerList->fetch())
	{
		static::addRestSender(array(
			'APP_ID' => $row['APP_ID'],
			'APP_NAME' => $row['APP_NAME'],
			'CODE' => $row['CODE'],
			'TYPE' => $row['TYPE'],
			'HANDLER' => $row['HANDLER'],
			'NAME' => $row['NAME'],
			'DESCRIPTION' => $row['DESCRIPTION']
		));
	}
	return true;
}