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 _0x7e92=['lodash','../client','create','Request','CreateVoiceCallReport','merge','calleridnum','context','callerid','DOCUMENTATION','getVoiceCallReports','GetVoiceCallReport','outbound','day','format','YYYY-MM-DD\x20HH:mm:ss','disposition','billableseconds','GetVoiceCallReports'];(function(_0x4e594c,_0xbe926){var _0x10e116=function(_0x4952dc){while(--_0x4952dc){_0x4e594c['push'](_0x4e594c['shift']());}};_0x10e116(++_0xbe926);}(_0x7e92,0xd1));var _0x27e9=function(_0x4c32cc,_0x3aafc7){_0x4c32cc=_0x4c32cc-0x0;var _0x1332dc=_0x7e92[_0x4c32cc];return _0x1332dc;};'use strict';var moment=require('moment');var util=require('util');var _=require(_0x27e9('0x0'));var client=require(_0x27e9('0x1'));exports[_0x27e9('0x2')]=function(_0x2138da){return client[_0x27e9('0x3')](_0x27e9('0x4'),{'body':_[_0x27e9('0x5')](_0x2138da,{'source':_0x2138da[_0x27e9('0x6')],'destinationcontext':_0x2138da[_0x27e9('0x7')],'callerid':_0x2138da[_0x27e9('0x8')],'amaflags':_0x27e9('0x9')}),'log':_0x27e9('0x4')});};exports[_0x27e9('0xa')]=function(){return function(){return client['Request'](_0x27e9('0xb'),{'options':{'where':{'type':[_0x27e9('0xc')],'createdAt':{'$between':[moment()['startOf'](_0x27e9('0xd'))[_0x27e9('0xe')](_0x27e9('0xf')),moment()['endOf'](_0x27e9('0xd'))['format'](_0x27e9('0xf'))]}},'attributes':['type',_0x27e9('0x10'),'duration',_0x27e9('0x11')]},'log':_0x27e9('0x12')});};};