Built motion from commit (unavailable).|2.5.3
[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 _0x5e2f=['format','uniqueid','queuecallerjoinAt','queuecallerleaveAt','queuecallercompleteAt','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','create','Request','CreateVoiceQueueReport','startOf','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x3bb282,_0x4d230c){var _0x66ee92=function(_0x4fa048){while(--_0x4fa048){_0x3bb282['push'](_0x3bb282['shift']());}};_0x66ee92(++_0x4d230c);}(_0x5e2f,0x133));var _0xf5e2=function(_0x448012,_0x5109cf){_0x448012=_0x448012-0x0;var _0x274222=_0x5e2f[_0x448012];return _0x274222;};'use strict';var moment=require(_0xf5e2('0x0'));var _=require(_0xf5e2('0x1'));var client=require(_0xf5e2('0x2'));exports[_0xf5e2('0x3')]=function(_0x4fc359){return client[_0xf5e2('0x4')](_0xf5e2('0x5'),{'body':_0x4fc359,'log':'CreateVoiceQueueReport'});};exports['getVoiceQueueReports']=function(){return function(){return client[_0xf5e2('0x4')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()[_0xf5e2('0x6')]('day')['format'](_0xf5e2('0x7')),moment()['endOf']('day')[_0xf5e2('0x8')](_0xf5e2('0x7'))]}},'attributes':[_0xf5e2('0x9'),'queue',_0xf5e2('0xa'),_0xf5e2('0xb'),'queuecallercomplete',_0xf5e2('0xc'),'queuecallerexit','queuecallerexitAt','queuecallerabandon',_0xf5e2('0xd')]},'log':_0xf5e2('0xe')});};};