Built motion from commit (unavailable).|2.3.94
[motion2.git] / server / api / mailInteraction / mailInteraction.attributes.js
index a0df0a9..e065b1d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f6d=['STRING','TEXT','ENUM','long','getDataValue','lastMsgBody','fromString','slice','join','sequelize','iconv','exports','DATE'];(function(_0x36fe77,_0x44c701){var _0x278fd5=function(_0x4377ac){while(--_0x4377ac){_0x36fe77['push'](_0x36fe77['shift']());}};_0x278fd5(++_0x44c701);}(_0x3f6d,0x1d0));var _0xd3f6=function(_0x378e3c,_0x3dc11a){_0x378e3c=_0x378e3c-0x0;var _0x855bee=_0x3f6d[_0x378e3c];return _0x855bee;};'use strict';var Sequelize=require(_0xd3f6('0x0'));var htmlToText=require('html-to-text');var iconv=require(_0xd3f6('0x1'));module[_0xd3f6('0x2')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0xd3f6('0x3')]},'disposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0xd3f6('0x4')](0x1fe)},'to':{'type':Sequelize[_0xd3f6('0x4')]},'cc':{'type':Sequelize[_0xd3f6('0x5')]('long')},'subject':{'type':Sequelize[_0xd3f6('0x5')]()},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0xd3f6('0x3')]},'substatus':{'type':Sequelize[_0xd3f6('0x4')](0x3c)},'substatusAt':{'type':Sequelize[_0xd3f6('0x3')]},'firstMsgDirection':{'type':Sequelize[_0xd3f6('0x6')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0xd3f6('0x3')]},'lastMsgDirection':{'type':Sequelize[_0xd3f6('0x6')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0xd3f6('0x5')](_0xd3f6('0x7')),'get':function(){try{return this[_0xd3f6('0x8')](_0xd3f6('0x9'))?htmlToText[_0xd3f6('0xa')](this['getDataValue'](_0xd3f6('0x9')),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})['split']('\x0a')[_0xd3f6('0xb')](0x0,0x6)[_0xd3f6('0xc')]('\x0a'):null;}catch(_0x5dd8d0){return null;}}}};
\ No newline at end of file
+var _0xb9a3=['out','lastMsgBody','fromString','getDataValue','split','join','html-to-text','exports','BOOLEAN','STRING','long','TEXT','DATE','ENUM'];(function(_0x4697fa,_0x21c841){var _0x390950=function(_0x3deb8a){while(--_0x3deb8a){_0x4697fa['push'](_0x4697fa['shift']());}};_0x390950(++_0x21c841);}(_0xb9a3,0x68));var _0x3b9a=function(_0x4740bf,_0x22cbcc){_0x4740bf=_0x4740bf-0x0;var _0x4a68c1=_0xb9a3[_0x4740bf];return _0x4a68c1;};'use strict';var Sequelize=require('sequelize');var htmlToText=require(_0x3b9a('0x0'));var iconv=require('iconv');module[_0x3b9a('0x1')]={'closed':{'type':Sequelize[_0x3b9a('0x2')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x3b9a('0x3')]},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize['STRING'](0x1fe)},'to':{'type':Sequelize[_0x3b9a('0x3')]},'cc':{'type':Sequelize['TEXT'](_0x3b9a('0x4'))},'subject':{'type':Sequelize[_0x3b9a('0x5')]()},'attach':{'type':Sequelize[_0x3b9a('0x2')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x3b9a('0x6')]},'substatus':{'type':Sequelize[_0x3b9a('0x3')](0x3c)},'substatusAt':{'type':Sequelize[_0x3b9a('0x6')]},'firstMsgDirection':{'type':Sequelize[_0x3b9a('0x7')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x3b9a('0x6')]},'lastMsgDirection':{'type':Sequelize[_0x3b9a('0x7')]('in',_0x3b9a('0x8')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x3b9a('0x5')](_0x3b9a('0x4')),'get':function(){try{return this['getDataValue'](_0x3b9a('0x9'))?htmlToText[_0x3b9a('0xa')](this[_0x3b9a('0xb')](_0x3b9a('0x9')),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})[_0x3b9a('0xc')]('\x0a')['slice'](0x0,0x6)[_0x3b9a('0xd')]('\x0a'):null;}catch(_0x1bbcec){return null;}}}};
\ No newline at end of file