Built motion from commit (unavailable).|2.5.1
[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 _0x786e=['queuecallercomplete','queuecallercompleteAt','queuecallerexitAt','queuecallerabandon','moment','lodash','create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerjoinAt','queuecallerleaveAt'];(function(_0x5317b5,_0x4dfd6e){var _0x3b7ce2=function(_0xc146d6){while(--_0xc146d6){_0x5317b5['push'](_0x5317b5['shift']());}};_0x3b7ce2(++_0x4dfd6e);}(_0x786e,0x1bc));var _0xe786=function(_0x53210a,_0x4a49f1){_0x53210a=_0x53210a-0x0;var _0x82411c=_0x786e[_0x53210a];return _0x82411c;};'use strict';var moment=require(_0xe786('0x0'));var _=require(_0xe786('0x1'));var client=require('../client');exports[_0xe786('0x2')]=function(_0x1e35ee){return client[_0xe786('0x3')]('CreateVoiceQueueReport',{'body':_0x1e35ee,'log':_0xe786('0x4')});};exports[_0xe786('0x5')]=function(){return function(){return client['Request'](_0xe786('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xe786('0x7')](_0xe786('0x8'))[_0xe786('0x9')](_0xe786('0xa')),moment()[_0xe786('0xb')](_0xe786('0x8'))[_0xe786('0x9')](_0xe786('0xa'))]}},'attributes':[_0xe786('0xc'),_0xe786('0xd'),_0xe786('0xe'),_0xe786('0xf'),_0xe786('0x10'),_0xe786('0x11'),'queuecallerexit',_0xe786('0x12'),_0xe786('0x13'),'queuecallerabandonAt']},'log':'GetVoiceQueueReports'});};};