require([
  'angular',
  'app',
  'moment',

  'app/controllers/default',
  'app/controllers/loginSudo',
  'app/controllers/manageTeamOwnership',
  'app/controllers/projectStream',
  'app/controllers/teamDashboard',

  'app/directives/count',
  'app/directives/timeSince'
], function(angular, app, moment){
  'use strict';

  app.config(function(
    $httpProvider, $interpolateProvider, $provide
  ) {
    // compatiblity with Django templates
    $interpolateProvider.startSymbol('<%');
    $interpolateProvider.endSymbol('%>');

    // add in Django csrf support
    $httpProvider.defaults.xsrfCookieName = 'csrftoken';
    $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';

    $provide.value('config', window.SentryConfig);
    $provide.value('selectedTeam', window.SentryConfig.selectedTeam);
    $provide.value('selectedProject', window.SentryConfig.selectedProject);
  });

  moment.lang(window.SentryConfig.lang);

  angular.bootstrap(document, ['app']);
});

define([
  'angular',
  'app',
  'moment',

  'app/controllers/default',
  'app/controllers/manageTeamOwnership',
  'app/controllers/projectStream',
  'app/controllers/teamDashboard',

  'app/directives/count',
  'app/directives/timeSince'
], function(angular, app, moment){
  'use strict';

  app.config(function(
    $httpProvider, $interpolateProvider, $provide
  ) {
    // compatiblity with Django templates
    $interpolateProvider.startSymbol('<%');
    $interpolateProvider.endSymbol('%>');

    // add in Django csrf support
    $httpProvider.defaults.xsrfCookieName = 'csrftoken';
    $httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';

    $provide.value('config', window.SentryConfig);
    $provide.value('selectedTeam', window.SentryConfig.selectedTeam);
    $provide.value('selectedProject', window.SentryConfig.selectedProject);
  });

  moment.lang(window.SentryConfig.lang);

  angular.bootstrap(document, ['app']);
});

Use define as it seems to work correctly?
Use define as it seems to work correctly?
