Fired CFO’s texts revealed a 10-year affair that led to higher pay and promotions, company says