Built motion from commit (unavailable).|2.2.0
[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 _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;}}}};