Finding globally available things

I was in the middle of restoring my PC and thought "I wonder if I can
view all the globally accessible things?"

Turns out, you can.

Object.keys(this).forEach(function(thing){
try {
var type_of_thing = eval('typeof ' + thing);
if(type_of_thing === 'object'){
for(var prop in thing){
gs.info('-: ' + prop);
}
}
gs.info(thing + ': ' + eval('typeof ' + thing));
} catch(e) {
gs.info('error',JSON.stringify(e));
}
});

In an out of box instance I get a big output. Alot of these are old
"Global Business Rules" but some are weird.

Globally available

Available in Script Includes

If you define these in a script include it may cause an issue.