2021-01-10 23:44:39 +00:00
|
|
|
package app
|
2021-01-10 18:40:46 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
2021-01-12 05:46:24 +00:00
|
|
|
|
|
|
|
"code.tnxs.net/taxnexus/lib/api/workflow/workflow_models"
|
2021-01-10 18:40:46 +00:00
|
|
|
)
|
|
|
|
|
2021-01-12 05:46:24 +00:00
|
|
|
// EmailMessageChannelWrapper wraps the object with the security principal
|
|
|
|
type EmailMessageChannelWrapper struct {
|
|
|
|
Obj workflow_models.EmailMessage
|
|
|
|
Principal User
|
|
|
|
}
|
|
|
|
|
2021-01-10 18:40:46 +00:00
|
|
|
// EmailMessage is a first class object type
|
|
|
|
type EmailMessage struct {
|
|
|
|
ID string
|
|
|
|
ActivityID string
|
|
|
|
BCCAddress string
|
|
|
|
CCAddress string
|
|
|
|
CreatedByID string
|
|
|
|
CreatedDate sql.NullTime
|
|
|
|
EmailMessageID string
|
|
|
|
FromAddress string
|
|
|
|
FromName string
|
|
|
|
HasAttachment bool
|
|
|
|
Headers []*Header
|
|
|
|
HTML []byte
|
|
|
|
Incoming bool
|
|
|
|
IsClientManaged bool
|
|
|
|
IsExternallyManaged bool
|
|
|
|
LastModifiedByID string
|
|
|
|
LastModifiedDate sql.NullTime
|
|
|
|
MessageDate sql.NullTime
|
|
|
|
MessageIdentifier string
|
|
|
|
ParentID string
|
|
|
|
RelatedToID string
|
|
|
|
RelationAddress string
|
|
|
|
RelationID string
|
|
|
|
RelationObjectType string
|
|
|
|
RelationType string
|
|
|
|
ReplyToEmailMessageID string
|
|
|
|
Status string
|
|
|
|
Subject string
|
|
|
|
Text []byte
|
|
|
|
ThreadIdentifier string
|
|
|
|
ToAddress string
|
|
|
|
ToName string
|
|
|
|
ValidatedFromAddress string
|
|
|
|
}
|
|
|
|
|
|
|
|
// Header is a first class object type
|
|
|
|
type Header struct {
|
|
|
|
Key string
|
|
|
|
Values []string
|
|
|
|
}
|