d0dea4e6e8057d4a75a67ba83b8e37c95d6b5e61
[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 _0x842c=['queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','moment','lodash','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','day','YYYY-MM-DD\x20HH:mm:ss','endOf','format','queue','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit'];(function(_0x127af0,_0x2127fb){var _0x28902a=function(_0x3a9dc0){while(--_0x3a9dc0){_0x127af0['push'](_0x127af0['shift']());}};_0x28902a(++_0x2127fb);}(_0x842c,0x1de));var _0xc842=function(_0x51d350,_0x307294){_0x51d350=_0x51d350-0x0;var _0x29ef73=_0x842c[_0x51d350];return _0x29ef73;};'use strict';var moment=require(_0xc842('0x0'));var _=require(_0xc842('0x1'));var client=require('../client');exports[_0xc842('0x2')]=function(_0x3c343d){return client[_0xc842('0x3')]('CreateVoiceQueueReport',{'body':_0x3c343d,'log':_0xc842('0x4')});};exports[_0xc842('0x5')]=function(){return function(){return client[_0xc842('0x3')](_0xc842('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0xc842('0x7'))['format'](_0xc842('0x8')),moment()[_0xc842('0x9')](_0xc842('0x7'))[_0xc842('0xa')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['uniqueid',_0xc842('0xb'),'queuecallerjoinAt',_0xc842('0xc'),_0xc842('0xd'),_0xc842('0xe'),_0xc842('0xf'),_0xc842('0x10'),_0xc842('0x11'),_0xc842('0x12')]},'log':'GetVoiceQueueReports'});};};