Built motion from commit (unavailable).|2.3.4
[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 _0xd28c=['lastMsgBody','fromString','split','slice','html-to-text','BOOLEAN','DATE','STRING','TEXT','long','ENUM','out','getDataValue'];(function(_0x402baa,_0x713d8d){var _0x11fcaa=function(_0x598088){while(--_0x598088){_0x402baa['push'](_0x402baa['shift']());}};_0x11fcaa(++_0x713d8d);}(_0xd28c,0xad));var _0xcd28=function(_0x12480b,_0x14f9db){_0x12480b=_0x12480b-0x0;var _0x286a8b=_0xd28c[_0x12480b];return _0x286a8b;};'use strict';var Sequelize=require('sequelize');var htmlToText=require(_0xcd28('0x0'));var iconv=require('iconv');module['exports']={'closed':{'type':Sequelize[_0xcd28('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0xcd28('0x2')]},'disposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0xcd28('0x3')](0x1fe)},'to':{'type':Sequelize[_0xcd28('0x3')]},'cc':{'type':Sequelize[_0xcd28('0x4')](_0xcd28('0x5'))},'subject':{'type':Sequelize['TEXT']()},'attach':{'type':Sequelize[_0xcd28('0x1')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0xcd28('0x2')]},'substatus':{'type':Sequelize[_0xcd28('0x3')](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0xcd28('0x6')]('in',_0xcd28('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0xcd28('0x2')]},'lastMsgDirection':{'type':Sequelize[_0xcd28('0x6')]('in',_0xcd28('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0xcd28('0x4')](_0xcd28('0x5')),'get':function(){try{return this[_0xcd28('0x8')](_0xcd28('0x9'))?htmlToText[_0xcd28('0xa')](this['getDataValue'](_0xcd28('0x9')),{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'ignoreImage':!![]})[_0xcd28('0xb')]('\x0a')[_0xcd28('0xc')](0x0,0x6)['join']('\x0a'):null;}catch(_0x32e4df){return null;}}}};