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