This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFacilities.js
133 lines (131 loc) · 5.69 KB
/
Facilities.js
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
const facilities = [
{
id: 1,
default: true, // if set to true, the site generator script creates an index.html file from this config
generate_site: true, // if set to true, the site generator creates an id.flow_id.html file from this config
name: 'Covid-19 Travel Advisory App',
image: 'https://presidentialinnovationfellows.gov/assets/logo-pif-light-b2933d8cf4d02279f2dad5d4e7e5b7e9bbc77c90daf0d058bcea71478a01071f.png',
header_color: '#2d2e2f',
header_text_color: '#ffffff',
main_message: 'The advice provided in this app is for informational purpose only.<br><small>Data in this app was last modified on: July 31, 2020. <br>We do not store or share your data.</small>',
end_message: "<small><a style='color: cyan;' href='https://www.nytimes.com/2020/07/10/travel/state-travel-restrictions.html'>Reference - Thinking of Traveling in the U.S.?</a></small>",
created_by: 'System',
created_on: '08/1/2020',
effective_from: '07/31/2020',
effective_till: '08/31/2020',
flow_enabled: true,
address: 'Any',
gps_coord: "",
sms_number: "",
flow_id: 1
},
{
id: 2,
name: 'VA Facility (Not Active Screening)',
image: 'https://prod-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/header-logo.png',
header_color: '#112e51',
header_text_color: '#ffffff',
created_by: 'Mrs Smith',
created_on: '05/20/2020',
effective_from: '05/25/2020',
effective_till: '05/25/2020',
flow_enabled: true,
address: 'Any',
gps_coord: "",
sms_number: "",
flow_id: 4
},
{
id: 3,
name: 'VA Facility (Complex Flow)',
image: 'https://prod-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/header-logo.png',
header_color: '#112e51',
header_text_color: '#ffffff',
created_by: 'Mrs Smith',
created_on: '05/20/2020',
effective_from: '05/25/2020',
effective_till: '05/25/2021',
flow_enabled: true,
address: 'Any',
gps_coord: "",
sms_number: "",
flow_id: 2
},
{
id: 4,
name: 'SSA Covid-19 Screening Tool',
image: 'https://www.ssa.gov/framework/images/logo.svg',
header_color: '#112e51',
header_text_color: '#ffffff',
created_by: 'Mrs Smith',
created_on: '05/20/2020',
effective_from: '05/25/2020',
effective_till: '05/25/2021',
flow_enabled: true,
address: 'Any',
gps_coord: "",
sms_number: "",
flow_id: 2
},
{
id: 5,
name: 'CDC Facility Entrance Protocol',
image: '/assets/img/cdc.png',
header_color: '#ffffff',
header_text_color: '#000000',
created_by: 'Cheryl Prigodich',
created_on: '06/17/2020',
effective_from: '06/17/2020',
effective_till: '06/17/2031',
flow_enabled: true,
address: 'Any',
gps_coord: "",
weekday_background_color_array: ['#ffffff','#ead9d9','#e1ead9','#ead9e7','#deead9','#d9e0ea','#ead9d9'],
weekday_text_color_array: ['#080808','#080808','#080808','#080808','#080808','#080808','#080808 '],
weekday_card_bg_color_array: ['#00ff00','#0000ff','#ffeb3b','#9c27b0','#00bcd4','#8bc34a','#795548'],
weekday_card_text_color_array: ['#ffffff','#ffffff','#080808','#ffffff','#000000','#000000','#ffffff '],
sms_number: "",
flow_id: 5
},
{
id: 6, // each facility has its unique ID
name: 'VA Facility Entrance Protocol For VACO',
generate_site: false, // if set to true, the site generator creates an id.flow_id.html file from this config
image: 'https://prod-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/header-logo.png',
header_color: '#112e51',
header_text_color: '#ffffff', //TODO
created_by: 'Joseph Nassar', // For record
created_on: '06/23/2020', // For record
effective_from: '06/20/2020', // Work after this date
effective_till: '06/19/2021', // Work before this date
flow_enabled: true, // overall control
address: 'Any', // TODO
gps_coord: "", // TODO
sms_number: "", // TODO
flow_id: 6 // ID of the FlowChart
// to use for this facility
},
{
id: 7, // each facility has its unique ID
name: 'VA Non-Medical Facility Entrance Protocol',
default: false, // if set to true, the site generator script creates an index.html file from this config
generate_site: true, // if set to true, the site generator creates an id.flow_id.html file from this config
image: 'https://prod-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/header-logo.png',
header_color: '#112e51',
header_text_color: '#ffffff',
created_by: 'Bradly Armstrong', // For record
created_on: '06/25/2020', // For record
effective_from: '07/1/2020', // Work after this date
effective_till: '06/30/2022', // Work before this date
flow_enabled: true, // overall control
address: 'Any', // TODO
gps_coord: "", // TODO
sms_number: "", // TODO
flow_id: 7 // ID of the FlowChart
// to use for this facility
},
];
function is_valid_facility_id(id) {
return(facilities.some(facility => facility.id == id));
}
module.exports = facilities;