b69d5faafccdbebe9cf6d2884ffa73e7125d2409
[motion2.git] / server / api / mailMessage / mailMessage.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 _0x352a=['INTEGER','BOOLEAN','DATE','Email','Chat','lodash','exports','long','TEXT','medium','ENUM','out'];(function(_0x207cbc,_0x52d13d){var _0x192610=function(_0x185ec6){while(--_0x185ec6){_0x207cbc['push'](_0x207cbc['shift']());}};_0x192610(++_0x52d13d);}(_0x352a,0x125));var _0xa352=function(_0xd34250,_0x1bdc9d){_0xd34250=_0xd34250-0x0;var _0x550b75=_0x352a[_0xd34250];return _0x550b75;};'use strict';var Sequelize=require('sequelize');var _=require(_0xa352('0x0'));module[_0xa352('0x1')]={'body':{'type':Sequelize['TEXT'](_0xa352('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xa352('0x3')](_0xa352('0x4'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0xa352('0x5')]('in',_0xa352('0x6')),'defaultValue':_0xa352('0x6'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0xa352('0x3')](_0xa352('0x2'))},'cc':{'type':Sequelize[_0xa352('0x3')](_0xa352('0x2'))},'bcc':{'type':Sequelize['TEXT'](_0xa352('0x2'))},'subject':{'type':Sequelize[_0xa352('0x3')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0xa352('0x7')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xa352('0x8')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xa352('0x9')]},'originTo':{'type':Sequelize[_0xa352('0x3')](_0xa352('0x2'))},'originCc':{'type':Sequelize[_0xa352('0x3')](_0xa352('0x2'))},'originChannel':{'type':Sequelize[_0xa352('0x5')](_0xa352('0xa'),_0xa352('0xb')),'defaultValue':_0xa352('0xa'),'allowNull':![]}};