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