Built motion from commit (unavailable).|2.5.3
[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 _0x0360=['GetVoiceQueueReports','lodash','../client','create','CreateVoiceQueueReport','getVoiceQueueReports','Request','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt'];(function(_0x317497,_0x2d6cf7){var _0x3445b0=function(_0x22fe4d){while(--_0x22fe4d){_0x317497['push'](_0x317497['shift']());}};_0x3445b0(++_0x2d6cf7);}(_0x0360,0x11e));var _0x0036=function(_0x51b3fd,_0x5a7fff){_0x51b3fd=_0x51b3fd-0x0;var _0x547c1b=_0x0360[_0x51b3fd];return _0x547c1b;};'use strict';var moment=require('moment');var _=require(_0x0036('0x0'));var client=require(_0x0036('0x1'));exports[_0x0036('0x2')]=function(_0x5ca816){return client['Request'](_0x0036('0x3'),{'body':_0x5ca816,'log':'CreateVoiceQueueReport'});};exports[_0x0036('0x4')]=function(){return function(){return client[_0x0036('0x5')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x0036('0x6'))[_0x0036('0x7')](_0x0036('0x8')),moment()[_0x0036('0x9')](_0x0036('0x6'))['format'](_0x0036('0x8'))]}},'attributes':[_0x0036('0xa'),'queue','queuecallerjoinAt',_0x0036('0xb'),_0x0036('0xc'),_0x0036('0xd'),_0x0036('0xe'),_0x0036('0xf'),_0x0036('0x10'),_0x0036('0x11')]},'log':_0x0036('0x12')});};};