/*global angular*/
(function () {
    'use strict';

    angular
        .module('simplAdmin.core', [])
        .config(['$stateProvider', function ($stateProvider) {
            $stateProvider.state('users', {
                url: '/users',
                templateUrl: "_content/TTS.Module.Core/admin/user/user-list.html",
                controller: 'UserListCtrl as vm'
                })
                .state('user-create', {
                    url: '/user/create',
                    templateUrl: '_content/TTS.Module.Core/admin/user/user-form.html',
                    controller: 'UserFormCtrl as vm'
                })
                .state('user-edit', {
                    url: '/user/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/user/user-form.html',
                    controller: 'UserFormCtrl as vm'
                })
                .state('widget', {
                    url: '/widget',
                    templateUrl: '_content/TTS.Module.Core/admin/widget/widget-instance-list.html',
                    controller: 'WidgetInstanceListCtrl as vm'
                })
                .state('configuration', {
                    url: '/configuration',
                    templateUrl: '_content/TTS.Module.Core/admin/configuration/configuration.html',
                    controller: 'ConfigurationCtrl as vm'
                })
                .state('customergroups', {
                    url: '/customergroups',
                    templateUrl: "_content/TTS.Module.Core/admin/customergroups/customergroup-list.html",
                    controller: 'CustomerGroupListCtrl as vm'
                })
                .state('customergroup-create', {
                    url: '/customergroups/create',
                    templateUrl: "_content/TTS.Module.Core/admin/customergroups/customergroup-form.html",
                    controller: 'CustomerGroupFormCtrl as vm'
                })
                .state('customergroup-edit', {
                    url: '/customergroups/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/customergroups/customergroup-form.html',
                    controller: 'CustomerGroupFormCtrl as vm'
                })
                .state('themes', {
                    url: '/themes',
                    templateUrl: '_content/TTS.Module.Core/admin/themes/theme-list.html',
                    controller: 'ThemeListCtrl as vm'
                })
                .state('online-themes', {
                    url: '/online-themes',
                    templateUrl: '_content/TTS.Module.Core/admin/themes/online-theme-list.html',
                    controller: 'OnlineThemeListCtrl as vm'
                })
                .state('theme-details', {
                    url: '/theme-details/:name',
                    templateUrl: '_content/TTS.Module.Core/admin/themes/theme-details.html',
                    controller: 'ThemeDetailsCtrl as vm'
                })
                .state('countries', {
                    url: '/countries',
                    templateUrl: '_content/TTS.Module.Core/admin/countries/country-list.html',
                    controller: 'CountryListCtrl as vm'
                })
                .state('country-create', {
                    url: '/countries/create',
                    templateUrl: '_content/TTS.Module.Core/admin/countries/country-form.html',
                    controller: 'CountryFormCtrl as vm'
                })
                .state('country-edit', {
                    url: '/countries/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/countries/country-form.html',
                    controller: 'CountryFormCtrl as vm'
                })
                .state('states-provinces', {
                    url: '/states-provinces',
                    templateUrl: '_content/TTS.Module.Core/admin/stateprovince/state-province-list.html',
                    controller: 'StateProvinceListCtrl as vm'
                })
                .state('country-states-provinces', {
                    url: '/countries/:countryId/states-provinces',
                    templateUrl: '_content/TTS.Module.Core/admin/stateprovince/state-province-list.html',
                    controller: 'StateProvinceListCtrl as vm'
                })
                .state('state-province-create', {
                    url: '/countries/:countryId/state-province/create',
                    templateUrl: '_content/TTS.Module.Core/admin/stateprovince/state-province-form.html',
                    controller: 'StateProvinceFormCtrl as vm'
                })
                .state('state-province-edit', {
                    url: '/countries/:countryId/state-province/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/stateprovince/state-province-form.html',
                    controller: 'StateProvinceFormCtrl as vm'
                })
                .state('districts', {
                    url: '/districts',
                    templateUrl: '_content/TTS.Module.Core/admin/district/district-list.html',
                    controller: 'DistrictListCtrl as vm'
                })
                .state('states-province-districts', {
                    url: '/state-province/:stateOrProvinceId/districts',
                    templateUrl: '_content/TTS.Module.Core/admin/district/district-list.html',
                    controller: 'DistrictListCtrl as vm'
                })
                .state('district-create', {
                    url: '/states-provinces/:stateOrProvinceId/district/create',
                    templateUrl: '_content/TTS.Module.Core/admin/district/district-form.html',
                    controller: 'DistrictFormCtrl as vm'
                })
                .state('district-edit', {
                    url: '/states-provinces/:stateOrProvinceId/district/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/district/district-form.html',
                    controller: 'DistrictFormCtrl as vm'
                })
                .state('roles', {
                    url: '/roles',
                    templateUrl: '_content/TTS.Module.Core/admin/role/role-list.html',
                    controller: 'RoleListCtrl as vm'
                })
                .state('role-create', {
                    url: '/roles/create',
                    templateUrl: '_content/TTS.Module.Core/admin/role/role-form.html',
                    controller: 'RoleFormCtrl as vm'
                })
                .state('role-edit', {
                    url: '/roles/edit/:id',
                    templateUrl: '_content/TTS.Module.Core/admin/role/role-form.html',
                    controller: 'RoleFormCtrl as vm'
                });
        }]);
})();
