Chatwoot/app/models/concerns
Sony Mathew f9b0427751
feat: email channel backend (#140) (#1255)
* feat: added support mailbox to handle email channel (#140)

Added a new mailbox called 'SupportMailbox' to handle all the
incoming emails other than reply emails.

An email channel will have a support email and forward email
associated with it. So we filter for the right email inbox based on
the support email of that inbox and route this to this mailbox.

This mailbox finds the account, inbox, contact (create a new one
if it does not exist) and creates a conversation and adds the
email content as the first message in the conversation.

Other minor things handled in this commit:

* renamed the procs for routing emails in application mailbox
* renamed ConversationMailbox to ReplyMailbox
* Added a fallback content in MailPresenter
* Added a record saving (bang) versions of enabling and disabling
features in Featurable module
* added new factory for the email channel

refs: #140
2020-09-21 22:44:22 +05:30
..
.keep Initial Commit 2019-08-14 15:18:44 +05:30
access_tokenable.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
availability_statusable.rb Chore: Fix presence for current user (#1001) 2020-07-04 20:03:16 +05:30
avatarable.rb Chore: Switch from Carrierwave to ActiveStorage (#393) 2020-01-07 22:59:17 +05:30
content_attribute_validator.rb Feature: Add default value to ChatForm (#816) 2020-05-04 23:48:47 +05:30
featurable.rb feat: email channel backend (#140) (#1255) 2020-09-21 22:44:22 +05:30
pubsubable.rb Replace pusher with action cable (#178) 2019-10-25 01:37:01 +05:30
reportable.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30