Poor dog, he definitely needs socialization to regain his confidence. Can't blame for what happened to him.
The same with my friend's gentle boxer who being attacked by two GSDs, though he's not injured just small bites but the trauma makes him more timid and defensive. He's going to professional trainer now and a dog class for his socialization.