Built motion from commit 25580385.|2.6.2
[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 _0x71e9=['TEXT','BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','STRING','generate'];(function(_0x43b8fe,_0x285e6a){var _0x3459c3=function(_0x31d1fc){while(--_0x31d1fc){_0x43b8fe['push'](_0x43b8fe['shift']());}};_0x3459c3(++_0x285e6a);}(_0x71e9,0xa1));var _0x971e=function(_0x19717a,_0x314be4){_0x19717a=_0x19717a-0x0;var _0x2999f2=_0x71e9[_0x19717a];return _0x2999f2;};'use strict';var Sequelize=require(_0x971e('0x0'));var rs=require(_0x971e('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'description':{'type':Sequelize[_0x971e('0x2')]},'token':{'type':Sequelize[_0x971e('0x2')],'defaultValue':function(){return rs[_0x971e('0x3')]();}},'replyUri':{'type':Sequelize[_0x971e('0x2')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x971e('0x2')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x971e('0x4')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x971e('0x5')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x971e('0x5')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x971e('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x971e('0x2')]},'queueTransfer':{'type':Sequelize[_0x971e('0x5')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x971e('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x971e('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x971e('0x6')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x971e('0x5')],'defaultValue':![],'comment':_0x971e('0x7'),'set':function(_0x1e65d6){if(!_0x1e65d6)this[_0x971e('0x8')](_0x971e('0x9'),null);this['setDataValue'](_0x971e('0xa'),_0x1e65d6);}}};