 
 # Bootstraping hubot-enterprise
 # adding enterprise functions to robot object
-
-path = require('path')
+Path = require('path')
 Insight = require('insight')
 pkg = require('../package.json')
 

insight.track 'HE', 'start'

module.exports = (robot) ->
  robot.e = {}
  robot.e.adapter = new (require __dirname+
    '/../lib/adapter_core')(robot)
  robot.e.help = []

  robot.e.commons = {
    no_such_integration: (product) ->
      return "there is no such integration #{product}"

  #
  # will register function with the following regex:
  # /#{info.product} #{info.action} (.*)/i
  robot.e.create = (info, callback) ->
    integration_name = find_integration_name()
    info.product = info.product || integration_name
