• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/analytics/agent.php
  • Класс: BitrixSaleInternalsAnalyticsAgent
  • Вызов: Agent::send
static function send(): void
{
	self::$date = new MainTypeDateTime();

	foreach (self::getProviders() as $provider)
	{
		$providerCode = $provider::getCode();
		$payload = Storage::getPayloadByCode($providerCode, self::$date);

		$sender = new Sender($providerCode, $payload);
		if ($sender->send())
		{
			static::onSuccessfullySent($providerCode, self::$date);
		}
	}

	static::createAgent(static::getNextExecutionAgentDate());
}