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