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