text: function OnRun($rootScope, AppSettings, lock, authService, $state) {
    'ngInject';
  
    // change page title based on state
    $rootScope.$on('$stateChangeSuccess', (event, toState) => {
      $rootScope.pageTitle = '';
  
      if (toState.title) {
        $rootScope.pageTitle += toState.title;
        $rootScope.pageTitle += ' \u2014 ';
      }
  
      $rootScope.pageTitle += AppSettings.appTitle;
    });
  
    // Put the authService on $rootScope so its methods
    // can be accessed from the nav bar
    $rootScope.authService = authService;
  
    // Register the authentication listener that is
    // set up in auth.service.js
    authService.registerAuthenticationListener();
  
    // Register the synchronous hash parser
    // when using UI Router
    lock.interceptHash();
  
    // Get router values
    $rootScope.$state = $state;
  
    $rootScope._ = window._;
  }
  
  export default OnRun;
  