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;


@@ -224,12 +224,8 @@
 opts
-, fn
 ) %7B%0A
@@ -303,67 +303,10 @@
 opts
-, function(err, processes)%7B%0A    fn(null, processes);%0A  %7D);%0A
+);
 %0A%7D%0A%0A

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