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