Built motion from commit (unavailable).|2.4.20
[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 _0x091a=['day','endOf','format','YYYY-MM-DD\x20HH:mm:ss','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallerexit','queuecallerexitAt','queuecallerabandonAt','GetVoiceQueueReports','moment','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf'];(function(_0x1c3abd,_0x2730ec){var _0x551272=function(_0x53f978){while(--_0x53f978){_0x1c3abd['push'](_0x1c3abd['shift']());}};_0x551272(++_0x2730ec);}(_0x091a,0x14e));var _0xa091=function(_0x1e7b16,_0x4607a1){_0x1e7b16=_0x1e7b16-0x0;var _0x37fadc=_0x091a[_0x1e7b16];return _0x37fadc;};'use strict';var moment=require(_0xa091('0x0'));var _=require('lodash');var client=require(_0xa091('0x1'));exports[_0xa091('0x2')]=function(_0x23bb91){return client[_0xa091('0x3')](_0xa091('0x4'),{'body':_0x23bb91,'log':_0xa091('0x4')});};exports[_0xa091('0x5')]=function(){return function(){return client[_0xa091('0x3')](_0xa091('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xa091('0x7')](_0xa091('0x8'))['format']('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0xa091('0x9')](_0xa091('0x8'))[_0xa091('0xa')](_0xa091('0xb'))]}},'attributes':['uniqueid','queue',_0xa091('0xc'),_0xa091('0xd'),_0xa091('0xe'),'queuecallercompleteAt',_0xa091('0xf'),_0xa091('0x10'),'queuecallerabandon',_0xa091('0x11')]},'log':_0xa091('0x12')});};};