• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/statistics/dialog.php
  • Класс: BitrixImOpenLinesIntegrationsReportStatisticsDialog
  • Вызов: Dialog::createRecord
public function createRecord()
{
	DialogStatTable::add(array(
		'fields' => array(
			'DATE' => $this->getDate(),
			'OPEN_LINE_ID' => $this->getOpenLineId(),
			'SOURCE_ID' => $this->getSourceId(),
			'OPERATOR_ID' => $this->getOperatorId(),
			'ANSWERED_QTY' => $this->getStatus() === self::STATUS_ANSWERED ?  1 : 0,
			'APPOINTED_QTY' => $this->getStatus() === self::STATUS_NO_PRECESSED ? 1 : 0,
			'SKIP_QTY' => $this->getStatus() === self::STATUS_SKIPPED ? 1 : 0,
			'AVERAGE_SECS_TO_ANSWER' => $this->getStatus() === self::STATUS_ANSWERED ? $this->getSecsToAnswer() : 0,
		)
	));
}