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