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