lib/middleware/forms.js
function clone(req, res, next) {
  var cloneFormParams = {
    _id: req.params.id,
    name: req.body.name,
    userEmail: req.body.updatedBy
  };

  logger.debug("Middleware: clone form: ", {params: cloneFormParams});

  forms.cloneForm(_.extend(req.connectionOptions, cloneFormParams), formsResultHandlers(constants.resultTypes.forms, req, next));
}
function clone(req, res, next) {
  var cloneFormParams = {
    _id: req.params.id,
    name: req.body.name,
    userEmail: req.body.updatedBy
  };

  logger.debug("Middleware: clone form: ", {params: cloneFormParams});

  forms.cloneForm(_.extend(req.connectionOptions, cloneFormParams), formsResultHandlers(constants.resultTypes.forms, req, next));
}
function clone ( req , res , next ) { var cloneFormParams = { _id : req . params . id , name : req . body . name , userEmail : req . body . updatedBy } ; logger . debug ( "Middleware: clone form: " , { params : cloneFormParams } ) ; forms . cloneForm ( _ . extend ( req . connectionOptions , cloneFormParams ) , formsResultHandlers ( constants . resultTypes . forms , req , next ) ) ; }
Clone An Existing Form
@param req
@param res
@param next
Clone An Existing Form