All of this back and forth and this thread is puzzling in how mis-evaluated this trade is. GMs aren't morons. They don't generally get completely fleeced.
For starters, this is not a trade anyone should evaluate on points. It was a trade of a guy whose only value is point production for a guy whose prime value is physical play. So there's that.
Second, there seem to be a lot of myths about who these players are. Both have good upside but extreme flaws. For Anderson that's health concerns, wear and tear on his body and a recent lack of impact in his shortened season. For Domi it's inconsistency, ineffectiveness on the wing and poor defensive commitment.
The thinking is simple from both GMs. For Kek, he needed to add a 2C and some creativity to that lineup and to resolve a contract stalemate. Domi offers promise of being a capable 2C who is creative. For Bergevin, he had an unhappy C who wasn't going to have a top 3 C role in Montreal, who was very ineffective on the wing and not a Julien player. He had a DESPERATE need for a winger with size who can create space and take some net front heat off Gallagher's shoulders. So he flipped an unneeded asset in one area for a badly needed one in another area.
It's basically as simple as that. Many think CBJ won this badly, but I'd definitely give it a year or two. Hard for Bergevin to lose a deal when you take an item that was buried in your closet, not being used and flip it for an item you will use every day. He could care less what the new owner does with that item. And CBJ filled a need too. They'll soon see all Max's warts and why you can't evaluate just on points, but they'll also get good value from him - as they should, when you gave up a coveted asset that most teams would like to have.