class TimeCards extends App {
	static main() {
		//TODO: Do all these manager initializations in order and display a loading screen until all is loaded.
		TimeCards.dataManager = new DataManager();
		TimeCards.dataManager.setSortingForType("project", [
			{
				field: "completed",
				direction: "DESC"
			},
			{
				field: "name"
			}
		]);
		TimeCards.dataManager.setSortingForType("card", [
			{
				field: "id_category"
			},
			{
				field: "title"
			}
		]);
		TimeCards.dataManager.setSortingForType("card_category", [
			{
				field: "name"
			}
		]);
		TimeCards.dataManager.setSortingForType("user", [
			{
				field: "deleted"
			},
			{
				field: "full_name"
			}
		]);
		TimeCards.dataManager.setSortingForType("user_role", [
			{
				field: "name"
			}
		]);
		
		Authentication.initialize();

		TimeCards.reportManager = new ReportManager();

		Navigation.initialize();
	}

	static onApplicationDidFinishLaunching() {
		
	}
}