a090134382592aad4c4e1561f91044676c26543b
[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 _0x021b=['GetVoiceQueueReport','startOf','YYYY-MM-DD\x20HH:mm:ss','endOf','format','queue','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','Request','CreateVoiceQueueReport','getVoiceQueueReports'];(function(_0x205e5a,_0x5c19fb){var _0x10da58=function(_0x1ba35d){while(--_0x1ba35d){_0x205e5a['push'](_0x205e5a['shift']());}};_0x10da58(++_0x5c19fb);}(_0x021b,0x95));var _0xb021=function(_0xf9f261,_0x25250f){_0xf9f261=_0xf9f261-0x0;var _0x15d265=_0x021b[_0xf9f261];return _0x15d265;};'use strict';var moment=require(_0xb021('0x0'));var _=require('lodash');var client=require('../client');exports['create']=function(_0x4fa858){return client[_0xb021('0x1')](_0xb021('0x2'),{'body':_0x4fa858,'log':_0xb021('0x2')});};exports[_0xb021('0x3')]=function(){return function(){return client[_0xb021('0x1')](_0xb021('0x4'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xb021('0x5')]('day')['format'](_0xb021('0x6')),moment()[_0xb021('0x7')]('day')[_0xb021('0x8')](_0xb021('0x6'))]}},'attributes':['uniqueid',_0xb021('0x9'),'queuecallerjoinAt','queuecallerleaveAt',_0xb021('0xa'),_0xb021('0xb'),_0xb021('0xc'),_0xb021('0xd'),_0xb021('0xe'),_0xb021('0xf')]},'log':_0xb021('0x10')});};};