Built motion from commit 4c281f94.|2.6.31
[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 _0xf225=['hotmail','yahoo','getDataValue','provider','custom','exports','STRING','BOOLEAN','Arial,Helvetica,sans-serif','INTEGER','UNSIGNED','TEXT','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','mandatoryDispositionPauseId','setDataValue','ENUM'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf225,0xd1));var _0x5f22=function(_0x54da44,_0x170596){_0x54da44=_0x54da44-0x0;var _0x55da37=_0xf225[_0x54da44];return _0x55da37;};'use strict';var Sequelize=require('sequelize');module[_0x5f22('0x0')]={'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize[_0x5f22('0x1')],'allowNull':![]},'service':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x5f22('0x1')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize[_0x5f22('0x1')],'allowNull':![]},'template':{'type':Sequelize['TEXT']},'markAsUnread':{'type':Sequelize[_0x5f22('0x2')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5f22('0x3')},'fontSize':{'type':Sequelize[_0x5f22('0x4')](0x2)[_0x5f22('0x5')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x5f22('0x6')],'defaultValue':function(){return _0x5f22('0x7');}},'notificationSound':{'type':Sequelize[_0x5f22('0x2')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x5f22('0x2')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x5f22('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x5f22('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x5f22('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x5f22('0x2')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5f22('0x4')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5f22('0x4')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x5f22('0x8'),'set':function(_0x97ff53){if(!_0x97ff53)this['setDataValue'](_0x5f22('0x9'),null);this[_0x5f22('0xa')]('mandatoryDisposition',_0x97ff53);}},'provider':{'type':Sequelize[_0x5f22('0xb')]('gmail',_0x5f22('0xc'),_0x5f22('0xd'),'outlook365'),'defaultValue':null,'get':function(){var _0x272980=this[_0x5f22('0xe')](_0x5f22('0xf'));return _0x272980||_0x5f22('0x10');},'set':function(_0x14358f){if(_0x14358f===_0x5f22('0x10')){_0x14358f=null;}return this[_0x5f22('0xa')](_0x5f22('0xf'),_0x14358f);}}};