AIA.js 5.52 KB
'use strict';

var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage']);



AIA.constant('pages', [
    {
        name: 'Login',
        pageSlug: 'login',
        pageUrl: 'login.html',
        pageController: 'AuthenticationController'
    },
    {
        name: 'Dissectible Anatomy Views List',
        pageSlug: 'da-view-list',
        pageUrl: 'app/views/da/da-body-view-list.html',
        pageController: 'DAController'
    },
    {
        name: 'Dissectible Anatomy Body View',
        pageSlug: 'da-body-view',
        pageUrl: 'app/views/da/da-body-view.html',
        pageController: 'DAController'
    },
    {
        name: 'Clinical Illustrations',
        pageSlug: 'ci-view',
        pageUrl: 'app/views/ci/ci-view.html',
        pageController: 'CIController'

    },
        {
        name: 'Clinical Animationa',
        pageSlug: 'ca-view',
        pageUrl: 'app/views/ca/ca-view.html',
        pageController: 'CAController'

        },
    {
        name: '3D Anatomy',
        pageSlug: '3dA-view',
        pageUrl: 'app/views/3dA/3dA-view.html',
        pageController: '3dAController'

    },
    {
        name: 'Curriculum Builder',
        pageSlug: 'CBuild-view',
        pageUrl: 'app/views/CBuild/CBuild-view.html',
        pageController: 'CBuildController'

    },
    {
        name: 'Anatomy Tests',
        pageSlug: 'AnatTest-view',
        pageUrl: 'app/views/AnatTest/AnatTest-view.html',
        pageController: 'AnatTestController'

    },
    {
        name: 'Lab Exercises',
        pageSlug: 'LabExerc-view',
        pageUrl: 'app/views/LabExerc/LabExerc-view.html',
        pageController: 'LabExercController'

    },
    {
        name: 'ADAM Images',
        pageSlug: 'ADAMImg-view',
        pageUrl: 'app/views/ADAMImg/ADAMImg-view.html',
        pageController: 'ADAMImgController'

    },
    {
        name: 'ADAM On Demand',
        pageSlug: 'AOD-view',
        pageUrl: 'app/views/AOD/AOD-view.html',
        pageController: 'AODController'

    },
    {
        name: 'Encyclopedia',
        pageSlug: 'ADAMPID117-view',
        pageUrl: 'app/views/ADAMPID117/ADAMPID117-view.html',
        pageController: 'ADAMPID117Controller'

    },
    {
        name: 'IP 10',
        pageSlug: 'IP10-view',
        pageUrl: 'app/views/IP10/IP10-view.html',
        pageController: 'IP10Controller'

    },
    {
        name: 'In-Depth Reports',
        pageSlug: 'InDepth-view',
        pageUrl: 'app/views/InDepth/InDepth-view.html',
        pageController: 'InDepthController'

    },
    {
        name: 'Complementary and Alternative Medicine',
        pageSlug: 'CompAndAltMed-view',
        pageUrl: 'app/views/CompAndAltMed/CompAndAltMed-view.html',
        pageController: 'CompAndAltMedController'

    },
    {
        name: 'Body Guide',
        pageSlug: 'BodyGuide-view',
        pageUrl: 'app/views/BodyGuide/BodyGuide-view.html',
        pageController: 'BodyGuideController'

    },
    {
        name: 'Symptom Navigator',
        pageSlug: 'SymptNav-view',
        pageUrl: 'app/views/SymptNav/SymptNav-view.html',
        pageController: 'SymptNavController'

    },
    {
        name: 'The Wellness Tools',
        pageSlug: 'WellTools-view',
        pageUrl: 'app/views/WellTools/WellTools-view.html',
        pageController: 'WellToolsController'

    },
    {
        name: 'home',
        pageSlug: 'home',
        pageUrl: 'app/widget/MainView.html',
        pageController: 'HomeController'
    },
]);


AIA.constant('DA', [
    {
        ethnicity: 'W',
        modesty: 'Y',

    },
]);


AIA.constant('Modules', [
    {
        Id: 1,
        Name: 'Dissectible Anatomy',
    },
     {
         Id: 2,
         Name: 'Atlas Anatomy',
     },
     {
         Id: 3,
         Name: '3D Anatomy',
     },
     {
         Id: 4,
         Name: 'Clinical Illustrations',
     },
     {
         Id: 5,
         Name: 'Clinical Animations',
     },
     {
         Id: 6,
         Name: 'Curriculum Builder',
     },
     {
         Id: 7,
         Name: 'Anatomy Tests',
     },
     {
         Id: 8,
         Name: 'Lab Exercises',
     },
     {
          Id: 9,
          Name: 'ADAM Images',
     },
     {
         Id: 10,
         Name: 'ADAM On Demand',
     },
     {
         Id: 11,
         Name: 'Encyclopedia',
     },
     {
         Id: 12,
         Name: 'IP 10',
     },
     
     {
        Id: 13,
        Name: 'In-Depth Reports',
     },
     {
        Id: 14,
        Name: 'Complementary and Alternative Medicine',
     },
     {
        Id: 15,
        Name: 'Body Guide',
     },
     {
        Id: 16,
        Name: 'Symptom Navigator',
     },
     {
        Id: 17,
        Name: 'The Wellness Tools',
     },

]);
AIA.constant('BodyViewws', [
    {
        Id: 1,
        Name: 'Male Anterior',
    },
]);

AIA.config(function ($routeProvider, pages, $locationProvider) {

    $locationProvider.html5Mode(true);

    for (var i = 0; i < pages.length; i++) {
        if (pages[i].pageSlug != null) {
            $routeProvider.
                when('/' + pages[i].pageSlug,
                {
                    templateUrl: pages[i].pageUrl,
                    controller: pages[i].pageController
                })
            .otherwise({
                templateUrl: 'app/widget/MainView.html',
                controller: 'HomeController'
            })

        }
    }
});