Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / mailAccount / mailAccount.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 _0x64e7=['provider','custom','sequelize','exports','STRING','BOOLEAN','Arial,Helvetica,sans-serif','UNSIGNED','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}<br/>Subject\x20:\x20{{message.subject}}','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDispositionPauseId','setDataValue','mandatoryDisposition','ENUM','gmail','hotmail','yahoo','outlook365'];(function(_0x3564d6,_0x37d1cb){var _0x1f2267=function(_0xbf7dfb){while(--_0xbf7dfb){_0x3564d6['push'](_0x3564d6['shift']());}};_0x1f2267(++_0x37d1cb);}(_0x64e7,0x106));var _0x764e=function(_0x33663d,_0x2c2eda){_0x33663d=_0x33663d-0x0;var _0x418336=_0x64e7[_0x33663d];return _0x418336;};'use strict';var Sequelize=require(_0x764e('0x0'));module[_0x764e('0x1')]={'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize[_0x764e('0x2')],'allowNull':![]},'service':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x764e('0x2')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize[_0x764e('0x2')],'allowNull':![]},'template':{'type':Sequelize['TEXT']},'markAsUnread':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x764e('0x4')},'fontSize':{'type':Sequelize['INTEGER'](0x2)[_0x764e('0x5')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x764e('0x6')],'defaultValue':function(){return _0x764e('0x7');}},'notificationSound':{'type':Sequelize[_0x764e('0x3')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x764e('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x764e('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x764e('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x764e('0x8')],'allowNull':!![],'defaultValue':null,'comment':_0x764e('0x9')},'mandatoryDisposition':{'type':Sequelize[_0x764e('0x3')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x2f0184){if(!_0x2f0184)this['setDataValue'](_0x764e('0xa'),null);this[_0x764e('0xb')](_0x764e('0xc'),_0x2f0184);}},'provider':{'type':Sequelize[_0x764e('0xd')](_0x764e('0xe'),_0x764e('0xf'),_0x764e('0x10'),_0x764e('0x11')),'defaultValue':null,'get':function(){if(!this['getDataValue'](_0x764e('0x12')))return _0x764e('0x13');return this['getDataValue'](_0x764e('0x12'));},'set':function(_0x4910f6){if(_0x4910f6==='custom')_0x4910f6=null;return this[_0x764e('0xb')](_0x764e('0x12'),_0x4910f6);}}};