Built motion from commit (unavailable).|2.0.83
[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 _0x7f04=['sequelize','html-to-text','iconv','exports','BOOLEAN','STRING','TEXT','long','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ENUM','out','DATE','getDataValue','fromString','lastMsgBody','slice'];(function(_0x518ce7,_0x12ad83){var _0x4288ff=function(_0x42384f){while(--_0x42384f){_0x518ce7['push'](_0x518ce7['shift']());}};_0x4288ff(++_0x12ad83);}(_0x7f04,0x130));var _0x47f0=function(_0x5e2f7b,_0x226498){_0x5e2f7b=_0x5e2f7b-0x0;var _0x3c386e=_0x7f04[_0x5e2f7b];return _0x3c386e;};'use strict';var Sequelize=require(_0x47f0('0x0'));var htmlToText=require(_0x47f0('0x1'));var iconv=require(_0x47f0('0x2'));module[_0x47f0('0x3')]={'closed':{'type':Sequelize[_0x47f0('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x47f0('0x5')]},'inReplyTo':{'type':Sequelize[_0x47f0('0x5')](0xbe)},'to':{'type':Sequelize[_0x47f0('0x5')]},'cc':{'type':Sequelize[_0x47f0('0x6')](_0x47f0('0x7'))},'subject':{'type':Sequelize['TEXT']('')+_0x47f0('0x8')},'attach':{'type':Sequelize[_0x47f0('0x4')],'defaultValue':![]},'read1stAt':{'type':Sequelize['DATE']},'substatus':{'type':Sequelize[_0x47f0('0x5')](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x47f0('0x9')]('in',_0x47f0('0xa')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x47f0('0xb')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x47f0('0x6')](_0x47f0('0x7'))+_0x47f0('0x8'),'get':function(){try{return this[_0x47f0('0xc')]('lastMsgBody')?htmlToText[_0x47f0('0xd')](this[_0x47f0('0xc')](_0x47f0('0xe')),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})['split']('\x0a')[_0x47f0('0xf')](0x0,0x6)['join']('\x0a'):null;}catch(_0x459e74){return null;}}}};