{ "fields": { "name": { "type": "varchar", "required": true, "trim": true }, "emailAddress": { "type": "varchar", "required": true, "maxLength": 100, "view": "views/inbound-email/fields/email-address", "trim": true }, "status": { "type": "enum", "options": ["Active", "Inactive"], "default": "Active" }, "host": { "type": "varchar", "trim": true }, "port": { "type": "varchar", "default": "143" }, "ssl": { "type": "bool" }, "username": { "type": "varchar", "trim": true }, "password": { "type": "password" }, "monitoredFolders": { "type": "varchar", "default": "INBOX", "view": "views/inbound-email/fields/folders", "tooltip": true }, "fetchSince": { "type": "date", "required": true }, "fetchData": { "type": "jsonObject", "readOnly": true }, "assignToUser": { "type": "link", "tooltip": true }, "team": { "type": "link", "tooltip": true }, "teams": { "type": "linkMultiple", "tooltip": true }, "addAllTeamUsers": { "type": "bool", "tooltip": true, "default": true }, "sentFolder": { "type": "varchar", "view": "views/inbound-email/fields/folder" }, "storeSentEmails": { "type": "bool", "tooltip": true }, "useImap": { "type": "bool", "default": true }, "useSmtp": { "type": "bool" }, "smtpIsShared": { "type": "bool", "tooltip": true }, "smtpIsForMassEmail": { "type": "bool", "tooltip": true }, "smtpHost": { "type": "varchar", "trim": true }, "smtpPort": { "type": "int", "min": 0, "max": 9999, "default": 25 }, "smtpAuth": { "type": "bool", "default": false }, "smtpSecurity": { "type": "enum", "options": ["", "SSL", "TLS"] }, "smtpUsername": { "type": "varchar", "required": true, "trim": true }, "smtpPassword": { "type": "password" }, "createCase": { "type": "bool", "tooltip": true }, "caseDistribution": { "type": "enum", "options": ["", "Direct-Assignment", "Round-Robin", "Least-Busy"], "default": "Direct-Assignment", "tooltip": true }, "targetUserPosition": { "type": "enum", "view": "views/inbound-email/fields/target-user-position", "tooltip": true }, "reply": { "type": "bool", "tooltip": true }, "replyEmailTemplate": { "type": "link" }, "replyFromAddress": { "type": "varchar" }, "replyToAddress": { "type": "varchar", "tooltip": true }, "replyFromName": { "type": "varchar" }, "fromName": { "type": "varchar" }, "createdAt": { "type": "datetime", "readOnly": true }, "modifiedAt": { "type": "datetime", "readOnly": true }, "createdBy": { "type": "link", "readOnly": true }, "modifiedBy": { "type": "link", "readOnly": true } }, "links": { "createdBy": { "type": "belongsTo", "entity": "User" }, "modifiedBy": { "type": "belongsTo", "entity": "User" }, "teams": { "type": "hasMany", "entity": "Team", "foreign": "inboundEmails" }, "assignToUser": { "type": "belongsTo", "entity": "User" }, "team": { "type": "belongsTo", "entity": "Team" }, "replyEmailTemplate": { "type": "belongsTo", "entity": "EmailTemplate" }, "filters": { "type": "hasChildren", "foreign": "parent", "entity": "EmailFilter" }, "emails": { "type": "hasMany", "entity": "Email", "foreign": "inboundEmails" } }, "collection": { "orderBy": "name", "order": "asc" } }