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