Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / voiceCallReport.js
1 const a1124_0x2f30=['duration','outbound','CreateVoiceCallReport','moment','endOf','startOf','context','merge','day','GetVoiceCallReport','Request','YYYY-MM-DD\x20HH:mm:ss','format','../client','GetVoiceCallReports','disposition','callerid','lodash','DOCUMENTATION','billableseconds'];(function(_0x33954d,_0x2f3083){const _0x235601=function(_0x2f6cfb){while(--_0x2f6cfb){_0x33954d['push'](_0x33954d['shift']());}};_0x235601(++_0x2f3083);}(a1124_0x2f30,0xde));const a1124_0x2356=function(_0x33954d,_0x2f3083){_0x33954d=_0x33954d-0x0;let _0x235601=a1124_0x2f30[_0x33954d];return _0x235601;};const _0x253294=a1124_0x2356;'use strict';const moment=require(_0x253294('0x1')),_=require(_0x253294('0xf')),client=require(_0x253294('0xb'));exports['create']=function(_0x2f6cfb){const _0x1e3da4=_0x253294;return client[_0x1e3da4('0x8')](_0x1e3da4('0x0'),{'body':_[_0x1e3da4('0x5')](_0x2f6cfb,{'source':_0x2f6cfb['calleridnum'],'destinationcontext':_0x2f6cfb[_0x1e3da4('0x4')],'callerid':_0x2f6cfb[_0x1e3da4('0xe')],'amaflags':_0x1e3da4('0x10')}),'log':'CreateVoiceCallReport'});},exports['getVoiceCallReports']=function(){return function(){const _0x1f11e6=a1124_0x2356;return client['Request'](_0x1f11e6('0x7'),{'options':{'where':{'type':[_0x1f11e6('0x13')],'createdAt':{'$between':[moment()[_0x1f11e6('0x3')](_0x1f11e6('0x6'))[_0x1f11e6('0xa')](_0x1f11e6('0x9')),moment()[_0x1f11e6('0x2')](_0x1f11e6('0x6'))[_0x1f11e6('0xa')](_0x1f11e6('0x9'))]}},'attributes':['type',_0x1f11e6('0xd'),_0x1f11e6('0x12'),_0x1f11e6('0x11')]},'log':_0x1f11e6('0xc')});};};