// crowi-fileupload-none

module.exports = function(crowi) {
  const debug = require('debug')('growi:service:fileUploaderNone');
  const Uploader = require('./uploader');
  const lib = new Uploader(crowi);

  lib.getIsUploadable = function() {
    return false;
  };

  lib.deleteFile = function(filePath) {
    debug(`File deletion: ${filePath}`);
    throw new Error('not implemented');
  };

  lib.deleteFiles = function(filePath) {
    debug(`File deletion: ${filePath}`);
    throw new Error('not implemented');
  };

  lib.uploadFile = function(filePath, contentType, fileStream, options) {
    debug(`File uploading: ${filePath}`);
    throw new Error('not implemented');
  };

  lib.generateUrl = function(filePath) {
    // eslint-disable-next-line max-len
    return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAActpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSW1hZ2VSZWFkeTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KKS7NPQAAB41JREFUeAHtm21PVTsQhQsiviCoKK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