code: function deploy(req, res, next) {
    var options = req.connectionOptions;
    var form = req.body;
    req.user = req.user || {};
  
    if (req.appformsResultPayload && _.isObject(req.appformsResultPayload.data)) {
      form = req.appformsResultPayload.data;
    }
  
    //Expect A Data Source Data Set To Be Available If Deploying A Form.
    var params = {
      userEmail: req.user.email || req.body.updatedBy,
      expectDataSourceCache: true
    };
  
    options = _.extend(options, params);
  
    logger.debug("Middleware: Deploy form: ", {options: options});
  
    forms.updateOrCreateForm(options, form, formsResultHandlers(constants.resultTypes.forms, req, next));
  }
docs: Deploying A Form. Creates A Form If It Already Exists
  @param req
  @param res
  @param next