Built motion from commit (unavailable).|2.5.22
[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 _0x4070=['../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment'];(function(_0x130942,_0x2bbf7e){var _0xf160b0=function(_0x5e08e9){while(--_0x5e08e9){_0x130942['push'](_0x130942['shift']());}};_0xf160b0(++_0x2bbf7e);}(_0x4070,0x12b));var _0x0407=function(_0x3cde59,_0x4106a2){_0x3cde59=_0x3cde59-0x0;var _0x176754=_0x4070[_0x3cde59];return _0x176754;};'use strict';var moment=require(_0x0407('0x0'));var _=require('lodash');var client=require(_0x0407('0x1'));exports[_0x0407('0x2')]=function(_0x2b9ac5){return client[_0x0407('0x3')](_0x0407('0x4'),{'body':_0x2b9ac5,'log':_0x0407('0x4')});};exports[_0x0407('0x5')]=function(){return function(){return client[_0x0407('0x3')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()[_0x0407('0x6')]('day')[_0x0407('0x7')](_0x0407('0x8')),moment()[_0x0407('0x9')]('day')['format'](_0x0407('0x8'))]}},'attributes':[_0x0407('0xa'),_0x0407('0xb'),_0x0407('0xc'),_0x0407('0xd'),_0x0407('0xe'),'queuecallercompleteAt',_0x0407('0xf'),_0x0407('0x10'),_0x0407('0x11'),_0x0407('0x12')]},'log':_0x0407('0x13')});};};