Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / voiceQueueReport.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x4e43=['queuecallercomplete','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','lodash','../client','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerjoinAt'];(function(_0x21bfab,_0x2fee48){var _0x4db318=function(_0x10396d){while(--_0x10396d){_0x21bfab['push'](_0x21bfab['shift']());}};_0x4db318(++_0x2fee48);}(_0x4e43,0x132));var _0x34e4=function(_0x4a973e,_0x29034b){_0x4a973e=_0x4a973e-0x0;var _0x36b56e=_0x4e43[_0x4a973e];return _0x36b56e;};'use strict';var moment=require('moment');var _=require(_0x34e4('0x0'));var client=require(_0x34e4('0x1'));exports['create']=function(_0x50e4a8){return client[_0x34e4('0x2')](_0x34e4('0x3'),{'body':_0x50e4a8,'log':'CreateVoiceQueueReport'});};exports[_0x34e4('0x4')]=function(){return function(){return client[_0x34e4('0x2')](_0x34e4('0x5'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x34e4('0x6')](_0x34e4('0x7'))[_0x34e4('0x8')](_0x34e4('0x9')),moment()[_0x34e4('0xa')](_0x34e4('0x7'))['format']('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x34e4('0xb'),_0x34e4('0xc'),_0x34e4('0xd'),'queuecallerleaveAt',_0x34e4('0xe'),'queuecallercompleteAt',_0x34e4('0xf'),_0x34e4('0x10'),_0x34e4('0x11'),_0x34e4('0x12')]},'log':_0x34e4('0x13')});};};