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