 path = require 'path'
 express = require 'express'
 exphbs = require 'express-handlebars'
-WebHook = require './webhook'
 Crashreport = require './model/crashreport'
 Symfile = require './model/symfile'
 

run = ->
  app = express()
  breakpad = express()
  webhook = new WebHook

  breakpad.set 'views', path.resolve(__dirname, '..', 'views')
  breakpad.engine('handlebars', exphbs({defaultLayout: 'main'}))

      console.log 'warning: error thrown without a message'

    res.status(500).send "Bad things happened:<br/> #{err.message || err}"

  breakpad.post '/crashreports', (req, res, next) ->
    Crashreport.createFromRequest req, (err, record) ->
