       deferred.promise
 
   @$get = () ->
-    bootStrap: (_state, _q, _bxSession) ->
+    bootstrap: (_state, _q, _bxSession) ->
       bxSession = _bxSession
       $state = _state
       $q = _q

    scope.$emit 'bxSession:' + emit, session

  @$get = () ->
    bootStrap: (_rootScope, _http, _q) ->
      scope = $rootScope = _rootScope
      $http = _http
      $q = _q

.run [
  '$rootScope', '$state', '$http', '$q', 'bxAuth', 'bxSession'
  ($rootScope, $state, $http, $q, bxAuth, bxSession) ->
    bxAuth.bootstrap $state, $q, bxSession
    bxSession.bootstrap $rootScope, $http, $q
]
