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