70f96c73d026fba2a4c8907f7b1ea154dc6c0f16
[motion-next.git] / server / services / ami / rpc / voiceQueueReport.js
1 const a1129_0x2d28=['CreateVoiceQueueReport','queuecallerabandonAt','endOf','startOf','format','day','queuecallercomplete','queuecallerexit','Request','queue','queuecallerexitAt','moment','YYYY-MM-DD\x20HH:mm:ss','queuecallerjoinAt','queuecallercompleteAt','getVoiceQueueReports','uniqueid','GetVoiceQueueReports','queuecallerabandon'];(function(_0x14d5c1,_0x2d2816){const _0x4b14a6=function(_0x546fab){while(--_0x546fab){_0x14d5c1['push'](_0x14d5c1['shift']());}};_0x4b14a6(++_0x2d2816);}(a1129_0x2d28,0x1bf));const a1129_0x4b14=function(_0x14d5c1,_0x2d2816){_0x14d5c1=_0x14d5c1-0x0;let _0x4b14a6=a1129_0x2d28[_0x14d5c1];return _0x4b14a6;};const _0x5c79eb=a1129_0x4b14;'use strict';const moment=require(_0x5c79eb('0x1')),client=require('../client');exports['create']=function(_0x546fab){const _0x930d62=_0x5c79eb;return client[_0x930d62('0x11')](_0x930d62('0x9'),{'body':_0x546fab,'log':'CreateVoiceQueueReport'});},exports[_0x5c79eb('0x5')]=function(){return function(){const _0x2f9513=a1129_0x4b14;return client[_0x2f9513('0x11')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()[_0x2f9513('0xc')](_0x2f9513('0xe'))['format'](_0x2f9513('0x2')),moment()[_0x2f9513('0xb')](_0x2f9513('0xe'))[_0x2f9513('0xd')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x2f9513('0x6'),_0x2f9513('0x12'),_0x2f9513('0x3'),'queuecallerleaveAt',_0x2f9513('0xf'),_0x2f9513('0x4'),_0x2f9513('0x10'),_0x2f9513('0x0'),_0x2f9513('0x8'),_0x2f9513('0xa')]},'log':_0x2f9513('0x7')});};};