JavaScript Module / CommonJS
An Add-In is a JavaScript file, that provides a JavaScript/CommonJS module with the following signature:
exports.main = function (config, context) {
// add-in code goes here
// the config parameter represents the configuration
// the context parameter provides additional information
// about the device/network in which this script is executed
};