Built motion from commit (unavailable).|2.4.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 _0x8139=['queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerjoinAt','queuecallercomplete','queuecallercompleteAt','queuecallerexitAt','queuecallerabandon'];(function(_0x4ae185,_0x59bf02){var _0x167a78=function(_0xb00870){while(--_0xb00870){_0x4ae185['push'](_0x4ae185['shift']());}};_0x167a78(++_0x59bf02);}(_0x8139,0x113));var _0x9813=function(_0x290b4f,_0x13f019){_0x290b4f=_0x290b4f-0x0;var _0x4e5222=_0x8139[_0x290b4f];return _0x4e5222;};'use strict';var moment=require(_0x9813('0x0'));var _=require(_0x9813('0x1'));var client=require(_0x9813('0x2'));exports[_0x9813('0x3')]=function(_0x2efdfe){return client[_0x9813('0x4')](_0x9813('0x5'),{'body':_0x2efdfe,'log':'CreateVoiceQueueReport'});};exports[_0x9813('0x6')]=function(){return function(){return client[_0x9813('0x4')](_0x9813('0x7'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x9813('0x8')]('day')[_0x9813('0x9')](_0x9813('0xa')),moment()[_0x9813('0xb')]('day')[_0x9813('0x9')](_0x9813('0xa'))]}},'attributes':[_0x9813('0xc'),_0x9813('0xd'),_0x9813('0xe'),'queuecallerleaveAt',_0x9813('0xf'),_0x9813('0x10'),'queuecallerexit',_0x9813('0x11'),_0x9813('0x12'),_0x9813('0x13')]},'log':_0x9813('0x14')});};};