/**
 * Ce fichier est conservé pour la rétrocompatibilité mais redirige vers le nouveau service de stockage.
 * Il sera progressivement supprimé lorsque toutes les références auront été mises à jour.
 */

const StorageService = require('../services/storageService');

// Structure de redirection pour la compatibilité
const storage_manager = {
  project: {
    create_project_directory: StorageService.project.createProjectDirectory,
    delete_project_directory: StorageService.project.deleteProjectDirectory
  },
  measurement: {
    get_measurement_image: StorageService.measurement.getMeasurementImage,
    upload_measurement_image: StorageService.measurement.uploadMeasurementImage
  },
  video: {
    get_video: StorageService.video.getVideo,
    delete_video: StorageService.video.deleteVideo
  },
  scan_images: StorageService.scanImages,
  create_directory: StorageService.createDirectory,
  delete_directory: StorageService.deleteDirectory,
  save_file: StorageService.saveFile,
  get_file: StorageService.getFile,
  delete_file: StorageService.deleteFile
};

module.exports = storage_manager;