Built motion from commit (unavailable).|2.2.0
[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 _0x4e23=['lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','queue','queuecallerjoinAt','queuecallercompleteAt','queuecallerexit','GetVoiceQueueReports','moment'];(function(_0x1f2ea0,_0x5bd63c){var _0x4acce5=function(_0x1e64af){while(--_0x1e64af){_0x1f2ea0['push'](_0x1f2ea0['shift']());}};_0x4acce5(++_0x5bd63c);}(_0x4e23,0xff));var _0x34e2=function(_0x230610,_0x27d609){_0x230610=_0x230610-0x0;var _0x540afa=_0x4e23[_0x230610];return _0x540afa;};'use strict';var moment=require(_0x34e2('0x0'));var _=require(_0x34e2('0x1'));var client=require(_0x34e2('0x2'));exports[_0x34e2('0x3')]=function(_0x3f1b55){return client[_0x34e2('0x4')](_0x34e2('0x5'),{'body':_0x3f1b55,'log':_0x34e2('0x5')});};exports[_0x34e2('0x6')]=function(){return function(){return client['Request']('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x34e2('0x7'))[_0x34e2('0x8')](_0x34e2('0x9')),moment()[_0x34e2('0xa')](_0x34e2('0x7'))[_0x34e2('0x8')](_0x34e2('0x9'))]}},'attributes':['uniqueid',_0x34e2('0xb'),_0x34e2('0xc'),'queuecallerleaveAt','queuecallercomplete',_0x34e2('0xd'),_0x34e2('0xe'),'queuecallerexitAt','queuecallerabandon','queuecallerabandonAt']},'log':_0x34e2('0xf')});};};