Метод scanDealSuitableCalls
Сигнатура метода
private function scanDealSuitableCalls(int $dealId): array
Возвращает:
array
Описание
Single bounded, freshest-first scan of one deal: never reads/hydrates more than the scan cap, even for a client with a very long call history (ALG-03 selection still applies the count/budget limit after). The cap is intentionally shallow and coordinated with the downstream consumer: the data collector (CallRecordingStrategy via ActivityDataCollector::DEFAULT_LIMIT) only reads the freshest few call activities per deal, so a suitable call hidden below the scan cap is older than that window anyway - scanning deeper would only pay to transcribe calls the tip never reads. Only the fields the suitability filter (VoxImplant + recording), the call-id extraction and the launch (responsible user) actually need are selected. A broker bunch-load would instead pull the full activity per row (DESCRIPTION, PROVIDER_PARAMS, PROVIDER_DATA and other TEXT/LONGTEXT fields) on every pass and retry.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$dealId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/RepeatSale/Transcription/InScopeCallCollector.php