b82b38928ef168f191dd03f8a5a56ae38719d7a9
[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 _0xd1e7=['create','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid','queuecallerjoinAt','queuecallerleaveAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','GetVoiceQueueReports','moment','../client'];(function(_0x209180,_0x4e3c5e){var _0x1ca5aa=function(_0x589d31){while(--_0x589d31){_0x209180['push'](_0x209180['shift']());}};_0x1ca5aa(++_0x4e3c5e);}(_0xd1e7,0x1b3));var _0x7d1e=function(_0x38d7d1,_0x575b21){_0x38d7d1=_0x38d7d1-0x0;var _0x2a75ce=_0xd1e7[_0x38d7d1];return _0x2a75ce;};'use strict';var moment=require(_0x7d1e('0x0'));var _=require('lodash');var client=require(_0x7d1e('0x1'));exports[_0x7d1e('0x2')]=function(_0x44eebb){return client[_0x7d1e('0x3')](_0x7d1e('0x4'),{'body':_0x44eebb,'log':_0x7d1e('0x4')});};exports[_0x7d1e('0x5')]=function(){return function(){return client['Request'](_0x7d1e('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x7d1e('0x7'))[_0x7d1e('0x8')](_0x7d1e('0x9')),moment()[_0x7d1e('0xa')](_0x7d1e('0x7'))[_0x7d1e('0x8')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x7d1e('0xb'),'queue',_0x7d1e('0xc'),_0x7d1e('0xd'),'queuecallercomplete','queuecallercompleteAt',_0x7d1e('0xe'),_0x7d1e('0xf'),_0x7d1e('0x10'),_0x7d1e('0x11')]},'log':_0x7d1e('0x12')});};};