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