In-house leaders might learn from the story of an ex-Google legal department employee who detailed how she was treated after the tech giant’s human resources department discovered that she was having an extramarital affair with her boss. 

Jennifer Blakely, a former senior contracts manager for Google, wrote in a piece that Medium published Wednesday that she was forced to leave the legal department for a position in sales. Out of her element, she struggled and “became depressed at work” before finally quitting.