 
   robot.router.post "/hubot/ac-webhooks", (req, res) ->
 
+    # Get the data out of the request body
     data = JSON.parse req.body['data']
-    console.log data
     data = data['data']
     timeRecord = data['time_record']
     
+    # Handle billability
     billableStatus = 'billable'
     if timeRecord['billable_status'] != 1 then billableStatus = 'non billable'
 
+    # Collect other time record values
     userName = timeRecord['user_name']
     time = timeRecord['value']
     projectType = timeRecord['parent_type']

    projectName = timeRecord['project_name']
    taskName = timeRecord['task_name']
    
    taskMessage = ''
    if typeof taskName != 'undefined' then taskMessage = 'task ' + taskName + ' for the '

    message = userName + ' logged ' + time + ' ' + billableStatus + ' hours against the ' + 
      taskMessage + 'project ' + projectName + ' with the description ' + summary

    user = {}
    user.room = process.env['HUBOT_CAMPFIRE_ROOMS'].split(',')[0]

    robot.send user, message
    res.end '{"success":true}'



# Description:
#  Listens for ac webhooks and post in chat, Currently only interested in time
#  logs
#
# Dependencies:
#   None
