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 _0xb768=['twilio','TEXT','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','setDataValue','mandatoryDispositionPauseId','sequelize','exports','STRING','name','generate','ENUM'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0xb768,0x1ba));var _0x8b76=function(_0x44e5ce,_0x5aeecb){_0x44e5ce=_0x44e5ce-0x0;var _0x19866e=_0xb768[_0x44e5ce];return _0x19866e;};'use strict';var Sequelize=require(_0x8b76('0x0'));var rs=require('randomstring');module[_0x8b76('0x1')]={'name':{'type':Sequelize[_0x8b76('0x2')],'unique':_0x8b76('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x8b76('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0x8b76('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x8b76('0x2')],'defaultValue':function(){return rs[_0x8b76('0x4')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x8b76('0x5')](_0x8b76('0x6'),'sinch')},'accountSid':{'type':Sequelize['STRING']},'baseUrl':{'type':Sequelize[_0x8b76('0x2')]},'authToken':{'type':Sequelize[_0x8b76('0x2')]},'notificationTemplate':{'type':Sequelize[_0x8b76('0x7')],'defaultValue':function(){return _0x8b76('0x8');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x8b76('0x9')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'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[_0x8b76('0xa')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x8b76('0x9')],'defaultValue':![],'comment':_0x8b76('0xb'),'set':function(_0x2849c7){if(!_0x2849c7){this[_0x8b76('0xc')](_0x8b76('0xd'),null);}this[_0x8b76('0xc')]('mandatoryDisposition',_0x2849c7);}},'description':{'type':Sequelize['STRING']}};