Using code from here:
- https://github.com/i-Sight/config_nyhhc_v5/blob/develop/config/elasticsearch-entities/sys_case.js
- https://github.com/i-Sight/config_nyhhc_v5/blob/develop/lib/shared/shared-utils.js
The basic idea is that I'm defining globals but I'm at the same time creating a new context for each file avoiding any global namespace pollution.