Support integration with personal Gmail accounts. These will not be auto-synced like the support email, but will allow users to send emails directly from Papercups (as if they were sending from Gmail) in the future.
Issue
This just sets up the boilerplate for integrating with personal Gmail accounts. There are some edge cases we need to iron out in the behavior, for example:
If a user starts a thread from their personal account, what happens if a teammate who DOESN'T have a personal integration also sends a message in the thread? Do we just send as the support/account-level integration? What if there is no support/account-level integration? Do we send on behalf of the original sender?
How do we handle syncing of personal accounts? We don't want to sync all messages by default, but it probably makes sense to sync messages from existing threads in Papercups?
How do we handle existing threads if a user decides to disconnect their account? (I guess this applies for both personal and support/account-level integrations)
Description
Support integration with personal Gmail accounts. These will not be auto-synced like the support email, but will allow users to send emails directly from Papercups (as if they were sending from Gmail) in the future.
Issue
This just sets up the boilerplate for integrating with personal Gmail accounts. There are some edge cases we need to iron out in the behavior, for example:
Checklist
mix test
mix format