Built motion from commit c738b9ac.|2.6.25
[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 _0x7a30=['TEXT','INTEGER','UNSIGNED','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}<br/>Subject\x20:\x20{{message.subject}}','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDisposition','ENUM','gmail','hotmail','outlook365','getDataValue','provider','custom','sequelize','STRING','BOOLEAN'];(function(_0x1cc964,_0xf2ef86){var _0x32c4d3=function(_0x3d3e9d){while(--_0x3d3e9d){_0x1cc964['push'](_0x1cc964['shift']());}};_0x32c4d3(++_0xf2ef86);}(_0x7a30,0xa7));var _0x07a3=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x7a30[_0x20a584];return _0x4b41a8;};'use strict';var Sequelize=require(_0x07a3('0x0'));module['exports']={'description':{'type':Sequelize[_0x07a3('0x1')]},'name':{'type':Sequelize[_0x07a3('0x1')],'allowNull':![]},'service':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':!![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'template':{'type':Sequelize[_0x07a3('0x3')]},'markAsUnread':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'},'fontSize':{'type':Sequelize[_0x07a3('0x4')](0x2)[_0x07a3('0x5')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x07a3('0x3')],'defaultValue':function(){return _0x07a3('0x6');}},'notificationSound':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x07a3('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x07a3('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x07a3('0x2')],'defaultValue':![],'comment':_0x07a3('0x7'),'set':function(_0x20fdec){if(!_0x20fdec)this[_0x07a3('0x8')]('mandatoryDispositionPauseId',null);this[_0x07a3('0x8')](_0x07a3('0x9'),_0x20fdec);}},'provider':{'type':Sequelize[_0x07a3('0xa')](_0x07a3('0xb'),_0x07a3('0xc'),'yahoo',_0x07a3('0xd')),'defaultValue':null,'get':function(){var _0x74c91=this[_0x07a3('0xe')](_0x07a3('0xf'));return _0x74c91||_0x07a3('0x10');},'set':function(_0x468f45){if(_0x468f45===_0x07a3('0x10')){_0x468f45=null;}return this[_0x07a3('0x8')]('provider',_0x468f45);}}};