Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0x2807=['randomstring','exports','STRING','name','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','setDataValue','mandatoryDisposition','sequelize'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x2807,0x197));var _0x7280=function(_0x3ea343,_0x168e7e){_0x3ea343=_0x3ea343-0x0;var _0x1ae8e5=_0x2807[_0x3ea343];return _0x1ae8e5;};'use strict';var Sequelize=require(_0x7280('0x0'));var rs=require(_0x7280('0x1'));module[_0x7280('0x2')]={'name':{'type':Sequelize[_0x7280('0x3')],'unique':_0x7280('0x4'),'allowNull':![]},'description':{'type':Sequelize[_0x7280('0x3')]},'token':{'type':Sequelize[_0x7280('0x3')],'defaultValue':function(){return rs['generate']();}},'replyUri':{'type':Sequelize[_0x7280('0x3')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x7280('0x3')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x7280('0x5');}},'notificationSound':{'type':Sequelize[_0x7280('0x6')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x7280('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x7280('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x7280('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize['STRING']},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x7280('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x7280('0x6')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x7280('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x7280('0x7')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x7280('0x6')],'defaultValue':![],'comment':_0x7280('0x8'),'set':function(_0xd17dd4){if(!_0xd17dd4)this['setDataValue'](_0x7280('0x9'),null);this[_0x7280('0xa')](_0x7280('0xb'),_0xd17dd4);}}};