AIA.js
11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
'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: 'clinical-illustrations',
pageUrl: 'app/views/ci/ci-view.html',
pageController: 'CIController'
},
{
// id:4,
name: 'Clinical Animations',
pageSlug: 'clinical-animations',
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: 'curriculum-builder',
pageUrl: 'app/views/CBuild/CBuild-view.html',
pageController: 'CurrBuildController'
},
{ //id:7,
name: 'Anatomy Tests',
pageSlug: 'anatomy-test',
pageUrl: 'app/views/AnatTest/AnatTest-view.html',
pageController: 'AnatTestController'
},
{ //id:8,
name: 'Lab Exercises',
pageSlug: 'lab-exercises',
pageUrl: 'app/views/LabExerc/LabExerc-view.html',
pageController: 'LabExercController'
},
{ //id:9,
name: 'ADAM Images',
pageSlug: 'ADAM-images',
pageUrl: 'app/views/ADAMImg/ADAMImg-view.html',
pageController: 'ADAMImgController'
},
{ //id:10,
name: 'ADAM On Demand',
pageSlug: 'ADAM-on-demand',
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'
},
{
name: 'A.D.A.M OnDemand',
pageSlug: 'Link/aod',
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'
})
}
}
});