771297e7f1194e33576e8b212e263aae7ce88390
[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 _0xdc9e=['Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}<br/>Subject\x20:\x20{{message.subject}}','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','ENUM','gmail','hotmail','yahoo','outlook365','getDataValue','provider','custom','sequelize','exports','BOOLEAN','STRING','TEXT','Arial,Helvetica,sans-serif','INTEGER','UNSIGNED'];(function(_0x10f80a,_0x3fca40){var _0x13d794=function(_0x4e6ca4){while(--_0x4e6ca4){_0x10f80a['push'](_0x10f80a['shift']());}};_0x13d794(++_0x3fca40);}(_0xdc9e,0xdf));var _0xedc9=function(_0xa363e5,_0x14c9ed){_0xa363e5=_0xa363e5-0x0;var _0x4c38a3=_0xdc9e[_0xa363e5];return _0x4c38a3;};'use strict';var Sequelize=require(_0xedc9('0x0'));module[_0xedc9('0x1')]={'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize['STRING'],'allowNull':![]},'service':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':![]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':!![]},'key':{'type':Sequelize[_0xedc9('0x3')],'allowNull':![]},'template':{'type':Sequelize[_0xedc9('0x4')]},'markAsUnread':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fontFamily':{'type':Sequelize[_0xedc9('0x3')],'allowNull':![],'defaultValue':_0xedc9('0x5')},'fontSize':{'type':Sequelize[_0xedc9('0x6')](0x2)[_0xedc9('0x7')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0xedc9('0x4')],'defaultValue':function(){return _0xedc9('0x8');}},'notificationSound':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xedc9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0xedc9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xedc9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xedc9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':_0xedc9('0x9')},'mandatoryDisposition':{'type':Sequelize[_0xedc9('0x2')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x207bf5){if(!_0x207bf5)this[_0xedc9('0xa')](_0xedc9('0xb'),null);this[_0xedc9('0xa')](_0xedc9('0xc'),_0x207bf5);}},'provider':{'type':Sequelize[_0xedc9('0xd')](_0xedc9('0xe'),_0xedc9('0xf'),_0xedc9('0x10'),_0xedc9('0x11')),'defaultValue':null,'get':function(){if(!this[_0xedc9('0x12')](_0xedc9('0x13')))return _0xedc9('0x14');return this[_0xedc9('0x12')]('provider');},'set':function(_0x3a2222){if(_0x3a2222===_0xedc9('0x14'))_0x3a2222=null;return this[_0xedc9('0xa')]('provider',_0x3a2222);}}};