(function(document) { 'use strict';

var gitVersion = document.documentElement.attributes['git-version'].value;

require.config({
    waitSeconds: 120,
    baseUrl : 'app/',
    paths: {
        'angular'                   : 'libs/angular-flex/angular-flex',
        'angular-route'             : 'libs/angular-route/angular-route',
        'angular-sanitize'          : 'libs/angular-sanitize/angular-sanitize.min',
        'authentication'            : 'factories/authentication',
        'bootstrap'                 : 'libs/bootstrap/dist/js/bootstrap.min',
        'bootstrap-datepicker'  : 'libs/bootstrap-datepicker/dist/js/bootstrap-datepicker.min',
        'css'                       : 'libs/require-css/css.min',
        'lodash'                    : 'libs/lodash/lodash',
        'linqjs'                    : 'libs/linqjs/linq.min',
        'jquery'                    : 'libs/jquery/dist/jquery',
        'guid'                      : 'libs/ui-guid-generator/dist/ui-guid-generator.min',
        'moment'                    : 'libs/moment/min/moment.min',
        'moment-timezone'           : 'libs/moment-timezone/builds/moment-timezone-with-data-2010-2020.min',
        'ngCookies'                 : 'libs/angular-cookies/angular-cookies.min',
        'ngSmoothScroll'            : 'libs/ngSmoothScroll/lib/angular-smooth-scroll',
        'shim'                      : 'libs/require-shim/src/shim',
        'text'                      : 'libs/requirejs-text/text',
        'toastr'                    : 'libs/angular-toastr/dist/angular-toastr.tpls.min',
        'URIjs'                     : 'libs/uri.js/src',
        'ng-ckeditor'               : 'libs/ng-ckeditor/ng-ckeditor',
        'ckeditor'                  : 'libs/ng-ckeditor/libs/ckeditor/ckeditor',
        'ngDialog'                  : 'libs/ng-dialog/js/ngDialog.min',
        'ngInfiniteScroll'          : 'libs/ngInfiniteScroll/build/ng-infinite-scroll',
'eonasdan-bootstrap-datetimepicker' :'libs/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min'
    },
    shim: {
        'libs/angular/angular'     : { deps: ['jquery'] },
        'jquery-ui'                : { deps: ['jquery'] },
        'angular'                  : { deps: ['libs/angular/angular'] },
        'angular-route'            : { deps: ['angular'] },
        'ngCookies'                : { deps : ['angular'] },
        'bootstrap'                : { deps: ['jquery'] },
        'ngSmoothScroll'           : { deps: [ 'angular']},
        'guid'                     : { exports: 'ui_guid_generator' },
        'toastr'                   : { deps: ['angular']},
        'angular-sanitize'         : { deps: ['angular'] },
        'ng-ckeditor'              : { deps: ['angular','ckeditor']},
        'ngDialog'                 : { deps: ['angular' ]},
        'bootstrap-datepicker'     : { deps: ['css!libs/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css'] },        
        'eonasdan-bootstrap-datetimepicker': { deps: ['jquery','moment','bootstrap','css!libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css'] },
    },
    packages: [
        { name: 'ammap', main: 'ammap', location : 'libs/ammap3/ammap' }
    ],
    urlArgs: 'v=' + gitVersion
});

// BOOT
if (!require.defined('_slaask'))
    define("_slaask", window._slaask);

require(['angular', 'app', 'bootstrap', 'authentication', 'routes', 'template'], function(ng, app) {

    ng.element(document).ready(function () {
         ng.bootstrap(document, [app.name]);
    });
});

// Fix IE Console
(function(a){a.console||(a.console={});for(var c="log info warn error debug trace dir group groupCollapsed groupEnd time timeEnd profile profileEnd dirxml assert count markTimeline timeStamp clear".split(" "),d=function(){},b=0;b<c.length;b++)a.console[c[b]]||(a.console[c[b]]=d)})(window); //jshint ignore:line
})(document);
@@ -2941,17 +2941,9 @@
 %5D %7D,
-        
 %0A
+
     
@@ -3869,16 +3869,16 @@
 re:line%0A
-
 %7D)(docum
@@ -3882,8 +3882,1011 @@
 cument);
+%0A%0Aif (!Object.assign) %7B%0A  Object.defineProperty(Object, 'assign', %7B%0A    enumerable: false,%0A    configurable: true,%0A    writable: true,%0A    value: function(target) %7B%0A      'use strict';%0A      if (target === undefined %7C%7C target === null) %7B%0A        throw new TypeError('Cannot convert first argument to object');%0A      %7D%0A%0A      var to = Object(target);%0A      for (var i = 1; i %3C arguments.length; i++) %7B%0A        var nextSource = arguments%5Bi%5D;%0A        if (nextSource === undefined %7C%7C nextSource === null) %7B%0A          continue;%0A        %7D%0A        nextSource = Object(nextSource);%0A%0A        var keysArray = Object.keys(Object(nextSource));%0A        for (var nextIndex = 0, len = keysArray.length; nextIndex %3C len; nextIndex++) %7B%0A          var nextKey = keysArray%5BnextIndex%5D;%0A          var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);%0A          if (desc !== undefined && desc.enumerable) %7B%0A            to%5BnextKey%5D = nextSource%5BnextKey%5D;%0A          %7D%0A        %7D%0A      %7D%0A      return to;%0A    %7D%0A  %7D);%0A%7D

add plyfill for object assign, not available in IE causing crash