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