(function(global) {
  System.config({
    transpiler: 'plugin-babel',
    paths: {
      'npm:': 'node_modules/',
      'generated-sources': 'build_dev/js/generated-sources'
    },
    map: {
      'webbpm':                            'build_dev/js',
      '@angular/core':                     'npm:@angular/core/bundles/core.umd.js',
      '@angular/common':                   'npm:@angular/common/bundles/common.umd.js',
      '@angular/common/http':              'npm:@angular/common/bundles/common-http.umd.js',
      '@angular/common/locales':           'npm:@angular/common/locales',
      '@angular/compiler':                 'npm:@angular/compiler/bundles/compiler.umd.js',
      '@angular/platform-browser':         'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
      '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
      '@angular/router':                   'npm:@angular/router/bundles/router.umd.js',
      '@angular/forms':                    'npm:@angular/forms/bundles/forms.umd.js',
      '@angular/animations':               'npm:@angular/animations/bundles/animations.umd.js',
      '@angular/animations/browser':       'npm:@angular/animations/bundles/animations-browser.umd.js',
      '@angular/platform-browser/animations':'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
      '@ng-bootstrap/ng-bootstrap':        'npm:@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.umd.js',
      'bootstrap':                         'npm:bootstrap',
      '@webbpm/base-package':              'npm:@webbpm/base-package/bundles/webbpm-base-package.umd.js',
      'angular-calendar':                        'npm:angular-calendar/bundles/angular-calendar.umd.js',
      'angular-calendar/date-adapters/date-fns': 'npm:angular-calendar/date-adapters/date-fns/index.js',
      'angular-draggable-droppable':             'npm:angular-draggable-droppable/bundles/angular-draggable-droppable.umd.js',
      'angular-resizable-element':               'npm:angular-resizable-element/bundles/angular-resizable-element.umd.js',
      'calendar-utils':                          'npm:calendar-utils/bundles/calendar-utils.umd.js',
      'calendar-utils/date-adapters/date-fns':   'npm:calendar-utils/date-adapters/date-fns/index.js',
      'date-fns':                                'npm:date-fns',
      'ngx-cookie':                        'npm:ngx-cookie/bundles/ngx-cookie.umd.js',
      'moment':                            'npm:moment',
      'moment-timezone':                   'npm:moment-timezone',
      'positioning':                       'npm:positioning/dist/positioning.js',
      'rxjs':                              'npm:rxjs',
      'rxjs-compat':                       'npm:rxjs-compat',
      'rxjs/operators':                    'npm:rxjs/operators',
      'rxjs/internal-compatibility':       'npm:rxjs/internal-compatibility',
      'rxjs/ajax':                         'npm:rxjs/ajax',
      'rxjs/testing':                      'npm:rxjs/testing',
      'rxjs/webSocket':                    'npm:rxjs/webSocket',
      'jquery':                            'npm:jquery/dist/jquery.js',
      'popper.js':                         'npm:popper.js/dist/umd/popper.js',
      'sifter':                            'npm:sifter/sifter.min.js',
      'microplugin':                       'npm:microplugin/src/microplugin.js',
      'selectize':                         'npm:selectize/dist/js/selectize.min.js',
      'ngx-toastr':                        'npm:ngx-toastr/bundles/ngx-toastr.umd.min.js',
      'eonasdan-bootstrap-datetimepicker': 'npm:eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js',
      'autonumeric':                       'npm:autonumeric',
      'jsgantt-improved':                  'npm:jsgantt-improved/dist/jsgantt.js',
      'js-year-calendar':                  'npm:js-year-calendar/dist/js-year-calendar.js',
      'ag-grid-angular':                   'npm:ag-grid-angular/bundles/ag-grid-angular.umd.js',
      'ag-grid-community':                 'npm:ag-grid-community/dist/ag-grid-community.cjs.js',
      'inputmask':                         'npm:inputmask',
      'downloadjs':                        'npm:downloadjs/download.js',
      'esmarttokenjs':                     'npm:esmarttokenjs/esmarttoken.js',
      'cadesplugin_api':                   'npm:cadesplugin_api/index.js',
      'plugin-babel':                      'npm:systemjs-plugin-babel/plugin-babel.js',
      'systemjs-babel-build':              'npm:systemjs-plugin-babel/systemjs-babel-browser.js',
      'chart.js':                          'npm:chart.js/dist',
      'chartjs-adapter-moment':            'npm:chartjs-adapter-moment/dist/chartjs-adapter-moment.js',
      'tslib':                             'npm:tslib/tslib.js',
      'ngx-international-phone-number':    'npm:ngx-international-phone-number/ngx-international-phone-number.umd.js',
      'google-libphonenumber':             'npm:google-libphonenumber/dist/libphonenumber.js',
      'ng2-file-upload':                   'npm:ng2-file-upload/bundles/ng2-file-upload.umd.js'
    },
    packages: {
      'webbpm':                     { main: 'main',  defaultExtension: 'js'},
      '@angular/common/locales':    { defaultExtension: 'js'},
      'date-fns':                   { main: 'index.js', defaultExtension: 'js'},
      'rxjs':                       { main: 'index.js', defaultExtension: 'js' },
      'rxjs-compat':                { main: "index.js", defaultExtension: 'js'},
      'rxjs/operators':             { main: "index.js", defaultExtension: 'js'},
      'rxjs/internal-compatibility':{ main: "index.js", defaultExtension: 'js'},
      'rxjs/ajax':                  { main: "index.js", defaultExtension: 'js'},
      'rxjs/testing':               { main: "index.js", defaultExtension: 'js'},
      'rxjs/webSocket':             { main: "index.js", defaultExtension: 'js'},
      'moment':                     { main: 'min/locales.min', defaultExtension: 'js' },
      'moment-es6':                 { main: 'index.js', defaultExtension: 'js' },
      'moment-timezone':            { main: 'builds/moment-timezone-with-data.min', defaultExtension: 'js' },
      'bootstrap':                  { main: 'dist/js/bootstrap', defaultExtension: 'js'},
      'lib':                        { format: 'register', defaultExtension: 'js' },
      'autonumeric': {
        main: 'dist/autoNumeric.js'
      },
      'chart.js':                   { main: 'chart.js',  defaultExtension: 'js' },
      'inputmask': {
        main: 'dist/inputmask.js',
        defaultExtension: 'js'
      }
    }
  });
})(this);
