define([
  'extensions/controllers/dashboard',
  'common/modules/visitors-realtime',
  'common/modules/journey',
  'common/modules/availability',
  'common/modules/completion_rate',
  'common/modules/completion_numbers',
  'common/modules/multi_stats',
  'common/modules/grouped_timeseries',
  'common/controllers/error'
],
function (Dashboard, RealtimeModule, JourneyModule, AvailabilityModule, CompletionRateModule, CompletionNumbersModule, MultiStatsModule, GroupedTimeseriesModule, Error) {
  var ControllerMap = {
    'error': Error,
    'dashboard': Dashboard,
    modules: {
      realtime: RealtimeModule,
      journey: JourneyModule,
      availability: AvailabilityModule,
      completion_rate: CompletionRateModule,
      completion_numbers: CompletionNumbersModule,
      multi_stats: MultiStatsModule,
      grouped_timeseries: GroupedTimeseriesModule
    }
  };

  return ControllerMap;
});

define([
  'extensions/controllers/dashboard',
  'common/controllers/error',
  'common/modules/availability',
  'common/modules/completion_numbers',
  'common/modules/completion_rate',
  'common/modules/grouped_timeseries',
  'common/modules/journey',
  'common/modules/multi_stats',
  'common/modules/visitors-realtime'
],
function (DashboardController, ErrorController,
  AvailabilityModule, CompletionNumbersModule, CompletionRateModule, GroupedTimeseriesModule,
  JourneyModule, MultiStatsModule, VisitorsRealtimeModule) {

  var ControllerMap = {
    dashboard: DashboardController,
    error: ErrorController,
    modules: {
      availability: AvailabilityModule,
      completion_numbers: CompletionNumbersModule,
      completion_rate: CompletionRateModule,
      grouped_timeseries: GroupedTimeseriesModule,
      journey: JourneyModule,
      multi_stats: MultiStatsModule,
      realtime: VisitorsRealtimeModule
    }
  };

  return ControllerMap;
});

Sort controller_map alphabetically