text: 'use strict';
  require.config({
      paths: {
          // +AMD jquery: 'libs/jquery/dist/jquery',
          jquery: 'libs/jquery/dist/jquery',
          lodash: 'libs/lodash/lodash',
          moment: 'libs/moment/moment',
          i18next: 'libs/i18next/i18next.amd.withJQuery',
          offline: 'libs/offline/offline.min',
          pouchdb: 'libs/pouchdb/dist/pouchdb',
          'd3': 'libs/d3/d3',
  
          // -AMD
          angular: 'libs/angular/angular',
          'angular-translate': 'libs/angular-translate/angular-translate',
          'angular-smart-table': 'libs/angular-smart-table/dist/smart-table',
          'angular-route': 'libs/angular-route/angular-route',
          'angular-ui-router': 'libs/angular-ui-router/release/angular-ui-router',
          'angular-i18n': 'libs/angular-i18n/angular-locale_en-us',
          bootstrap: 'libs/bootstrap/dist/js/bootstrap',
          'bootstrap-datepicker': 'libs/bootstrap-datepicker/js/bootstrap-datepicker',
          'allmighty-autocomplete': 'libs/allmighty-autocomplete/script/autocomplete'
  
      },
      shim: {
          angular: {
              deps: ['jquery'],
              exports: 'angular'
          },
          'angular-ui-router': {
              deps: ['angular']
          },
          'angular-route': {
              deps: ['angular']
          },
          'angular-i18n': {
              deps: ['angular']
          },
          'allmighty-autocomplete': {
              deps: ['angular']
          },
          'angular-translate': {
              deps: ['angular']
          },
          bootstrap: {
              deps: ['jquery']
          },
          'bootstrap-datepicker': {
              deps: ['bootstrap']
          },
          'angular-smart-table': {
              deps: ['angular']
          }
      }
  });
  
  
  
  
  require(['app', 'moment', 'bootstrap', 'bootstrap-datepicker', 'd3'], function(app, moment) {
      var app = angular.module('dispensa');
      angular.element(document).ready(function() {
          angular.bootstrap(document, ['dispensa']);
      });
      return app;
  });
  