text: /* eslint-disable import/no-webpack-loader-syntax, import/extensions */
  
  import 'script-loader!jquery';
  import 'script-loader!lodash';
  import 'script-loader!messenger/build/js/messenger.js';
  import 'script-loader!messenger/build/js/messenger-theme-future.js';
  import 'script-loader!messenger/build/js/messenger-theme-flat.js';
  
  /* eslint-enable import/no-webpack-loader-syntax, import/extensions */
  
  import { isString, get } from 'lodash-es';
  
  import angular from 'angular';
  import { registerCoreModule } from '@ovh-ux/manager-core';
  import ngUiRouterBreadcrumb from '@ovh-ux/ng-ui-router-breadcrumb';
  import ovhManagerVrack from '@ovh-ux/manager-vrack';
  
  import { detach as detachPreloader } from '@ovh-ux/manager-preloader';
  
  import './index.scss';
  
  export default (containerEl, environment) => {
    const moduleName = 'vrackApp';
  
    angular
      .module(
        moduleName,
        [
          registerCoreModule(environment),
          ngUiRouterBreadcrumb,
          ovhManagerVrack,
          ...get(__NG_APP_INJECTIONS__, environment.getRegion(), []),
        ].filter(isString),
      )
      .config(
        /* @ngInject */ ($qProvider) => {
          $qProvider.errorOnUnhandledRejections(false);
        },
      )
      .config(
        /* @ngInject */ ($urlRouterProvider) => {
          $urlRouterProvider.otherwise('/vrack');
        },
      )
      .run(
        /* @ngInject */ ($rootScope, $transitions) => {
          const unregisterHook = $transitions.onSuccess({}, () => {
            detachPreloader();
            $rootScope.$broadcast('app:started');
            unregisterHook();
          });
        },
      );
  
    angular.bootstrap(containerEl, [moduleName], {
      strictDi: true,
    });
  
    return moduleName;
  };
  