               \r\n
               \r\n
             "
+  text
+
 htmlTemplate = (report) ->
   text = "
     <html>

  User.find { weeklyReport: true }, callback

plainTemplate = (report) ->
  for data in report.data
    do (data) ->
      " \r\n \r\n <---------- Start Channel  #{data.channel.name} ---------------------------> \r\n \r\n
                Channel Name: #{data.channel.name} \r\n
                Channel Load: #{ data.data[0].load } transactions  \r\n
                Ave response time: #{ data.data[0].avgResp } \r\n

  agenda.every "1 days", 'send daily channel metrics'

exports.setupAgenda = setupAgenda
exports.sendReports = sendReports
exports.fetchDailySubscribers = fetchDailySubscribers
exports.fetchWeeklySubscribers = fetchWeeklySubscribers
exports.fetchChannelReport = fetchChannelReport
exports.sendUserEmail = sendUserEmail