'use strict'; var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage']); AIA.constant('pages', [ { // id:0, name: 'Index', pageSlug: 'index', pageUrl: 'index.html', pageController: 'HomeController' }, { // id:1, name: 'Dissectible Anatomy Views List', pageSlug: 'da-view-list', pageUrl: 'app/views/da/da-body-view-list.html', pageController: 'DAController' }, { //id:2, name: 'Dissectible Anatomy Body View', pageSlug: 'da-body-view', pageUrl: 'app/views/da/da-body-view.html', pageController: 'DAController' }, { // id:3, name: 'Clinical Illustrations', pageSlug: 'ci-list', pageUrl: 'app/views/ci/ci-view.html', pageController: 'CIController' }, { // id:4, name: 'Clinical Animations', pageSlug: 'ca-list', pageUrl: 'app/views/ca/ca-view.html', pageController: 'CAController' }, { // id:5, name: '3D Anatomy', pageSlug: '3d-anatomy-list', pageUrl: 'app/views/3dA/3dA-view.html', pageController: '3dAController' }, { //id:6, name: 'Curriculum Builder', pageSlug: 'cb-list', pageUrl: 'app/views/CBuild/CBuild-view.html', pageController: 'CurrBuildController' }, { //id:7, name: 'Anatomy Tests', pageSlug: 'at-list', pageUrl: 'app/views/AnatTest/AnatTest-view.html', pageController: 'AnatTestController' }, { //id:8, name: 'Lab Exercises', pageSlug: 'le-list', pageUrl: 'app/views/LabExerc/LabExerc-view.html', pageController: 'LabExercController' }, { //id:9, name: 'ADAM Images', pageSlug: 'ai-list', pageUrl: 'app/views/ADAMImg/ADAMImg-view.html', pageController: 'ADAMImgController' }, { //id:10, name: 'ADAM On Demand', pageSlug: 'aod-list', pageUrl: 'app/views/AOD/AOD-view.html', pageController: 'AODController' }, { //id:11, name: 'Encyclopedia', pageSlug: 'Link/encyclopedia', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:12, name: 'IP 10', pageSlug: 'Link/IP-10', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:13, name: 'In-Depth Reports', pageSlug: 'Link/indepth-reports', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:14, name: 'Complementary and Alternative Medicine', pageSlug: 'Link/complementary-and-alternate-medicine', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:15, name: 'Body Guide', pageSlug: 'Link/bodyguide', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:16, name: 'Symptom Navigator', pageSlug: 'Link/symptom-navigator', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:17, name: 'The Wellness Tools', pageSlug: 'Link/wellness-tools', pageUrl: 'app/views/Link/Link-view.html', pageController: 'LinkController' }, { //id:18, name: 'home', pageSlug: 'home', pageUrl: 'app/widget/MainView.html', pageController: 'HomeController' }, { // id:3, name: 'Clinical Illustrations View', pageSlug: 'clinical-illustrations-detail', pageUrl: 'app/views/ci/clinical-illustrations-detail.html', pageController: 'CIController' }, { // id:3, name: 'Clinical Animations View', pageSlug: 'clinical-animations-detail', pageUrl: 'app/views/ca/clinical-animations-detail.html', pageController: 'CAController' }, { // id:3, name: 'Lab Exercises', pageSlug: 'lab-exercises-detail', pageUrl: 'app/views/LabExerc/lab-exercises-detail.html', pageController: 'LabExercController' }, { // id:3, name: '3D Anatomy', pageSlug: '3d-anatomy-details', pageUrl: 'app/views/3dA/3d-anatomy-details.html', pageController: '3dAController' }, ]); AIA.constant('DA', [ { ethnicity: 'W', modesty: 'Y', figLeafTermId: '5868', SKIN_START_INTERNAL_LAYER: 100, SKIN_END_INTERNAL_LAYER: 199, SKIN_DEFAULT_INTERNAL_LAYER: 100, ZOOM_TERM_DATA: 50, SKIN_TERM_ID: 1 }, ]); 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.constant('BodyRegions', ['Abdomen', 'Body Wall and Back', 'Head and Neck', 'Lower Limb', 'Pelvis and Perineum', 'Thorax', 'Upper Limb']); AIA.constant('BodySystems', ['Cardiovascular', 'Digestive', 'Endocrine', 'Immune', 'Integumentary', 'Lymphatic', 'Muscular', 'Nervous', 'Reproductive', 'Respiratory', 'Skeletal', 'Urinary']); AIA.constant('ViewOrientations', ['Anterior', 'Posterior', 'Lateral','Medial', 'Superior', 'Inferior', 'Non-standard']); AIA.constant('MedicalSpecialties', ['Allergy & Immunology', 'Anesthesiology', 'Cardiology', 'Chiropractic', 'Dentistry', 'Dermatology', 'Embryology', 'Emergency Medicine', 'Endocrinology', 'First Aid', 'Gastroenterology', 'General Surgery', 'Geriatrics', 'Hematology', 'Infectious Diseases', 'Microbiology', 'Nuclear Medicine', 'Nephrology', 'Neurology', 'Nutrition', 'Obstetrics and Gynecology (OB/GYN)', 'Oncology (Cancer)', 'Opthalmology', 'Optometry', 'Orthopedics', 'Osteopathy', 'Otolaryngology (ENT)', 'Pathology', 'Pediatrics', 'Physiology', 'Plastic Surgery', 'Podiatry', 'Pulmonary Medicine', 'Radiology', 'Respiratory Therapy', 'Rheumatology', 'Sports Medicine', 'Urology', 'Vascular Medicine', 'Thoracic Surgery']); AIA.constant('ImageTypes', ['Illustration', 'Cadaver Photograph', 'Radiograph']); //login constant. AIA.constant("LoginConstants", { "USER_NOT_FOUND": "User not found.", "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.", "MAIL_NOT_SENT": "Mail not sent." }) AIA.constant("LoginMessageConstants", { "USER_OR_PASSWORD_INCORRECT": "UserId or Password is incorrect.", "RESET_PASSWORD": "Please check you email and reset your password.", "USERID_SENT_IN_EMAIL": "Please check you email, sent UserId in your email.", "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.", "MAIL_NOT_SENT": "We are facing some issue in sending email. Please try after sometime.", "INCORRECT_EMAIL_ID": "Please enter correct email id.", "BLANK_EMAIL_ID": "Please enter your email id.", "PASSWORD_RESET_MESSAGE": "Your password has been reset.", "NEW_AND_OLD_PASSWORD_DONOT_MATCH": "Your new password and confirm password not matched!", "USER_CREDENTIALS_MISSING": "Please Enter your credentials.", "USER_NOT_FOUND": "User not found.", //"ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.", //"MAIL_NOT_SENT": "Mail not sent." }) AIA.constant("UserModules", [ { "name": "Dissectible Anatomy", "slug": "da-view-list" }, { "name": "Atlas Anatomy", "slug": "aa-view-list" }, { "name": "3D Anatomy", "slug": "3d-anatomy-list" }, { "name": "Clinical Illustrations", "slug": "clinical-illustrations" }, { "name": "Clinical Animations", "slug": "clinical-animations" }, { "name": "Encyclopedia", "slug": "Link/encyclopedia" }, { "name": "Curriculum Builder", "slug": "curriculum-builder" }, { "name": "Anatomy Tests", "slug": "anatomy-test" }, { "name": "IP 10", "slug": "Link/IP-10" }, { "name": "Lab Exercises", "slug": "lab-exercises" }, { "name": "In-Depth Reports", "slug": "Link/indepth-reports" }, { "name": "Complementary and Alternative Medicine", "slug": "Link/complementary-and-alternate-medicine" }, { "name": "A.D.A.M Images", "slug": "ADAM-images" }, { "name": "Body Guide", "slug": "Link/bodyguide" }, { "name": "Symptom Navigator", "slug": "Link/symptom-navigator" }, { "name": "The Wellness Tools", "slug": "Link/wellness-tools" }, { "name": "A.D.A.M OnDemand", "slug": "ADAM-on-demand" } ]); 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 }). when('/Link/:modname', { templateUrl: 'app/views/Link/Link-view.html', controller: 'LinkController' }) .otherwise({ templateUrl: 'app/widget/MainView.html', controller: 'HomeController' }) } } });