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 _0xe575=['format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','type','disposition','duration','billableseconds','GetVoiceCallReports','moment','util','lodash','../client','create','Request','merge','calleridnum','context','callerid','DOCUMENTATION','CreateVoiceCallReport','getVoiceCallReports','outbound','startOf'];(function(_0x5d7b91,_0xbb4c55){var _0x1d9e63=function(_0x41a3c3){while(--_0x41a3c3){_0x5d7b91['push'](_0x5d7b91['shift']());}};_0x1d9e63(++_0xbb4c55);}(_0xe575,0x189));var _0x5e57=function(_0x124ccf,_0x43a709){_0x124ccf=_0x124ccf-0x0;var _0x30cacb=_0xe575[_0x124ccf];return _0x30cacb;};'use strict';var moment=require(_0x5e57('0x0'));var util=require(_0x5e57('0x1'));var _=require(_0x5e57('0x2'));var client=require(_0x5e57('0x3'));exports[_0x5e57('0x4')]=function(_0x5c3137){return client[_0x5e57('0x5')]('CreateVoiceCallReport',{'body':_[_0x5e57('0x6')](_0x5c3137,{'source':_0x5c3137[_0x5e57('0x7')],'destinationcontext':_0x5c3137[_0x5e57('0x8')],'callerid':_0x5c3137[_0x5e57('0x9')],'amaflags':_0x5e57('0xa')}),'log':_0x5e57('0xb')});};exports[_0x5e57('0xc')]=function(){return function(){return client[_0x5e57('0x5')]('GetVoiceCallReport',{'options':{'where':{'type':[_0x5e57('0xd')],'createdAt':{'$between':[moment()[_0x5e57('0xe')]('day')[_0x5e57('0xf')](_0x5e57('0x10')),moment()[_0x5e57('0x11')](_0x5e57('0x12'))[_0x5e57('0xf')](_0x5e57('0x10'))]}},'attributes':[_0x5e57('0x13'),_0x5e57('0x14'),_0x5e57('0x15'),_0x5e57('0x16')]},'log':_0x5e57('0x17')});};};