checkMigrationData() {
      this.loaders.isWaitingForMigrationCheck = true;
      this.checkMigrationErrors = [];
      this.shouldDisplayCheckMigrationsErrors = false;

      this.WucEmails.checkMigrate(
        this.email.domain,
        this.email.accountName,
        this.migrate.destinationService.name,
        this.migrate.destinationEmail,
      )
        .then(() => {
          this.isMigrationDataValid = true;
        })
        .catch((err) => {
          this.isMigrationDataValid = false;
          if (_.isArray(err)) {
            this.displayCheckMigrationErrors(err);
          } else {
            this.handleError(err);
          }
        })
        .finally(() => {
          this.loaders.isWaitingForMigrationCheck = false;
        });
    }
// Check if it's possible to migrate
Check if it's possible to migrate
Check if it ' s possible to migrate
checkMigrationData() {
      this.loaders.isWaitingForMigrationCheck = true;
      this.checkMigrationErrors = [];
      this.shouldDisplayCheckMigrationsErrors = false;
      this.WucEmails.checkMigrate(
        this.email.domain,
        this.email.accountName,
        this.migrate.destinationService.name,
        this.migrate.destinationEmail,
      )
        .then(() => {
          this.isMigrationDataValid = true;
        })
        .catch((err) => {
          this.isMigrationDataValid = false;
          if (_.isArray(err)) {
            this.displayCheckMigrationErrors(err);
          } else {
            this.handleError(err);
          }
        })
        .finally(() => {
          this.loaders.isWaitingForMigrationCheck = false;
        });
    }
checkMigrationData ( ) { this . loaders . isWaitingForMigrationCheck = true ; this . checkMigrationErrors = [ ] ; this . shouldDisplayCheckMigrationsErrors = false ; this . WucEmails . checkMigrate ( this . email . domain , this . email . accountName , this . migrate . destinationService . name , this . migrate . destinationEmail , ) . then ( ( ) => { this . isMigrationDataValid = true ; } ) . catch ( ( err ) => { this . isMigrationDataValid = false ; if ( _ . isArray ( err ) ) { this . displayCheckMigrationErrors ( err ) ; } else { this . handleError ( err ) ; } } ) . finally ( ( ) => { this . loaders . isWaitingForMigrationCheck = false ; } ) ; }
Check if it's possible to migrate
Check if it ' s possible to migrate