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