• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/rest/externalchannel.php
  • Класс: Bitrix\Crm\Rest\CCrmExternalChannelImportRequisite
  • Вызов: CCrmExternalChannelImportRequisite::innerList
protected function innerList($filter=array())
{
	/** @var \CCrmCompanyRestProxy|\CCrmContactRestProxy $ownerEntity */
	$ownerEntity = $this->getOwnerEntity();

	/** @var CCrmExternalChannelImport $import */
	$import = $this->import;

	/** @var CCrmExternalChannelConnector $connector */
	$connector = $import->getConnector();


	return $this->getEntity()->getList(
		array(
			'order' => array('ID'),
			'filter' => array_merge(
				$filter,
				array(
					'ENTITY_TYPE_ID' => $ownerEntity->getOwnerTypeID(),
					'ORIGINATOR_ID' => $connector->getOriginatorId()
				)
			),
			'select' => array('*')
		)
	);
}