       return "help for hubot enterprise:"+content
   }
 
+  # load scripts to robot
+  load_he_scripts = (path) ->
+    scriptsPath = Path.resolve ".", path
+    robot.load scriptsPath
+
+  # find integrations names: find by extracting integration name from integration folder
+  # hubot-integration will become: `integration`
   find_integration_name = ->
     myError = new Error
     trace = myError.stack.split('\n')

      fname = /\((.*):/i.exec(shift)[1].split(':')[0]
      unless fname == filename
        break
    fname.match(/\/hubot-(.*?)\//ig).pop().replace(/hubot-|\//g, '')

  # register a listener function with hubot-enterprise
  #

insight.track 'HE', 'start'

module.exports = (robot) ->
  # create e (enterprise object on robot)
  robot.e = {}
  # `mount` adapter object
  robot.e.adapter = new (require __dirname+
    '/../lib/adapter_core')(robot)
  # create array for HE integrations to store calls for help
  robot.e.help = []

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