Built motion from commit (unavailable).|2.5.15
[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 _0x9feb=['uniqueid','queuecallerjoinAt','queuecallercomplete','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf'];(function(_0x352e09,_0x37a7da){var _0x1b7094=function(_0x561074){while(--_0x561074){_0x352e09['push'](_0x352e09['shift']());}};_0x1b7094(++_0x37a7da);}(_0x9feb,0x1c0));var _0xb9fe=function(_0x3f0cc8,_0x5b9bf9){_0x3f0cc8=_0x3f0cc8-0x0;var _0x12c76d=_0x9feb[_0x3f0cc8];return _0x12c76d;};'use strict';var moment=require(_0xb9fe('0x0'));var _=require(_0xb9fe('0x1'));var client=require(_0xb9fe('0x2'));exports[_0xb9fe('0x3')]=function(_0x30e021){return client[_0xb9fe('0x4')](_0xb9fe('0x5'),{'body':_0x30e021,'log':'CreateVoiceQueueReport'});};exports[_0xb9fe('0x6')]=function(){return function(){return client[_0xb9fe('0x4')](_0xb9fe('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb9fe('0x8')]('day')[_0xb9fe('0x9')](_0xb9fe('0xa')),moment()[_0xb9fe('0xb')]('day')['format'](_0xb9fe('0xa'))]}},'attributes':[_0xb9fe('0xc'),'queue',_0xb9fe('0xd'),'queuecallerleaveAt',_0xb9fe('0xe'),'queuecallercompleteAt',_0xb9fe('0xf'),_0xb9fe('0x10'),_0xb9fe('0x11'),_0xb9fe('0x12')]},'log':_0xb9fe('0x13')});};};