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 _0xaa29=['duration','GetVoiceCallReports','moment','util','lodash','../client','create','Request','merge','calleridnum','context','callerid','DOCUMENTATION','getVoiceCallReports','GetVoiceCallReport','outbound','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','type'];(function(_0x527733,_0x16051c){var _0x5400ba=function(_0x265d39){while(--_0x265d39){_0x527733['push'](_0x527733['shift']());}};_0x5400ba(++_0x16051c);}(_0xaa29,0xaa));var _0x9aa2=function(_0x4086f9,_0x12ed41){_0x4086f9=_0x4086f9-0x0;var _0x4f74ea=_0xaa29[_0x4086f9];return _0x4f74ea;};'use strict';var moment=require(_0x9aa2('0x0'));var util=require(_0x9aa2('0x1'));var _=require(_0x9aa2('0x2'));var client=require(_0x9aa2('0x3'));exports[_0x9aa2('0x4')]=function(_0x199537){return client[_0x9aa2('0x5')]('CreateVoiceCallReport',{'body':_[_0x9aa2('0x6')](_0x199537,{'source':_0x199537[_0x9aa2('0x7')],'destinationcontext':_0x199537[_0x9aa2('0x8')],'callerid':_0x199537[_0x9aa2('0x9')],'amaflags':_0x9aa2('0xa')}),'log':'CreateVoiceCallReport'});};exports[_0x9aa2('0xb')]=function(){return function(){return client[_0x9aa2('0x5')](_0x9aa2('0xc'),{'options':{'where':{'type':[_0x9aa2('0xd')],'createdAt':{'$between':[moment()['startOf'](_0x9aa2('0xe'))[_0x9aa2('0xf')](_0x9aa2('0x10')),moment()[_0x9aa2('0x11')](_0x9aa2('0xe'))[_0x9aa2('0xf')](_0x9aa2('0x10'))]}},'attributes':[_0x9aa2('0x12'),'disposition',_0x9aa2('0x13'),'billableseconds']},'log':_0x9aa2('0x14')});};};