Built motion from commit (unavailable).|2.5.9
[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 _0x54eb=['STRING','INTEGER','TEXT','BOOLEAN','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize'];(function(_0x588864,_0x21e05c){var _0x2304ea=function(_0xb84e8a){while(--_0xb84e8a){_0x588864['push'](_0x588864['shift']());}};_0x2304ea(++_0x21e05c);}(_0x54eb,0x15d));var _0xb54e=function(_0xdea41a,_0x552987){_0xdea41a=_0xdea41a-0x0;var _0x15d0d8=_0x54eb[_0xdea41a];return _0x15d0d8;};'use strict';var Sequelize=require(_0xb54e('0x0'));module['exports']={'description':{'type':Sequelize[_0xb54e('0x1')]},'name':{'type':Sequelize['STRING'],'allowNull':![]},'service':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0xb54e('0x1')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize[_0xb54e('0x1')],'allowNull':![]},'template':{'type':Sequelize['TEXT']},'markAsUnread':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'},'fontSize':{'type':Sequelize[_0xb54e('0x2')](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0xb54e('0x3')],'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[_0xb54e('0x4')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xb54e('0x2')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xb54e('0x4')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xb54e('0x2')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xb54e('0x4')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xb54e('0x2')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xb54e('0x2')],'allowNull':!![],'defaultValue':null,'comment':_0xb54e('0x5')},'mandatoryDisposition':{'type':Sequelize[_0xb54e('0x4')],'defaultValue':![],'comment':_0xb54e('0x6'),'set':function(_0xdd4437){if(!_0xdd4437)this[_0xb54e('0x7')](_0xb54e('0x8'),null);this[_0xb54e('0x7')](_0xb54e('0x9'),_0xdd4437);}}};