utilities/handler-helper.js
function _deleteMany(model, payload, Log) {
  let request = { payload: payload }
  return _deleteManyHandler(model, request, Log)
}
function _deleteMany(model, payload, Log) {
  let request = { payload: payload }
  return _deleteManyHandler(model, request, Log)
}
function _deleteMany ( model , payload , Log ) { let request = { payload : payload } return _deleteManyHandler ( model , request , Log ) }
DeleteMany function exposed as a mongoose wrapper.
@param model: A mongoose model.
@param payload: Either an array of ids or an array of objects containing an id and a "hardDelete" flag.
@param Log: A logging object.
@returns {object} A promise returning true if the delete succeeds.
@private
DeleteMany function exposed as a mongoose wrapper .