Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

590 B
Raw Blame
<%= CSVSafe.generate_line [I18n.t('reports.period', since: Date.strptime(params[:since], '%s'), until: Date.strptime(params[:until], '%s'))] %>

<% headers = [
    I18n.t('reports.team_csv.team_name'),
    I18n.t('reports.team_csv.conversations_count'),
    I18n.t('reports.team_csv.avg_first_response_time'),
    I18n.t('reports.team_csv.avg_resolution_time'),
    I18n.t('reports.team_csv.avg_customer_waiting_time'),
    I18n.t('reports.team_csv.resolution_count')
  ]
%>
<%= CSVSafe.generate_line headers -%>
<% @report_data.each do |row| %>
<%= CSVSafe.generate_line row -%>
<% end %>