Built motion from commit (unavailable).|2.5.21
[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 _0x6737=['queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerjoinAt'];(function(_0xa148b7,_0x2f3eb2){var _0x51efd3=function(_0x34bcec){while(--_0x34bcec){_0xa148b7['push'](_0xa148b7['shift']());}};_0x51efd3(++_0x2f3eb2);}(_0x6737,0x11b));var _0x7673=function(_0x2c88cd,_0x53ee0d){_0x2c88cd=_0x2c88cd-0x0;var _0x4872ff=_0x6737[_0x2c88cd];return _0x4872ff;};'use strict';var moment=require(_0x7673('0x0'));var _=require(_0x7673('0x1'));var client=require(_0x7673('0x2'));exports[_0x7673('0x3')]=function(_0x5baf21){return client[_0x7673('0x4')](_0x7673('0x5'),{'body':_0x5baf21,'log':_0x7673('0x5')});};exports[_0x7673('0x6')]=function(){return function(){return client['Request'](_0x7673('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x7673('0x8')](_0x7673('0x9'))[_0x7673('0xa')](_0x7673('0xb')),moment()[_0x7673('0xc')](_0x7673('0x9'))[_0x7673('0xa')](_0x7673('0xb'))]}},'attributes':[_0x7673('0xd'),_0x7673('0xe'),_0x7673('0xf'),'queuecallerleaveAt',_0x7673('0x10'),_0x7673('0x11'),_0x7673('0x12'),_0x7673('0x13'),_0x7673('0x14'),_0x7673('0x15')]},'log':_0x7673('0x16')});};};