Built motion from commit (unavailable).|2.5.14
[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 _0x2b29=['queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','lodash','../client','create','CreateVoiceQueueReport','getVoiceQueueReports','Request','GetVoiceQueueReport','startOf','format','endOf','day','YYYY-MM-DD\x20HH:mm:ss','uniqueid','queue','queuecallerjoinAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt'];(function(_0x5ef5b5,_0x166017){var _0x2a2606=function(_0x476968){while(--_0x476968){_0x5ef5b5['push'](_0x5ef5b5['shift']());}};_0x2a2606(++_0x166017);}(_0x2b29,0x163));var _0x92b2=function(_0x58d804,_0x4341f2){_0x58d804=_0x58d804-0x0;var _0x4352ad=_0x2b29[_0x58d804];return _0x4352ad;};'use strict';var moment=require('moment');var _=require(_0x92b2('0x0'));var client=require(_0x92b2('0x1'));exports[_0x92b2('0x2')]=function(_0x17e1d8){return client['Request'](_0x92b2('0x3'),{'body':_0x17e1d8,'log':_0x92b2('0x3')});};exports[_0x92b2('0x4')]=function(){return function(){return client[_0x92b2('0x5')](_0x92b2('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x92b2('0x7')]('day')[_0x92b2('0x8')]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x92b2('0x9')](_0x92b2('0xa'))['format'](_0x92b2('0xb'))]}},'attributes':[_0x92b2('0xc'),_0x92b2('0xd'),_0x92b2('0xe'),'queuecallerleaveAt',_0x92b2('0xf'),_0x92b2('0x10'),_0x92b2('0x11'),_0x92b2('0x12'),_0x92b2('0x13'),_0x92b2('0x14')]},'log':_0x92b2('0x15')});};};