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