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 _0x1446=['sinch','BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDisposition','sequelize','STRING','name','generate','ENUM'];(function(_0x365ab8,_0x534128){var _0x53c92a=function(_0x144777){while(--_0x144777){_0x365ab8['push'](_0x365ab8['shift']());}};_0x53c92a(++_0x534128);}(_0x1446,0x11b));var _0x6144=function(_0x9cca4b,_0x38914c){_0x9cca4b=_0x9cca4b-0x0;var _0x4efa28=_0x1446[_0x9cca4b];return _0x4efa28;};'use strict';var Sequelize=require(_0x6144('0x0'));var rs=require('randomstring');module['exports']={'name':{'type':Sequelize[_0x6144('0x1')],'unique':_0x6144('0x2'),'allowNull':![]},'key':{'type':Sequelize[_0x6144('0x1')],'allowNull':![]},'remote':{'type':Sequelize[_0x6144('0x1')],'allowNull':![]},'token':{'type':Sequelize[_0x6144('0x1')],'defaultValue':function(){return rs[_0x6144('0x3')]();}},'phone':{'type':Sequelize[_0x6144('0x1')]},'type':{'type':Sequelize[_0x6144('0x4')]('twilio',_0x6144('0x5'))},'accountSid':{'type':Sequelize[_0x6144('0x1')]},'baseUrl':{'type':Sequelize[_0x6144('0x1')]},'authToken':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x6144('0x6')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x6144('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x6144('0x7')],'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[_0x6144('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x6144('0x6')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x6144('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x6144('0x7')],'comment':_0x6144('0x8')},'mandatoryDisposition':{'type':Sequelize[_0x6144('0x6')],'defaultValue':![],'comment':_0x6144('0x9'),'set':function(_0x3008e4){if(!_0x3008e4){this['setDataValue']('mandatoryDispositionPauseId',null);}this[_0x6144('0xa')](_0x6144('0xb'),_0x3008e4);}},'description':{'type':Sequelize['STRING']}};