b7a177b19b4df7f8ee7b5a682464683ff9b6f2a8
[motion2.git] / server / api / mailInteraction / mailInteraction.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2bad=['long','exports','BOOLEAN','DATE','STRING','TEXT','ENUM','out'];(function(_0x1f0ce4,_0x4d4163){var _0x139f7c=function(_0x2754ea){while(--_0x2754ea){_0x1f0ce4['push'](_0x1f0ce4['shift']());}};_0x139f7c(++_0x4d4163);}(_0x2bad,0x179));var _0xd2ba=function(_0x19e1f6,_0x52d013){_0x19e1f6=_0x19e1f6-0x0;var _0x4b9242=_0x2bad[_0x19e1f6];return _0x4b9242;};'use strict';var Sequelize=require('sequelize');var iconv=require('iconv');module[_0xd2ba('0x0')]={'closed':{'type':Sequelize[_0xd2ba('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0xd2ba('0x2')]},'disposition':{'type':Sequelize[_0xd2ba('0x3')]},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0xd2ba('0x3')](0x1fe)},'to':{'type':Sequelize[_0xd2ba('0x3')]},'cc':{'type':Sequelize[_0xd2ba('0x4')]('long')},'subject':{'type':Sequelize[_0xd2ba('0x4')]()},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0xd2ba('0x2')]},'substatus':{'type':Sequelize[_0xd2ba('0x3')](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0xd2ba('0x5')]('in',_0xd2ba('0x6')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0xd2ba('0x2')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0xd2ba('0x6')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0xd2ba('0x4')](_0xd2ba('0x7'))},'lastMsgText':{'type':Sequelize[_0xd2ba('0x4')]('long')}};