Built motion from commit (unavailable).|2.2.0
[motion2.git] / server / api / mailInteraction / mailInteraction.attributes.js
index 2a0e4e9..1ec590a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf414=['DATE','out','ENUM','getDataValue','split','sequelize','exports','BOOLEAN','STRING','long','TEXT','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'];(function(_0x4ebd7d,_0x56564c){var _0xf32b82=function(_0x148a34){while(--_0x148a34){_0x4ebd7d['push'](_0x4ebd7d['shift']());}};_0xf32b82(++_0x56564c);}(_0xf414,0x179));var _0x4f41=function(_0x20ef64,_0x4a8fe9){_0x20ef64=_0x20ef64-0x0;var _0x3707d8=_0xf414[_0x20ef64];return _0x3707d8;};'use strict';var Sequelize=require(_0x4f41('0x0'));var htmlToText=require('html-to-text');var iconv=require('iconv');module[_0x4f41('0x1')]={'closed':{'type':Sequelize[_0x4f41('0x2')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x4f41('0x3')]},'inReplyTo':{'type':Sequelize[_0x4f41('0x3')](0xbe)},'to':{'type':Sequelize[_0x4f41('0x3')]},'cc':{'type':Sequelize['TEXT'](_0x4f41('0x4'))},'subject':{'type':Sequelize[_0x4f41('0x5')]('')+_0x4f41('0x6')},'attach':{'type':Sequelize[_0x4f41('0x2')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x4f41('0x7')]},'substatus':{'type':Sequelize['STRING'](0x3c)},'substatusAt':{'type':Sequelize[_0x4f41('0x7')]},'firstMsgDirection':{'type':Sequelize['ENUM']('in',_0x4f41('0x8')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4f41('0x7')]},'lastMsgDirection':{'type':Sequelize[_0x4f41('0x9')]('in',_0x4f41('0x8')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize['TEXT'](_0x4f41('0x4'))+_0x4f41('0x6'),'get':function(){try{return this['getDataValue']('lastMsgBody')?htmlToText['fromString'](this[_0x4f41('0xa')]('lastMsgBody'),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})[_0x4f41('0xb')]('\x0a')['slice'](0x0,0x6)['join']('\x0a'):null;}catch(_0x4ae6b7){return null;}}}};
\ No newline at end of file
+var _0xcee9=['split','slice','sequelize','html-to-text','exports','BOOLEAN','DATE','STRING','long','TEXT','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ENUM','out','getDataValue','lastMsgBody','fromString'];(function(_0x23e081,_0x41afad){var _0x315989=function(_0x26845f){while(--_0x26845f){_0x23e081['push'](_0x23e081['shift']());}};_0x315989(++_0x41afad);}(_0xcee9,0x132));var _0x9cee=function(_0x1f5399,_0x5f24ef){_0x1f5399=_0x1f5399-0x0;var _0x305358=_0xcee9[_0x1f5399];return _0x305358;};'use strict';var Sequelize=require(_0x9cee('0x0'));var htmlToText=require(_0x9cee('0x1'));var iconv=require('iconv');module[_0x9cee('0x2')]={'closed':{'type':Sequelize[_0x9cee('0x3')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x9cee('0x4')]},'disposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0x9cee('0x5')](0xbe)},'to':{'type':Sequelize[_0x9cee('0x5')]},'cc':{'type':Sequelize['TEXT'](_0x9cee('0x6'))},'subject':{'type':Sequelize[_0x9cee('0x7')]('')+_0x9cee('0x8')},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize['DATE']},'substatus':{'type':Sequelize[_0x9cee('0x5')](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x9cee('0x9')]('in',_0x9cee('0xa')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x9cee('0x4')]},'lastMsgDirection':{'type':Sequelize[_0x9cee('0x9')]('in',_0x9cee('0xa')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize['TEXT'](_0x9cee('0x6'))+_0x9cee('0x8'),'get':function(){try{return this[_0x9cee('0xb')](_0x9cee('0xc'))?htmlToText[_0x9cee('0xd')](this[_0x9cee('0xb')](_0x9cee('0xc')),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})[_0x9cee('0xe')]('\x0a')[_0x9cee('0xf')](0x0,0x6)['join']('\x0a'):null;}catch(_0x2289b2){return null;}}}};
\ No newline at end of file