text: define(
  	(require, factory) => {
      const { AuthorizedRoute } = require('pages/Route');
      function routes(router) {
        const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => {
          require(['./conceptset-manager', 'components/cohort-definition-browser', 'conceptset-list-modal'], function () {
            router.setCurrentView('conceptset-manager', {
              conceptSetId,
              mode,
            })
          });
        });
  
        return {
          '/conceptset/:conceptSetId': detailsRoute,
          '/conceptset/:conceptSetId/:mode': detailsRoute,
          '/conceptsets': new AuthorizedRoute(() => {
            require(['./conceptset-browser'], function () {
              router.setCurrentView('conceptset-browser');
            });
          }),
          '/concept/:conceptId:': new AuthorizedRoute((conceptId) => {
            require(['./concept-manager'], function () {
              router.setCurrentView('concept-manager', { conceptId });
            });
          }),
        };
      }
  
      return routes;
    }
  );