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