Built motion from commit (unavailable).|2.5.11
[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 _0x63b5=['queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','format','YYYY-MM-DD\x20HH:mm:ss','endOf','day','queuecallerjoinAt','queuecallercomplete'];(function(_0xf3ae64,_0x372a33){var _0x1dac25=function(_0x317180){while(--_0x317180){_0xf3ae64['push'](_0xf3ae64['shift']());}};_0x1dac25(++_0x372a33);}(_0x63b5,0x125));var _0x563b=function(_0x2a6f41,_0x1f96d2){_0x2a6f41=_0x2a6f41-0x0;var _0x4c2955=_0x63b5[_0x2a6f41];return _0x4c2955;};'use strict';var moment=require(_0x563b('0x0'));var _=require('lodash');var client=require(_0x563b('0x1'));exports[_0x563b('0x2')]=function(_0x1c8b67){return client[_0x563b('0x3')](_0x563b('0x4'),{'body':_0x1c8b67,'log':_0x563b('0x4')});};exports[_0x563b('0x5')]=function(){return function(){return client[_0x563b('0x3')](_0x563b('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')[_0x563b('0x7')](_0x563b('0x8')),moment()[_0x563b('0x9')](_0x563b('0xa'))[_0x563b('0x7')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['uniqueid','queue',_0x563b('0xb'),'queuecallerleaveAt',_0x563b('0xc'),'queuecallercompleteAt',_0x563b('0xd'),_0x563b('0xe'),_0x563b('0xf'),_0x563b('0x10')]},'log':_0x563b('0x11')});};};