Commit 11e8e1e03d2fb1015d75d898e66610184161cef5

Authored by Nikita Kulshreshtha
1 parent ff2e54b0

space changes

400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
1   -'use strict';
2   -
3   -var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage']);
4   -
5   -
6   -
7   -AIA.constant('pages', [
8   -
9   - {
10   - // id:0,
11   - name: 'Index',
12   - pageSlug: 'index',
13   - pageUrl: 'index.html',
14   - pageController: 'HomeController'
15   - },
16   - { // id:1,
17   - name: 'Dissectible Anatomy Views List',
18   - pageSlug: 'da-view-list',
19   - pageUrl: 'app/views/da/da-body-view-list.html',
20   - pageController: 'DAController'
21   - },
22   - { //id:2,
23   - name: 'Dissectible Anatomy Body View',
24   - pageSlug: 'da-body-view',
25   - pageUrl: 'app/views/da/da-body-view.html',
26   - pageController: 'DAController'
27   - },
28   - {
29   - name: 'Tiny View List',
30   - pageSlug: 'tile-view-list',
31   - pageUrl: 'app/views/tile-view.html',
32   - pageController: 'TileViewListController'
33   -
34   - },
35   - { // id:3,
36   - name: 'Clinical Illustrations',
37   - pageSlug: 'clinical-illustrations',
38   - pageUrl: 'app/views/ci/ci-view.html',
39   - pageController: 'CIController'
40   -
41   - },
42   - {
43   - // id:4,
44   - name: 'Clinical Animations',
45   - pageSlug: 'clinical-animations',
46   - pageUrl: 'app/views/ca/ca-view.html',
47   - pageController: 'CAController'
48   -
49   - },
50   - { // id:5,
51   - name: '3D Anatomy',
52   - pageSlug: '3d-anatomy-list',
53   - pageUrl: 'app/views/3dA/3dA-view.html',
54   - pageController: '3dAController'
55   -
56   - },
57   - { //id:6,
58   - name: 'Curriculum Builder',
59   - pageSlug: 'curriculum-builder',
60   - pageUrl: 'app/views/CBuild/CBuild-view.html',
61   - pageController: 'CurrBuildController'
62   -
63   - },
64   - { //id:7,
65   - name: 'Anatomy Tests',
66   - pageSlug: 'anatomy-test',
67   - pageUrl: 'app/views/AnatTest/AnatTest-view.html',
68   - pageController: 'AnatTestController'
69   -
70   - },
71   - { //id:8,
72   - name: 'Lab Exercises',
73   - pageSlug: 'lab-exercises',
74   - pageUrl: 'app/views/LabExerc/LabExerc-view.html',
75   - pageController: 'LabExercController'
76   -
77   - },
78   - { //id:9,
79   - name: 'ADAM Images',
80   - pageSlug: 'ADAM-images',
81   - pageUrl: 'app/views/ADAMImg/ADAMImg-view.html',
82   - pageController: 'ADAMImgController'
83   -
84   - },
85   - { //id:10,
86   - name: 'ADAM On Demand',
87   - pageSlug: 'ADAM-on-demand',
88   - pageUrl: 'app/views/AOD/AOD-view.html',
89   - pageController: 'AODController'
90   -
91   - },
92   - { //id:11,
93   - name: 'Encyclopedia',
94   - pageSlug: 'Link/encyclopedia',
95   - pageUrl: 'app/views/Link/Link-view.html',
96   - pageController: 'LinkController'
97   -
98   - },
99   - { //id:12,
100   - name: 'IP 10',
101   - pageSlug: 'Link/IP-10',
102   - pageUrl: 'app/views/Link/Link-view.html',
103   - pageController: 'LinkController'
104   -
105   - },
106   - {
107   - //id:13,
108   - name: 'In-Depth Reports',
109   - pageSlug: 'Link/indepth-reports',
110   - pageUrl: 'app/views/Link/Link-view.html',
111   - pageController: 'LinkController'
112   -
113   - },
114   - { //id:14,
115   - name: 'Complementary and Alternative Medicine',
116   - pageSlug: 'Link/complementary-and-alternate-medicine',
117   - pageUrl: 'app/views/Link/Link-view.html',
118   - pageController: 'LinkController'
119   -
120   - },
121   - { //id:15,
122   - name: 'Body Guide',
123   - pageSlug: 'Link/bodyguide',
124   - pageUrl: 'app/views/Link/Link-view.html',
125   - pageController: 'LinkController'
126   -
127   - },
128   - { //id:16,
129   - name: 'Health Navigator',
130   - pageSlug: 'Link/health-navigator',
131   - pageUrl: 'app/views/Link/Link-view.html',
132   - pageController: 'LinkController'
133   -
134   - },
135   - { //id:17,
136   - name: 'The Wellness Tools',
137   - pageSlug: 'Link/wellness-tools',
138   - pageUrl: 'app/views/Link/Link-view.html',
139   - pageController: 'LinkController'
140   -
141   - },
142   - {
143   - name: 'A.D.A.M OnDemand',
144   - pageSlug: 'Link/aod',
145   - pageUrl: 'app/views/Link/Link-view.html',
146   - pageController: 'LinkController'
147   -
148   - },
149   - { //id:18,
150   - name: 'home',
151   - pageSlug: 'home',
152   - pageUrl: 'app/widget/MainView.html',
153   - pageController: 'HomeController'
154   - },
155   - {
156   - name: 'Tiny View List view',
157   - pageSlug: 'module-item-view',
158   - pageUrl: 'app/views/module-item-view.html',
159   - pageController: 'TileViewListController'
160   -
161   - },
162   -
163   - { // id:3,
164   - name: 'Clinical Illustrations View',
165   - pageSlug: 'clinical-illustrations-detail',
166   - pageUrl: 'app/views/ci/clinical-illustrations-detail.html',
167   - pageController: 'CIController'
168   -
169   - },
170   - { // id:3,
171   - name: 'Clinical Animations View',
172   - pageSlug: 'clinical-animations-detail',
173   - pageUrl: 'app/views/ca/clinical-animations-detail.html',
174   - pageController: 'CAController'
175   -
176   - },
177   - { // id:3,
178   - name: 'Lab Exercises',
179   - pageSlug: 'lab-exercises-detail',
180   - pageUrl: 'app/views/LabExerc/lab-exercises-detail.html',
181   - pageController: 'LabExercController'
182   -
183   - },
184   - { // id:3,
185   - name: '3D Anatomy',
186   - pageSlug: '3d-anatomy-details',
187   - pageUrl: 'app/views/3dA/3d-anatomy-details.html',
188   - pageController: '3dAController'
189   -
190   - },
191   -]);
192   -
193   -
194   -AIA.constant('DA', [
195   - {
196   - ethnicity: 'W',
197   - modesty: 'Y',
198   - figLeafTermId: '5868',
199   - SKIN_START_INTERNAL_LAYER: 100,
200   - SKIN_END_INTERNAL_LAYER: 199,
201   - SKIN_DEFAULT_INTERNAL_LAYER: 100,
202   - ZOOM_TERM_DATA: 50,
203   - SKIN_TERM_ID: 1
204   - },
205   -]);
206   -
207   -// These constants are same as in Database table ResourceModule, we have to maintain the module order and module id mention in the same order
208   -AIA.constant('Modules', [
209   - {
210   - Id: 1,
211   - Name: 'Dissectible Anatomy',
212   - },
213   - {
214   - Id: 2,
215   - Name: 'Atlas Anatomy',
216   - },
217   - {
218   - Id: 3,
219   - Name: '3D Anatomy',
220   - },
221   - {
222   - Id: 4,
223   - Name: 'Clinical Illustrations',
224   - },
225   - {
226   - Id: 5,
227   - Name: 'Clinical Animations',
228   - },
229   - {
230   - Id: 6,
231   - Name: 'Encyclopedia',
232   -
233   - },
234   - {
235   - Id: 7,
236   - Name: 'Curriculum Builder',
237   - },
238   - {
239   - Id: 8,
240   - Name: 'Anatomy Test',
241   - },
242   - {
243   - Id: 9,
244   - Name: 'IP 10',
245   - },
246   - {
247   - Id: 10,
248   - Name: 'Lab Exercises',
249   - },
250   - {
251   - Id: 11,
252   - Name: 'In-Depth Reports',
253   - },
254   - {
255   - Id: 12,
256   - Name: 'CAM', //Complementary and Alternative Medicine'
257   - },
258   - {
259   - Id: 13,
260   - Name: 'A.D.A.M. Images',
261   - },
262   - {
263   - Id: 14,
264   - Name: 'Body Guide',
265   - },
266   - {
267   - Id: 15,
268   - Name: 'Symptom Navigator', //Health Navigator',
269   - },
270   - {
271   - Id: 16,
272   - Name: 'The Wellness Tools',
273   - },
274   - {
275   - Id: 1017, // Updated from 17 to 1017 to match with database Id
276   - Name: 'A.D.A.M. OnDemand',
277   - },
278   -
279   -
280   -]);
281   -AIA.constant('BodyViewws', [
282   - {
283   - Id: 1,
284   - Name: 'Male Anterior',
285   - },
286   -]);
287   -
288   -AIA.constant('BodyRegions', ['Abdomen', 'Body Wall and Back', 'Head and Neck', 'Lower Limb', 'Pelvis and Perineum', 'Thorax', 'Upper Limb']);
289   -
290   -
291   -
292   -AIA.constant('BodySystems', ['Cardiovascular', 'Digestive', 'Endocrine', 'Immune', 'Integumentary', 'Lymphatic', 'Muscular', 'Nervous', 'Reproductive', 'Respiratory', 'Skeletal', 'Urinary']);
293   -
294   -AIA.constant('ViewOrientations', ['Anterior', 'Posterior', 'Lateral', 'Medial', 'Superior', 'Inferior', 'Non-standard']);
295   -
296   -
297   -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']);
298   -
299   -
300   -
301   -AIA.constant('ImageTypes', ['Illustration', 'Cadaver Photograph', 'Radiograph']);
302   -
303   -//login constant.
304   -AIA.constant("LoginConstants", {
305   - "USER_NOT_FOUND": "User not found.",
306   - "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
307   - "MAIL_NOT_SENT": "Mail not sent.",
308   - "MAIL_SENT": "Mail sent.",
309   - "SQL_CONNECTION_ERROR": "We are unable to connect with database. Please contact customer support",
310   - "EXCEPTION_OCCURED": "We are facing some issue. Please try to login after sometime.",
311   - "E_NO_ERROR": "0",
312   - "E_USER_NOT_EXIST": "1",
313   - "E_PASSWORD_NOT_MATCH": "2",
314   - "E_USER_ID_BLOCKED_24_HRS": "3",
315   - "E_USER_NOT_ACTIVE": "4",
316   - "E_USER_ID_WILL_BLOCKED": "5",
317   - "E_EMAIL_ID_NOT_EXIT": "6",
318   - "E_LICENCE_IS_INACTIVE": "7",
319   - "E_USER_NOT_MAP_TO_LICENCE_EDITION": "8",
320   - "E_NO_ROW_FOUND_LICENCE_TO_EDITION_TABLE": "9",
321   - "E_NO_ROW_FOUND_LICENCE_TABLE": "10",
322   - "E_SECURITY_QUEST_NOT_MATCH": "11",
323   - "E_SEQURITY_ANSWER_NOT_MATCH": "12",
324   - "E_FORGOT_USER_ID_EMAIL_ID_NOT_EXIT": "13",
325   - "E_TOTAL_NUMBER_LOGIN_EXCEED": "14",
326   - "E_FORGOT_PASSWORD_EMAIL_ID_NOT_EXIST": "15",
327   - "E_TEST_SETUP_ACCOUNT_USER_NAME_EXIST": "16",
328   - "E_TEST_SETUP_ACCOUNT_EMAILID_EXIST": "17",
329   - "E_SP_ERROR": "18",
330   - "E_ACCOUNT_NUMBER_NOT_EXIST": "19",
331   - "E_ACCOUNT_NUMBER_ALREADY_EXIST": "20",
332   - "E_TEST_ACCOUNT_CREATED_MAIL_COULD_NOT_SENT": "21",
333   - "E_MAIL_COULD_NOT_SENT": "22",
334   - "E_RESELLER_ACCOUNT_CREATED_MAIL_COULD_NOT_SENT": "23",
335   - "E_LICENSE_TERM_CONDITION": "24",
336   - "E_EDITION_NOT_LINKED_WITH_SITE": "25",
337   - "E_LOGIN_SESSION_EXPIRE": "26",
338   - "E_DISCOUNT_CODE_NOT_EXIST": "27",
339   - "E_DISCOUNT_CODE_ALREADY_EXIST": "28",
340   -
341   - "E_SITE_IP_NOT_NULL": "29",
342   - "E_EDITION_ID_NOT_NULL": "30",
343   - "E_MASTER_SITEIP_NOT_EXIST": "31",
344   - "EDITION_ID_NOT_EXIST": "32",
345   - "E_ERROR_LOG": "33",
346   - "E_MASTER_SITE_ALREADY_EXIST": "34",
347   - "E_ACCOUNT_NUMBER_NOT_NULL": "35",
348   - "E_SITE_IP_ALREADY_EXIST": "36",
349   -
350   -
351   - "E_LICENCE_IS_EXPIRED": "37",
352   - "E_SINGLEACCOUNT_IS_BEING_USED": "38",
353   -
354   -
355   - "E_DATA_BASE_CONNECTION": "4060",
356   -
357   -
358   - //login failure error constant
359   - "ACCOUNT_NUMBER_NOT_NULL": "4",
360   - "EDITION_ID_NOT_NULL": "5",
361   - "ACCOUNT_NUMBER_NOT_EXIST": "1",
362   - "EDITION_NOT_EXIST": "3",
363   - "MASTER_SITEIP_NOT_EXIST": "2",
364   - "LICENSE_INACTIVE": "6"
365   -});
366   -
367   -AIA.constant("LoginMessageConstants", {
368   - "USER_OR_PASSWORD_INCORRECT": "UserId or Password is incorrect.",
369   - "RESET_PASSWORD": "Please check you email and reset your password.",
370   - "USERID_SENT_IN_EMAIL": "We have sent you userId in email.",
371   - "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
372   - "MAIL_NOT_SENT": "We are facing some issue in sending email. Please try after sometime.",
373   - "MAIL_SENT":"Mail sent.",
374   - "INCORRECT_EMAIL_ID": "Invalid e-mail ID. If you do not know your correct e-mail ID please contact A.D.A.M. technical support or your institution's site administrator.",
375   - "BLANK_EMAIL_ID": "Please enter your email id.",
376   - "PASSWORD_RESET_MESSAGE": "Your password has been reset.",
377   - "PASSWORD_RESET_FAILURE": "We are unable to reset your password. Please try again after sometime.",
378   -
379   - "NEW_AND_OLD_PASSWORD_DONOT_MATCH": "Your new password and confirm password not matched!",
380   - "USER_CREDENTIALS_MISSING": "Please Enter your credentials.",
381   - "USER_NOT_FOUND": "User not found.",
382   - "NEW_PASSWORD_FIELD_IS_EMPTY": "Please enter new password to reset your password.",
383   - "PASSWORD_UPDATE_SUCCESS": "Password updated successfully",
384   - "PASSWORD_UPDATE_FAILED": "Password update failed",
385   - "SUBSCRIPTION_EXPIRATION_MESSAGE": "Your license is expired since ",
386   - "LICENSE_INACTIVE_MESSAGE": "Your license is inactive.",
387   - "INVALID_USER": "Invalid UserID",
388   - "USER_INACTIVE_MESSAGE": "User ID is inactive.",
389   - "INVALID_PASSWORD": "Invalid Password. UserID and password will be disabled if your password is entered incorrectly for five consecutive attempts. If you have forgotten your password, please click on the forgot password link.",
390   - "USER_BLOCKED": 'Your User ID has been blocked for 24 hours due to multiple wrong attempts. To unblock please click on "Forgot Password" link on your Login window and select "unblock" option.',
391   - "UNBLOCK_SELECTED": "unblock",
392   - "FORGOT_PASSWORD_SELECTED": "forgotpwd",
393   - "USER_UNBLOCK_LINK_IN_EMAIL": "Please check you email and unblock your account.",
394   - "USER_UNBLOCK_SUCCESS": "User unblocked",
395   - "USER_UNBLOCK_SUCCESS_MESSAGE": "Your account has been unblocked sucessfully.",
396   - "USER_UNBLOCK_FAILED": "Unblock operation failed",
397   - "USER_ALREADY_UNBLOCKED": "User already unblocked.",
398   - "LICENSE_TERM_CONDITION_UPDATE_SUCCESS": "License Term Accepted field updated successfully.",
399   - "LICENSE_TERM_CONDITION_UPDATE_FAILED": "License Term Accepted field update failed.",
400   - "UNABLE_TO_UNBLOCK": "We are unable to unblock. Please try after sometime.",
401   - //"ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
402   - //"MAIL_NOT_SENT": "Mail not sent."
403   -
404   -})
405   -AIA.constant("AdminConstants", {
406   - "ERROR_IN_SENDING_MAIL": "Some internal error occured.",
407   - "MAIL_SENT": "Mail sent.",
408   - "MAIL_NOT_SENT": "Mail not sent.",
409   - "MAIL_SENT_SUCCESS_MESSAGE": "We have received your request. We will get back to you soon."
410   -})
411   -AIA.constant("UserTypeConstants", {
412   - "SUPER_ADMIN": "Super Admin",
413   - "GENERAL_ADMIN": "General Admin",
414   - "DISTRICT_ADMIN": "District Admin",
415   - "CLIENT_ADMIN": "Client Admin",
416   - "SINGLE_USER": "Single User",
417   - "CONCURRENT_USER": "Concurrent User",
418   - "RESELLER": "Reseller",
419   - "TEST_ACCOUNT": "Test Account",
420   - "SITE_USER": "Site User"
421   -})
422   -
423   -
424   -AIA.constant("UserModules", [
425   - {
426   - "name": "Dissectible Anatomy",
427   - "slug": "da-view-list"
428   - },
429   - {
430   - "name": "Atlas Anatomy",
431   - "slug": "tile-view-list"
432   - },
433   - {
434   - "name": "3D Anatomy",
435   - "slug": "3d-anatomy-list"
436   - },
437   - {
438   - "name": "Clinical Illustrations",
439   - "slug": "clinical-illustrations"
440   - },
441   - {
442   - "name": "Clinical Animations",
443   - "slug": "clinical-animations"
444   - },
445   - {
446   - "name": "Encyclopedia",
447   - "slug": "Link/encyclopedia"
448   - },
449   - {
450   - "name": "Curriculum Builder",
451   - "slug": "curriculum-builder"
452   - },
453   - {
454   - "name": "Anatomy Tests",
455   - "slug": "anatomy-test"
456   - },
457   - {
458   - "name": "IP 10",
459   - "slug": "Link/IP-10"
460   - },
461   - {
462   - "name": "Lab Exercises",
463   - "slug": "lab-exercises"
464   - },
465   - {
466   - "name": "In-Depth Reports",
467   - "slug": "Link/indepth-reports"
468   - },
469   - {
470   - "name": "Complementary and Alternative Medicine",
471   - "slug": "Link/complementary-and-alternate-medicine"
472   - },
473   - {
474   - "name": "A.D.A.M Images",
475   - "slug": "ADAM-images"
476   - },
477   - {
478   - "name": "Body Guide",
479   - "slug": "Link/bodyguide"
480   - },
481   - {
482   - "name": "Health Navigator",
483   - "slug": "Link/health-navigator"
484   - },
485   - {
486   - "name": "The Wellness Tools",
487   - "slug": "Link/wellness-tools"
488   - },
489   - {
490   - "name": "A.D.A.M OnDemand",
491   - "slug": "Link/aod"
492   - }
493   -]);
494   -
495   -
496   -AIA.constant("AIAConstants", {
497   - "NO_BODY_SYSTEM_AVAILABLE": "Selected body system is not available on this layer.",
498   - "COOKIES_MESSAGE": "You need to enable your browser's cookies to run this application.",
499   -})
500   -
501   -
502   -AIA.config(function ($routeProvider, pages, $locationProvider) {
503   -
504   - $locationProvider.html5Mode(true);
505   -
506   - for (var i = 0; i < pages.length; i++) {
507   - if (pages[i].pageSlug != null) {
508   - $routeProvider.
509   - when('/' + pages[i].pageSlug,
510   - {
511   - templateUrl: pages[i].pageUrl,
512   - controller: pages[i].pageController
513   - }).
514   - when('/Link/:modname',
515   - {
516   - templateUrl: 'app/views/Link/Link-view.html',
517   - controller: 'LinkController'
518   - })
519   - .otherwise({
520   - templateUrl: 'app/widget/MainView.html',
521   - controller: 'HomeController'
522   - })
523   -
524   - }
525   - }
  1 +'use strict';
  2 +
  3 +var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage']);
  4 +
  5 +
  6 +
  7 +AIA.constant('pages', [
  8 +
  9 + {
  10 + // id:0,
  11 + name: 'Index',
  12 + pageSlug: 'index',
  13 + pageUrl: 'index.html',
  14 + pageController: 'HomeController'
  15 + },
  16 + { // id:1,
  17 + name: 'Dissectible Anatomy Views List',
  18 + pageSlug: 'da-view-list',
  19 + pageUrl: 'app/views/da/da-body-view-list.html',
  20 + pageController: 'DAController'
  21 + },
  22 + { //id:2,
  23 + name: 'Dissectible Anatomy Body View',
  24 + pageSlug: 'da-body-view',
  25 + pageUrl: 'app/views/da/da-body-view.html',
  26 + pageController: 'DAController'
  27 + },
  28 + {
  29 + name: 'Tiny View List',
  30 + pageSlug: 'tile-view-list',
  31 + pageUrl: 'app/views/tile-view.html',
  32 + pageController: 'TileViewListController'
  33 +
  34 + },
  35 + { // id:3,
  36 + name: 'Clinical Illustrations',
  37 + pageSlug: 'clinical-illustrations',
  38 + pageUrl: 'app/views/ci/ci-view.html',
  39 + pageController: 'CIController'
  40 +
  41 + },
  42 + {
  43 + // id:4,
  44 + name: 'Clinical Animations',
  45 + pageSlug: 'clinical-animations',
  46 + pageUrl: 'app/views/ca/ca-view.html',
  47 + pageController: 'CAController'
  48 +
  49 + },
  50 + { // id:5,
  51 + name: '3D Anatomy',
  52 + pageSlug: '3d-anatomy-list',
  53 + pageUrl: 'app/views/3dA/3dA-view.html',
  54 + pageController: '3dAController'
  55 +
  56 + },
  57 + { //id:6,
  58 + name: 'Curriculum Builder',
  59 + pageSlug: 'curriculum-builder',
  60 + pageUrl: 'app/views/CBuild/CBuild-view.html',
  61 + pageController: 'CurrBuildController'
  62 +
  63 + },
  64 + { //id:7,
  65 + name: 'Anatomy Tests',
  66 + pageSlug: 'anatomy-test',
  67 + pageUrl: 'app/views/AnatTest/AnatTest-view.html',
  68 + pageController: 'AnatTestController'
  69 +
  70 + },
  71 + { //id:8,
  72 + name: 'Lab Exercises',
  73 + pageSlug: 'lab-exercises',
  74 + pageUrl: 'app/views/LabExerc/LabExerc-view.html',
  75 + pageController: 'LabExercController'
  76 +
  77 + },
  78 + { //id:9,
  79 + name: 'ADAM Images',
  80 + pageSlug: 'ADAM-images',
  81 + pageUrl: 'app/views/ADAMImg/ADAMImg-view.html',
  82 + pageController: 'ADAMImgController'
  83 +
  84 + },
  85 + { //id:10,
  86 + name: 'ADAM On Demand',
  87 + pageSlug: 'ADAM-on-demand',
  88 + pageUrl: 'app/views/AOD/AOD-view.html',
  89 + pageController: 'AODController'
  90 +
  91 + },
  92 + { //id:11,
  93 + name: 'Encyclopedia',
  94 + pageSlug: 'Link/encyclopedia',
  95 + pageUrl: 'app/views/Link/Link-view.html',
  96 + pageController: 'LinkController'
  97 +
  98 + },
  99 + { //id:12,
  100 + name: 'IP 10',
  101 + pageSlug: 'Link/IP-10',
  102 + pageUrl: 'app/views/Link/Link-view.html',
  103 + pageController: 'LinkController'
  104 +
  105 + },
  106 + {
  107 + //id:13,
  108 + name: 'In-Depth Reports',
  109 + pageSlug: 'Link/indepth-reports',
  110 + pageUrl: 'app/views/Link/Link-view.html',
  111 + pageController: 'LinkController'
  112 +
  113 + },
  114 + { //id:14,
  115 + name: 'Complementary and Alternative Medicine',
  116 + pageSlug: 'Link/complementary-and-alternate-medicine',
  117 + pageUrl: 'app/views/Link/Link-view.html',
  118 + pageController: 'LinkController'
  119 +
  120 + },
  121 + { //id:15,
  122 + name: 'Body Guide',
  123 + pageSlug: 'Link/bodyguide',
  124 + pageUrl: 'app/views/Link/Link-view.html',
  125 + pageController: 'LinkController'
  126 +
  127 + },
  128 + { //id:16,
  129 + name: 'Health Navigator',
  130 + pageSlug: 'Link/health-navigator',
  131 + pageUrl: 'app/views/Link/Link-view.html',
  132 + pageController: 'LinkController'
  133 +
  134 + },
  135 + { //id:17,
  136 + name: 'The Wellness Tools',
  137 + pageSlug: 'Link/wellness-tools',
  138 + pageUrl: 'app/views/Link/Link-view.html',
  139 + pageController: 'LinkController'
  140 +
  141 + },
  142 + {
  143 + name: 'A.D.A.M OnDemand',
  144 + pageSlug: 'Link/aod',
  145 + pageUrl: 'app/views/Link/Link-view.html',
  146 + pageController: 'LinkController'
  147 +
  148 + },
  149 + { //id:18,
  150 + name: 'home',
  151 + pageSlug: 'home',
  152 + pageUrl: 'app/widget/MainView.html',
  153 + pageController: 'HomeController'
  154 + },
  155 + {
  156 + name: 'Tiny View List view',
  157 + pageSlug: 'module-item-view',
  158 + pageUrl: 'app/views/module-item-view.html',
  159 + pageController: 'TileViewListController'
  160 +
  161 + },
  162 +
  163 + { // id:3,
  164 + name: 'Clinical Illustrations View',
  165 + pageSlug: 'clinical-illustrations-detail',
  166 + pageUrl: 'app/views/ci/clinical-illustrations-detail.html',
  167 + pageController: 'CIController'
  168 +
  169 + },
  170 + { // id:3,
  171 + name: 'Clinical Animations View',
  172 + pageSlug: 'clinical-animations-detail',
  173 + pageUrl: 'app/views/ca/clinical-animations-detail.html',
  174 + pageController: 'CAController'
  175 +
  176 + },
  177 + { // id:3,
  178 + name: 'Lab Exercises',
  179 + pageSlug: 'lab-exercises-detail',
  180 + pageUrl: 'app/views/LabExerc/lab-exercises-detail.html',
  181 + pageController: 'LabExercController'
  182 +
  183 + },
  184 + { // id:3,
  185 + name: '3D Anatomy',
  186 + pageSlug: '3d-anatomy-details',
  187 + pageUrl: 'app/views/3dA/3d-anatomy-details.html',
  188 + pageController: '3dAController'
  189 +
  190 + },
  191 +]);
  192 +
  193 +
  194 +AIA.constant('DA', [
  195 + {
  196 + ethnicity: 'W',
  197 + modesty: 'Y',
  198 + figLeafTermId: '5868',
  199 + SKIN_START_INTERNAL_LAYER: 100,
  200 + SKIN_END_INTERNAL_LAYER: 199,
  201 + SKIN_DEFAULT_INTERNAL_LAYER: 100,
  202 + ZOOM_TERM_DATA: 50,
  203 + SKIN_TERM_ID: 1
  204 + },
  205 +]);
  206 +
  207 +// These constants are same as in Database table ResourceModule, we have to maintain the module order and module id mention in the same order
  208 +AIA.constant('Modules', [
  209 + {
  210 + Id: 1,
  211 + Name: 'Dissectible Anatomy',
  212 + },
  213 + {
  214 + Id: 2,
  215 + Name: 'Atlas Anatomy',
  216 + },
  217 + {
  218 + Id: 3,
  219 + Name: '3D Anatomy',
  220 + },
  221 + {
  222 + Id: 4,
  223 + Name: 'Clinical Illustrations',
  224 + },
  225 + {
  226 + Id: 5,
  227 + Name: 'Clinical Animations',
  228 + },
  229 + {
  230 + Id: 6,
  231 + Name: 'Encyclopedia',
  232 +
  233 + },
  234 + {
  235 + Id: 7,
  236 + Name: 'Curriculum Builder',
  237 + },
  238 + {
  239 + Id: 8,
  240 + Name: 'Anatomy Test',
  241 + },
  242 + {
  243 + Id: 9,
  244 + Name: 'IP 10',
  245 + },
  246 + {
  247 + Id: 10,
  248 + Name: 'Lab Exercises',
  249 + },
  250 + {
  251 + Id: 11,
  252 + Name: 'In-Depth Reports',
  253 + },
  254 + {
  255 + Id: 12,
  256 + Name: 'CAM', //Complementary and Alternative Medicine'
  257 + },
  258 + {
  259 + Id: 13,
  260 + Name: 'A.D.A.M. Images',
  261 + },
  262 + {
  263 + Id: 14,
  264 + Name: 'Body Guide',
  265 + },
  266 + {
  267 + Id: 15,
  268 + Name: 'Symptom Navigator', //Health Navigator',
  269 + },
  270 + {
  271 + Id: 16,
  272 + Name: 'The Wellness Tools',
  273 + },
  274 + {
  275 + Id: 1017, // Updated from 17 to 1017 to match with database Id
  276 + Name: 'A.D.A.M. OnDemand',
  277 + },
  278 +
  279 +
  280 +]);
  281 +AIA.constant('BodyViewws', [
  282 + {
  283 + Id: 1,
  284 + Name: 'Male Anterior',
  285 + },
  286 +]);
  287 +
  288 +AIA.constant('BodyRegions', ['Abdomen', 'Body Wall and Back', 'Head and Neck', 'Lower Limb', 'Pelvis and Perineum', 'Thorax', 'Upper Limb']);
  289 +
  290 +
  291 +
  292 +AIA.constant('BodySystems', ['Cardiovascular', 'Digestive', 'Endocrine', 'Immune', 'Integumentary', 'Lymphatic', 'Muscular', 'Nervous', 'Reproductive', 'Respiratory', 'Skeletal', 'Urinary']);
  293 +
  294 +AIA.constant('ViewOrientations', ['Anterior', 'Posterior', 'Lateral', 'Medial', 'Superior', 'Inferior', 'Non-standard']);
  295 +
  296 +
  297 +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']);
  298 +
  299 +
  300 +
  301 +AIA.constant('ImageTypes', ['Illustration', 'Cadaver Photograph', 'Radiograph']);
  302 +
  303 +//login constant.
  304 +AIA.constant("LoginConstants", {
  305 + "USER_NOT_FOUND": "User not found.",
  306 + "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
  307 + "MAIL_NOT_SENT": "Mail not sent.",
  308 + "MAIL_SENT": "Mail sent.",
  309 + "SQL_CONNECTION_ERROR": "We are unable to connect with database. Please contact customer support",
  310 + "EXCEPTION_OCCURED": "We are facing some issue. Please try to login after sometime.",
  311 + "E_NO_ERROR": "0",
  312 + "E_USER_NOT_EXIST": "1",
  313 + "E_PASSWORD_NOT_MATCH": "2",
  314 + "E_USER_ID_BLOCKED_24_HRS": "3",
  315 + "E_USER_NOT_ACTIVE": "4",
  316 + "E_USER_ID_WILL_BLOCKED": "5",
  317 + "E_EMAIL_ID_NOT_EXIT": "6",
  318 + "E_LICENCE_IS_INACTIVE": "7",
  319 + "E_USER_NOT_MAP_TO_LICENCE_EDITION": "8",
  320 + "E_NO_ROW_FOUND_LICENCE_TO_EDITION_TABLE": "9",
  321 + "E_NO_ROW_FOUND_LICENCE_TABLE": "10",
  322 + "E_SECURITY_QUEST_NOT_MATCH": "11",
  323 + "E_SEQURITY_ANSWER_NOT_MATCH": "12",
  324 + "E_FORGOT_USER_ID_EMAIL_ID_NOT_EXIT": "13",
  325 + "E_TOTAL_NUMBER_LOGIN_EXCEED": "14",
  326 + "E_FORGOT_PASSWORD_EMAIL_ID_NOT_EXIST": "15",
  327 + "E_TEST_SETUP_ACCOUNT_USER_NAME_EXIST": "16",
  328 + "E_TEST_SETUP_ACCOUNT_EMAILID_EXIST": "17",
  329 + "E_SP_ERROR": "18",
  330 + "E_ACCOUNT_NUMBER_NOT_EXIST": "19",
  331 + "E_ACCOUNT_NUMBER_ALREADY_EXIST": "20",
  332 + "E_TEST_ACCOUNT_CREATED_MAIL_COULD_NOT_SENT": "21",
  333 + "E_MAIL_COULD_NOT_SENT": "22",
  334 + "E_RESELLER_ACCOUNT_CREATED_MAIL_COULD_NOT_SENT": "23",
  335 + "E_LICENSE_TERM_CONDITION": "24",
  336 + "E_EDITION_NOT_LINKED_WITH_SITE": "25",
  337 + "E_LOGIN_SESSION_EXPIRE": "26",
  338 + "E_DISCOUNT_CODE_NOT_EXIST": "27",
  339 + "E_DISCOUNT_CODE_ALREADY_EXIST": "28",
  340 +
  341 + "E_SITE_IP_NOT_NULL": "29",
  342 + "E_EDITION_ID_NOT_NULL": "30",
  343 + "E_MASTER_SITEIP_NOT_EXIST": "31",
  344 + "EDITION_ID_NOT_EXIST": "32",
  345 + "E_ERROR_LOG": "33",
  346 + "E_MASTER_SITE_ALREADY_EXIST": "34",
  347 + "E_ACCOUNT_NUMBER_NOT_NULL": "35",
  348 + "E_SITE_IP_ALREADY_EXIST": "36",
  349 +
  350 +
  351 + "E_LICENCE_IS_EXPIRED": "37",
  352 + "E_SINGLEACCOUNT_IS_BEING_USED": "38",
  353 +
  354 +
  355 + "E_DATA_BASE_CONNECTION": "4060",
  356 +
  357 +
  358 + //login failure error constant
  359 + "ACCOUNT_NUMBER_NOT_NULL": "4",
  360 + "EDITION_ID_NOT_NULL": "5",
  361 + "ACCOUNT_NUMBER_NOT_EXIST": "1",
  362 + "EDITION_NOT_EXIST": "3",
  363 + "MASTER_SITEIP_NOT_EXIST": "2",
  364 + "LICENSE_INACTIVE": "6"
  365 +});
  366 +
  367 +AIA.constant("LoginMessageConstants", {
  368 + "USER_OR_PASSWORD_INCORRECT": "UserId or Password is incorrect.",
  369 + "RESET_PASSWORD": "Please check you email and reset your password.",
  370 + "USERID_SENT_IN_EMAIL": "We have sent you userId in email.",
  371 + "ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
  372 + "MAIL_NOT_SENT": "We are facing some issue in sending email. Please try after sometime.",
  373 + "MAIL_SENT":"Mail sent.",
  374 + "INCORRECT_EMAIL_ID": "Invalid e-mail ID. If you do not know your correct e-mail ID please contact A.D.A.M. technical support or your institution's site administrator.",
  375 + "BLANK_EMAIL_ID": "Please enter your email id.",
  376 + "PASSWORD_RESET_MESSAGE": "Your password has been reset.",
  377 + "PASSWORD_RESET_FAILURE": "We are unable to reset your password. Please try again after sometime.",
  378 +
  379 + "NEW_AND_OLD_PASSWORD_DONOT_MATCH": "Your new password and confirm password not matched!",
  380 + "USER_CREDENTIALS_MISSING": "Please Enter your credentials.",
  381 + "USER_NOT_FOUND": "User not found.",
  382 + "NEW_PASSWORD_FIELD_IS_EMPTY": "Please enter new password to reset your password.",
  383 + "PASSWORD_UPDATE_SUCCESS": "Password updated successfully",
  384 + "PASSWORD_UPDATE_FAILED": "Password update failed",
  385 + "SUBSCRIPTION_EXPIRATION_MESSAGE": "Your license is expired since ",
  386 + "LICENSE_INACTIVE_MESSAGE": "Your license is inactive.",
  387 + "INVALID_USER": "Invalid UserID",
  388 + "USER_INACTIVE_MESSAGE": "User ID is inactive.",
  389 + "INVALID_PASSWORD": "Invalid Password. UserID and password will be disabled if your password is entered incorrectly for five consecutive attempts. If you have forgotten your password, please click on the forgot password link.",
  390 + "USER_BLOCKED": 'Your User ID has been blocked for 24 hours due to multiple wrong attempts. To unblock please click on "Forgot Password" link on your Login window and select "unblock" option.',
  391 + "UNBLOCK_SELECTED": "unblock",
  392 + "FORGOT_PASSWORD_SELECTED": "forgotpwd",
  393 + "USER_UNBLOCK_LINK_IN_EMAIL": "Please check you email and unblock your account.",
  394 + "USER_UNBLOCK_SUCCESS": "User unblocked",
  395 + "USER_UNBLOCK_SUCCESS_MESSAGE": "Your account has been unblocked sucessfully.",
  396 + "USER_UNBLOCK_FAILED": "Unblock operation failed",
  397 + "USER_ALREADY_UNBLOCKED": "User already unblocked.",
  398 + "LICENSE_TERM_CONDITION_UPDATE_SUCCESS": "License Term Accepted field updated successfully.",
  399 + "LICENSE_TERM_CONDITION_UPDATE_FAILED": "License Term Accepted field update failed.",
  400 + "UNABLE_TO_UNBLOCK": "We are unable to unblock. Please try after sometime.",
  401 + //"ERROR_IN_FECTHING_DETAILS": "Error in fecthing details.",
  402 + //"MAIL_NOT_SENT": "Mail not sent."
  403 +
  404 +})
  405 +AIA.constant("AdminConstants", {
  406 + "ERROR_IN_SENDING_MAIL": "Some internal error occured.",
  407 + "MAIL_SENT": "Mail sent.",
  408 + "MAIL_NOT_SENT": "Mail not sent.",
  409 + "MAIL_SENT_SUCCESS_MESSAGE": "We have received your request. We will get back to you soon."
  410 +})
  411 +AIA.constant("UserTypeConstants", {
  412 + "SUPER_ADMIN": "Super Admin",
  413 + "GENERAL_ADMIN": "General Admin",
  414 + "DISTRICT_ADMIN": "District Admin",
  415 + "CLIENT_ADMIN": "Client Admin",
  416 + "SINGLE_USER": "Single User",
  417 + "CONCURRENT_USER": "Concurrent User",
  418 + "RESELLER": "Reseller",
  419 + "TEST_ACCOUNT": "Test Account",
  420 + "SITE_USER": "Site User"
  421 +})
  422 +
  423 +
  424 +AIA.constant("UserModules", [
  425 + {
  426 + "name": "Dissectible Anatomy",
  427 + "slug": "da-view-list"
  428 + },
  429 + {
  430 + "name": "Atlas Anatomy",
  431 + "slug": "tile-view-list"
  432 + },
  433 + {
  434 + "name": "3D Anatomy",
  435 + "slug": "3d-anatomy-list"
  436 + },
  437 + {
  438 + "name": "Clinical Illustrations",
  439 + "slug": "clinical-illustrations"
  440 + },
  441 + {
  442 + "name": "Clinical Animations",
  443 + "slug": "clinical-animations"
  444 + },
  445 + {
  446 + "name": "Encyclopedia",
  447 + "slug": "Link/encyclopedia"
  448 + },
  449 + {
  450 + "name": "Curriculum Builder",
  451 + "slug": "curriculum-builder"
  452 + },
  453 + {
  454 + "name": "Anatomy Tests",
  455 + "slug": "anatomy-test"
  456 + },
  457 + {
  458 + "name": "IP 10",
  459 + "slug": "Link/IP-10"
  460 + },
  461 + {
  462 + "name": "Lab Exercises",
  463 + "slug": "lab-exercises"
  464 + },
  465 + {
  466 + "name": "In-Depth Reports",
  467 + "slug": "Link/indepth-reports"
  468 + },
  469 + {
  470 + "name": "Complementary and Alternative Medicine",
  471 + "slug": "Link/complementary-and-alternate-medicine"
  472 + },
  473 + {
  474 + "name": "A.D.A.M Images",
  475 + "slug": "ADAM-images"
  476 + },
  477 + {
  478 + "name": "Body Guide",
  479 + "slug": "Link/bodyguide"
  480 + },
  481 + {
  482 + "name": "Health Navigator",
  483 + "slug": "Link/health-navigator"
  484 + },
  485 + {
  486 + "name": "The Wellness Tools",
  487 + "slug": "Link/wellness-tools"
  488 + },
  489 + {
  490 + "name": "A.D.A.M OnDemand",
  491 + "slug": "Link/aod"
  492 + }
  493 +]);
  494 +
  495 +
  496 +AIA.constant("AIAConstants", {
  497 + "NO_BODY_SYSTEM_AVAILABLE": "Selected body system is not available on this layer.",
  498 + "COOKIES_MESSAGE": "You need to enable your browser's cookies to run this application.",
  499 +})
  500 +
  501 +
  502 +AIA.config(function ($routeProvider, pages, $locationProvider) {
  503 +
  504 + $locationProvider.html5Mode(true);
  505 +
  506 + for (var i = 0; i < pages.length; i++) {
  507 + if (pages[i].pageSlug != null) {
  508 + $routeProvider.
  509 + when('/' + pages[i].pageSlug,
  510 + {
  511 + templateUrl: pages[i].pageUrl,
  512 + controller: pages[i].pageController
  513 + }).
  514 + when('/Link/:modname',
  515 + {
  516 + templateUrl: 'app/views/Link/Link-view.html',
  517 + controller: 'LinkController'
  518 + })
  519 + .otherwise({
  520 + templateUrl: 'app/widget/MainView.html',
  521 + controller: 'HomeController'
  522 + })
  523 +
  524 + }
  525 + }
526 526 });
527 527 \ No newline at end of file
... ...