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