text: var cloudinary = require('cloudinary');
  const dotenv = require('dotenv');
  dotenv.config();
  
  cloudinary.config({
      "cloud_name": process.env.CLOUDINARY_CLOUD_NAME,
      "api_key": process.env.CLOUDINARY_API_KEY,
      "api_secret": process.env.CLOUDINARY_API_SECRET
  });
  
  exports.uploads = (file) => {
      return new Promise(resolve => {
          cloudinary.uploader.upload(file, (result) => {
              console.log("Image has been uploaded to Cloudinary service.");
              resolve({ url: result.url, id: result.public_id });
          }, {
              resource_type: "auto"
          });
      });
  }