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