After seven rocky years, the company’s assets will be sold to Dazzle, a new AI firm that Mayer founded.