53e0afa798e94994a2e8f628f136fe195d93b261
[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 _0xc4bf=['UNSIGNED','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','ENUM','gmail','yahoo','getDataValue','provider','custom','sequelize','STRING','BOOLEAN','TEXT','INTEGER'];(function(_0x16006c,_0x237d8d){var _0x20292e=function(_0xb943d1){while(--_0xb943d1){_0x16006c['push'](_0x16006c['shift']());}};_0x20292e(++_0x237d8d);}(_0xc4bf,0xbb));var _0xfc4b=function(_0x8e579f,_0x5d7ddd){_0x8e579f=_0x8e579f-0x0;var _0x438bcb=_0xc4bf[_0x8e579f];return _0x438bcb;};'use strict';var Sequelize=require(_0xfc4b('0x0'));module['exports']={'description':{'type':Sequelize[_0xfc4b('0x1')]},'name':{'type':Sequelize['STRING'],'allowNull':![]},'service':{'type':Sequelize[_0xfc4b('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0xfc4b('0x1')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'template':{'type':Sequelize[_0xfc4b('0x3')]},'markAsUnread':{'type':Sequelize[_0xfc4b('0x2')],'defaultValue':![]},'fontFamily':{'type':Sequelize[_0xfc4b('0x1')],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'},'fontSize':{'type':Sequelize[_0xfc4b('0x4')](0x2)[_0xfc4b('0x5')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0xfc4b('0x3')],'defaultValue':function(){return _0xfc4b('0x6');}},'notificationSound':{'type':Sequelize[_0xfc4b('0x2')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xfc4b('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xfc4b('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xfc4b('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xfc4b('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xfc4b('0x4')],'allowNull':!![],'defaultValue':null,'comment':_0xfc4b('0x7')},'mandatoryDisposition':{'type':Sequelize[_0xfc4b('0x2')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x47040f){if(!_0x47040f)this[_0xfc4b('0x8')](_0xfc4b('0x9'),null);this['setDataValue']('mandatoryDisposition',_0x47040f);}},'provider':{'type':Sequelize[_0xfc4b('0xa')](_0xfc4b('0xb'),'hotmail',_0xfc4b('0xc'),'outlook365'),'defaultValue':null,'get':function(){if(!this[_0xfc4b('0xd')](_0xfc4b('0xe')))return _0xfc4b('0xf');return this[_0xfc4b('0xd')](_0xfc4b('0xe'));},'set':function(_0x48dfdb){if(_0x48dfdb===_0xfc4b('0xf'))_0x48dfdb=null;return this[_0xfc4b('0x8')]('provider',_0x48dfdb);}}};