1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x71ae=['BOOLEAN','INTEGER','mandatoryDispositionPauseId','setDataValue','mandatoryDisposition','sequelize','randomstring','exports','STRING','name','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}'];(function(_0x4390c7,_0x3a97b0){var _0x301fc6=function(_0x46efe0){while(--_0x46efe0){_0x4390c7['push'](_0x4390c7['shift']());}};_0x301fc6(++_0x3a97b0);}(_0x71ae,0x9f));var _0xe71a=function(_0x39c734,_0x2f3e06){_0x39c734=_0x39c734-0x0;var _0xb2a2f9=_0x71ae[_0x39c734];return _0xb2a2f9;};'use strict';var Sequelize=require(_0xe71a('0x0'));var rs=require(_0xe71a('0x1'));module[_0xe71a('0x2')]={'name':{'type':Sequelize[_0xe71a('0x3')],'unique':_0xe71a('0x4'),'allowNull':![]},'description':{'type':Sequelize[_0xe71a('0x3')]},'token':{'type':Sequelize[_0xe71a('0x3')],'defaultValue':function(){return rs['generate']();}},'replyUri':{'type':Sequelize[_0xe71a('0x3')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0xe71a('0x3')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0xe71a('0x5');}},'notificationSound':{'type':Sequelize[_0xe71a('0x6')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xe71a('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xe71a('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0xe71a('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0xe71a('0x3')]},'queueTransfer':{'type':Sequelize[_0xe71a('0x6')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xe71a('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xe71a('0x7')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x1d5a66){if(!_0x1d5a66)this['setDataValue'](_0xe71a('0x8'),null);this[_0xe71a('0x9')](_0xe71a('0xa'),_0x1d5a66);}}};