58 if ($this->campaignId)
67 $list = LetterTable::getList(array(
68 'select' => [
'ID',
'POSTING_ID',
'STATUS',
'AUTO_SEND_TIME',
'CAMPAIGN_ACTIVE' =>
'CAMPAIGN.ACTIVE'],
74 foreach ($list as $row)
79 foreach ($data as $row)
81 $agentName = static::getAgentName($row[
'ID']);
94 if (empty($row[
'AUTO_SEND_TIME']))
99 if ($row[
'CAMPAIGN_ACTIVE'] !==
'Y')
104 $allowedStatuses = [LetterTable::STATUS_SEND, LetterTable::STATUS_PLAN];
105 if (!in_array($row[
'STATUS'], $allowedStatuses))
110 $interval = Option::get(
'sender',
'auto_agent_interval');