Governor Maggie Hassan praised a deal reached late Wednesday night that has former CEO Arthur T. Demoulas taking majority control of the embattled grocery chain.

In the deal announced by Market Basket’s shareholders, Demoulas purchased the company for more than $1.5 billion.

It brings to an end an epic family feud that brought the New England grocery chain to its knees.

In a joint statement with Massachusetts Governor Deval Patrick, Hassan said she’s “delighted that the parties have reached agreement on terms of sale and resolution of operating authority, so that employees can return to work and customers will once again be able to rely on these stores to meet their needs.”

It was back to business as usual at the Hooksett store Thursday.

Rachel Spada works at the Hooksett store and says she’s thankful for the support of customers during the dispute.

“People chose not to shop here and they could have. We were out of some things, but they could have kept coming in. But a lot of people…most of the people stayed away for us to bring back Artie T. And that’s amazing.”

In the deal, Demoulas and his siblings will purchase the 50.5 percent of the company owned by his cousin Arthur S. Demoulas and other relatives.

For more than a month, workers have been protesting the ouster of Demoulas, demanding his return. Customers have boycotted and sales have plummeted at the chain’s stores, including its nearly 30 locations in New Hampshire.

Text of the full statement released Wednesday:

All Associates are welcome back to work with the former management team to restore the Company back to normal operations.Copyright 2016 New Hampshire Public Radio. To see more, visit New Hampshire Public Radio.