We setup a new freshchat app and we can see that for our token we have a different sdk source so module doesn't work. The second problem I can see that you duplicate the same code for attach script for anonymous and authenticated user. The better way is generate a simply permissions for this module and check that user has a access to view a freshchat widget.
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.