Chilean casino and hotel operator Enjoy said Monday that it has emerged from bankruptcy protection after restructuring its debts, selling several assets and merging with a rival, sparking an upgrade of its debt.

The Santiago-based company said it has requested a formal declaration that it is no longer in bankruptcy protection, according to a securities filing.

The move comes after nearly two years of financial struggles for the company. Enjoy, one of the biggest casino operators in Chile, filed for bankruptcy protection in April 2020 after lockdowns for the COVID-19 pandemic slashed revenue at its operations in Chile, Argentina and Uruguay. The company went on in October that year to swap $211 million worth of 10.5% international bonds due in 2022 for new ones maturing in 2027, and then last year sold its 40% stake in the Colchagua Casino in the city of Santa Cruz, Chile, earning it CLP720 million (about $1 million at the time) after taxes.

This year, Enjoy also sold its majority stake in a casino operator in Mendoza, Argentina, for ARS450 million (now $4.1 million) and reached an agreement to merge with Chilean rival Dream, a deal that it has said will create a financially stronger enterprise to expand and improve services in Latin America under the name Enjoy. The merger is expected to close before the end of this year.

Enjoy’s efforts have earned it a ratings upgrade by Fitch Ratings. On Monday, Fitch said it upgraded Enjoy’s long-term foreign currency issuer default rating to CCC+ from CCC after it reduced its debt by CLP240 billion over the past year. At the same time, the lifting of pandemic restrictions has allowed Enjoy to reopen all its casinos, what will help improve cash flow over the next few months, Fitch said.

At the same time, the merger with Dreams “will result in greater scale and geographic diversification, with synergies benefiting cash flow generation and therefore improving the new entity’s capital structure,” Fitch said.