text: const ipcMessages = require('./ipcMessages');
  
  class SetupHandler {
      constructor(ipcMain) {
          this._ipcMain = ipcMain;
          this.registerEvents();
      }
  
      registerEvents() {
          this._ipcMain.on(ipcMessages.CHECK_SETUP_STATUS, this.handleCheckSetupStatus);
      }
  
      handleCheckSetupStatus(event, arg) {
        let setup = {
          complete: false
        };
          if (process.env.AWS_ACCESS_KEY_ID && process.env.AWS_SECRET_ACCESS_KEY) {
              setup.complete = true,
              setup.awsAccessKeyId = process.env.AWS_ACCESS_KEY_ID,
              setup.awsSecretAccessKey = process.env.AWS_SECRET_ACCESS_KEY
          }
          event.sender.send(ipcMessages.SETUP_STATUS, setup);
      }
  }
  
  module.exports = SetupHandler;
  