Built motion from commit (unavailable).|2.5.31
[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 _0x986b=['CreateVoiceQueueReport','getVoiceQueueReports','Request','YYYY-MM-DD\x20HH:mm:ss','endOf','format','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerabandonAt','moment','lodash','../client'];(function(_0x55cca0,_0x2d0a31){var _0x2e69a2=function(_0x33f9f1){while(--_0x33f9f1){_0x55cca0['push'](_0x55cca0['shift']());}};_0x2e69a2(++_0x2d0a31);}(_0x986b,0x156));var _0xb986=function(_0x2e0b9e,_0x56c856){_0x2e0b9e=_0x2e0b9e-0x0;var _0x5e73c5=_0x986b[_0x2e0b9e];return _0x5e73c5;};'use strict';var moment=require(_0xb986('0x0'));var _=require(_0xb986('0x1'));var client=require(_0xb986('0x2'));exports['create']=function(_0x4a1e92){return client['Request'](_0xb986('0x3'),{'body':_0x4a1e92,'log':_0xb986('0x3')});};exports[_0xb986('0x4')]=function(){return function(){return client[_0xb986('0x5')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')['format'](_0xb986('0x6')),moment()[_0xb986('0x7')]('day')[_0xb986('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['uniqueid','queue',_0xb986('0x9'),_0xb986('0xa'),_0xb986('0xb'),_0xb986('0xc'),_0xb986('0xd'),'queuecallerexitAt','queuecallerabandon',_0xb986('0xe')]},'log':'GetVoiceQueueReports'});};};