"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.onSortImages = exports.deleteFile = exports.saveEditedFile = exports.getPdf = exports.savePdf = exports.onUploadAttachment = exports.downloadImage = exports.saveImages = exports.convertDocument = exports.splitPdf = void 0;

var _sendRequestWithFile = require("./sendRequestWithFile");

var _sendRequest = require("./sendRequest");

const BASE_PATH = "/guest";

const splitPdf = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/split-pdf`, {
  body: data
});

exports.splitPdf = splitPdf;

const convertDocument = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/convert-document`, {
  body: data
});

exports.convertDocument = convertDocument;

const saveImages = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/save-images`, {
  body: data
});

exports.saveImages = saveImages;

const downloadImage = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/download-attachment`, {
  body: data
});

exports.downloadImage = downloadImage;

const onUploadAttachment = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/upload-attachment`, {
  body: data
});

exports.onUploadAttachment = onUploadAttachment;

const savePdf = data => (0, _sendRequestWithFile.sendRequestWithFile)(`${BASE_PATH}/save-pdf`, {
  body: data
});

exports.savePdf = savePdf;

const getPdf = data => (0, _sendRequest.sendRequest)(`${BASE_PATH}/getPdf`, {
  body: JSON.stringify(data)
});

exports.getPdf = getPdf;

const saveEditedFile = data => (0, _sendRequest.sendRequest)(`${BASE_PATH}/save-editedImage`, {
  body: JSON.stringify(data)
});

exports.saveEditedFile = saveEditedFile;

const deleteFile = data => (0, _sendRequest.sendRequest)(`${BASE_PATH}/deleteFile`, {
  body: JSON.stringify(data)
});

exports.deleteFile = deleteFile;

const onSortImages = data => (0, _sendRequest.sendRequest)(`${BASE_PATH}/onsortend-image`, {
  body: JSON.stringify(data)
});

exports.onSortImages = onSortImages;