- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/handlers/treatment.php
- Класс: BitrixImOpenLinesIntegrationsReportHandlersTreatment
- Вызов: Treatment::getGeneratedDemoData
protected function getGeneratedDemoData()
{
$result = array();
$providers = array(
'viber', 'facebook', 'vkgroup', 'livechat'
);
for ($i = 0; $i < 30; $i++)
{
$result[] = array(
'date' => date('Y-m-d H:i', strtotime("-" . 30 - $i . " day", time() - (rand(0, 24) * 3600))),
'open_line_id' => '1',
'source_id' => $providers[rand(0, 3)],
'operator_id' => rand(1, 6),
'first_treatment_qty' => rand(10, 90),
'repeated_treatment_qty' => rand(40, 160),
'positive_qty' => rand(10, 170),
'negative_qty' => rand(5, 10),
'without_mark_qty' => rand(12, 20),
'answered_qty' => rand(10, 50),
'skipped_qty' => rand(0, 10),
'refused_qty' => 6,
'average_secs_to_answer' => rand(250, 480),
);
}
return $result;
}