var GatewayProcessManager = require(__dirname+'/../process_manager.js');

/**
 * @function startGateway
 * @requires GatewayProcessManager
 * @description Starts gateway processes.
 * @param opts
 */

function startGateway(opts, fn) {
  processManager = new GatewayProcessManager();
  processManager.start(opts, function(err, processes){
    fn(null, processes);
  });

}

module.exports = startGateway;


var GatewayProcessManager = require(__dirname+'/../process_manager.js');

/**
 * @function startGateway
 * @requires GatewayProcessManager
 * @description Starts gateway processes.
 * @param opts
 */

function startGateway(opts) {
  processManager = new GatewayProcessManager();
  processManager.start(opts);
}

module.exports = startGateway;


Revert "[CHORE] refactor startGateway function to take callback."
Revert "[CHORE] refactor startGateway function to take callback."

This reverts commit 6cf2e71a48801b7b6edee80d28806a48bc83aa17.
