Getting Developer Portal Settings

You can get an immutable copy of the current settings using the portal.getSettings() method:
var settings = portal.getSettings();