c5648d8873e178a6f9c486b7b2eec8ffaeea5875
[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 _0x36d3=['day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queue','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','lodash','../client','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf'];(function(_0x115f5f,_0x16c65a){var _0x52ca88=function(_0x31f382){while(--_0x31f382){_0x115f5f['push'](_0x115f5f['shift']());}};_0x52ca88(++_0x16c65a);}(_0x36d3,0xb5));var _0x336d=function(_0x5020bd,_0x383dda){_0x5020bd=_0x5020bd-0x0;var _0x2c4a8b=_0x36d3[_0x5020bd];return _0x2c4a8b;};'use strict';var moment=require(_0x336d('0x0'));var _=require(_0x336d('0x1'));var client=require(_0x336d('0x2'));exports['create']=function(_0x529a58){return client[_0x336d('0x3')](_0x336d('0x4'),{'body':_0x529a58,'log':_0x336d('0x4')});};exports[_0x336d('0x5')]=function(){return function(){return client[_0x336d('0x3')](_0x336d('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x336d('0x7')](_0x336d('0x8'))[_0x336d('0x9')](_0x336d('0xa')),moment()[_0x336d('0xb')](_0x336d('0x8'))[_0x336d('0x9')](_0x336d('0xa'))]}},'attributes':[_0x336d('0xc'),_0x336d('0xd'),'queuecallerjoinAt',_0x336d('0xe'),_0x336d('0xf'),_0x336d('0x10'),_0x336d('0x11'),'queuecallerexitAt',_0x336d('0x12'),_0x336d('0x13')]},'log':_0x336d('0x14')});};};