 Box = require 'models/box'
 User = require 'models/user'
 
-if process.env.NODETIME_KEY
-  require('nodetime').profile
-    accountKey: process.env.NODETIME_KEY
-    appName: "#{process.env.CO_NODETIME_APP} #{require('os').hostname()}"
-
+nodetime = require('nodetime')
+nodetime.profile
+  accountKey: process.env.NODETIME_KEY
+  appName: "#{process.env.CO_NODETIME_APP} #{require('os').hostname()}"
 app = express()
 
 # Trust the headers from nginx and change req.ip to the real IP


# Templating language
app.set('view engine', 'ejs')

parse_settings = (text) ->
  try

# Create a box.
# Since we're creating a box, it doesn't have to exist, so we
# don't need to call check_box().
app.post "/box/:newboxname/?", nodetimeLog, check_api_key, (req, res) ->
  console.tick "got request create box #{req.params.newboxname}"
  res.header('Content-Type', 'application/json')
  boxname = req.params.newboxname
