Built motion from commit (unavailable).|2.5.9
[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 _0x3625=['uniqueid','queue','queuecallerleaveAt','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','moment','lodash','create','Request','CreateVoiceQueueReport','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf'];(function(_0x558097,_0x5a6cc2){var _0xe80464=function(_0x46db4f){while(--_0x46db4f){_0x558097['push'](_0x558097['shift']());}};_0xe80464(++_0x5a6cc2);}(_0x3625,0x18d));var _0x5362=function(_0x41aa4d,_0x52739e){_0x41aa4d=_0x41aa4d-0x0;var _0x34a999=_0x3625[_0x41aa4d];return _0x34a999;};'use strict';var moment=require(_0x5362('0x0'));var _=require(_0x5362('0x1'));var client=require('../client');exports[_0x5362('0x2')]=function(_0x38f931){return client[_0x5362('0x3')](_0x5362('0x4'),{'body':_0x38f931,'log':_0x5362('0x4')});};exports['getVoiceQueueReports']=function(){return function(){return client[_0x5362('0x3')](_0x5362('0x5'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x5362('0x6')](_0x5362('0x7'))[_0x5362('0x8')](_0x5362('0x9')),moment()[_0x5362('0xa')](_0x5362('0x7'))[_0x5362('0x8')](_0x5362('0x9'))]}},'attributes':[_0x5362('0xb'),_0x5362('0xc'),'queuecallerjoinAt',_0x5362('0xd'),'queuecallercomplete',_0x5362('0xe'),_0x5362('0xf'),_0x5362('0x10'),'queuecallerabandon','queuecallerabandonAt']},'log':'GetVoiceQueueReports'});};};