/*
 * File: app.js
 *
 * This file was generated by Sencha Architect version 3.0.2.
 * http://www.sencha.com/products/architect/
 *
 * This file requires use of the Ext JS 4.2.x library, under independent license.
 * License of Sencha Architect does not include license for Ext JS 4.2.x. For more
 * details see http://www.sencha.com/license or contact license@sencha.com.
 *
 * This file will be auto-generated each and everytime you save your project.
 *
 * Do NOT hand edit this file.
 */

// @require @packageOverrides
Ext.Loader.setConfig({
	enabled: true
});


Ext.application({
	models: [
		'CategoryCount',
		'RoleCount',
		'UserComp',
		'Category',
		'SuddenCritTcode'
	],
	stores: [
		'UserWithRisks',
		'RolesWithRisks',
		'UserRisksCritRole',
		'UserRisksSoDrole',
		'UserRisksCritTcode',
		'UserRisksSoDFunc',
		'RisksMostOccuring',
		'TopTwentyUsers',
		'RoleRisksCritRole',
		'RoleRisksSoDrole',
		'RoleRisksCritTcode',
		'RoleRisksSoDFunc',
		'SystemRisksCritRole',
		'SystemRisksSoDrole',
		'SystemRisksCritTcode',
		'SystemRisksSoDFunc',
		'NewlyAssignedRisks',
		'DefinedRisksSoDrole2',
		'RoleRisksSoDrole2',
		'SystemRisksSoDrole2',
		'UserRisksSoDrole2',
		'ApprovedMitigated',
		'CritTcodeSuddenUsage',
		'RiskReactionTypes',
		'ViolationsByReactionType',
		'DefinedRisksSoDFunc',
		'DefinedRisksCritTcode',
		'IntroducedDetails'
	],
	views: [
		'DashboardPanel',
		'LicenseCategoryComponent',
		'UserListPopup',
		'DetailsIntroducedWindow'
	],
	controllers: [
		'ReportSettings',
		'LicenseDashboardController',
		'LoadController'
	],
	name: 'MyApp',

	getParams: function() {
		return Ext.Object.fromQueryString(document.location.search);
	},

	launch: function() {
		Ext.create('MyApp.view.DashboardPanel', {renderTo: Ext.getBody()});
		var colors = ['#E7A127', '#DD5A40', '#32A6DC', '#2AAC76', '#1E81AE',
		'#efc06e', '#e37761', '#75c3e7', '#70dcaf', '#5ebae3',
		'#f7deb4', '#efb0a4', '#b8e0f3', '#afebd2', '#a1d7ef'];

		Ext.chart.theme.Browser = Ext.extend(Ext.chart.theme.Base, {
		    constructor: function(config) {
		        Ext.chart.theme.Base.prototype.constructor.call(this, Ext.apply({
		            colors: colors
		        }, config));
		    }
		});

		Ext.override(Ext.data.Connection, {
		    timeout: 90000
		});
		Ext.Ajax.timeout = 90000;
		Ext.override(Ext.data.proxy.Ajax, { timeout: 90000 });
		Ext.override(Ext.form.action.Action, { timeout: 90 });
	}

});
