9a9b78a92ed76a82e7b83541cd615e12a7eab8ef
[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 _0xc30f=['create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','YYYY-MM-DD\x20HH:mm:ss','endOf','day','format','uniqueid','queue','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client'];(function(_0x4bc479,_0x50aec4){var _0x4dedbe=function(_0x471314){while(--_0x471314){_0x4bc479['push'](_0x4bc479['shift']());}};_0x4dedbe(++_0x50aec4);}(_0xc30f,0x1a1));var _0xfc30=function(_0x1920ec,_0x4d5de1){_0x1920ec=_0x1920ec-0x0;var _0x3c6d1d=_0xc30f[_0x1920ec];return _0x3c6d1d;};'use strict';var moment=require(_0xfc30('0x0'));var _=require(_0xfc30('0x1'));var client=require(_0xfc30('0x2'));exports[_0xfc30('0x3')]=function(_0x4d5137){return client[_0xfc30('0x4')]('CreateVoiceQueueReport',{'body':_0x4d5137,'log':_0xfc30('0x5')});};exports[_0xfc30('0x6')]=function(){return function(){return client['Request'](_0xfc30('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')['format'](_0xfc30('0x8')),moment()[_0xfc30('0x9')](_0xfc30('0xa'))[_0xfc30('0xb')](_0xfc30('0x8'))]}},'attributes':[_0xfc30('0xc'),_0xfc30('0xd'),_0xfc30('0xe'),_0xfc30('0xf'),_0xfc30('0x10'),_0xfc30('0x11'),'queuecallerexit','queuecallerexitAt',_0xfc30('0x12'),_0xfc30('0x13')]},'log':_0xfc30('0x14')});};};