const q = require("q");
const findService = require('./FindService');

module.exports = {

  fetchFileReferenceDocument: (fileUploaderField, fileNo, userId, options) => {
    options = options ? options : {};
    const query = DBProvider.fileUploadService.fetchFileReferenceDocumentQuery(fileUploaderField, fileNo, options);
    return findService.findAll(query, userId, null, null, options);

  }
};