text: /* eslint-disable quotes */
  /* eslint-disable quote-props */
  /* eslint-disable import/prefer-default-export */
  import dotenv from 'dotenv';
  import admin from 'firebase-admin';
  
  dotenv.config();
  
  admin.initializeApp({
    credential: admin.credential.cert({
      "type": "service_account",
      "private_key_id": process.env.FIREBASE_PRIVATE_KEY_ID,
      "private_key": process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/gm, '\n'),
      "client_email": process.env.CLIENT_EMAIL,
      "project_id": process.env.PROJECT_ID,
      "client_id": process.env.CLIENT_ID,
      "auth_uri": process.env.AUTH_URI,
      "token_uri": process.env.TOKEN_URI,
      "auth_provider_x509_cert_url": process.env.AUTH_PROVIDER_CERT_URL,
      "client_x509_cert_url": process.env.CLIENT_CERT_URL,
    }),
    databaseURL: process.env.FIREBASE_DB_URL,
  });
  
  const messaging = admin.messaging();
  
  export default { messaging };
  