Built motion from commit (unavailable).|2.5.23
[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 _0xbdb8=['queue','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','queuecallerexit','queuecallerexitAt','queuecallerabandon','queuecallerabandonAt','lodash','../client','Request','CreateVoiceQueueReport','getVoiceQueueReports','GetVoiceQueueReport','startOf','day','format','YYYY-MM-DD\x20HH:mm:ss','endOf','uniqueid'];(function(_0x50efff,_0x16022a){var _0x337538=function(_0x39cb02){while(--_0x39cb02){_0x50efff['push'](_0x50efff['shift']());}};_0x337538(++_0x16022a);}(_0xbdb8,0xf0));var _0x8bdb=function(_0x4cf628,_0x56c30f){_0x4cf628=_0x4cf628-0x0;var _0x44d7f3=_0xbdb8[_0x4cf628];return _0x44d7f3;};'use strict';var moment=require('moment');var _=require(_0x8bdb('0x0'));var client=require(_0x8bdb('0x1'));exports['create']=function(_0x15e50c){return client[_0x8bdb('0x2')](_0x8bdb('0x3'),{'body':_0x15e50c,'log':_0x8bdb('0x3')});};exports[_0x8bdb('0x4')]=function(){return function(){return client[_0x8bdb('0x2')](_0x8bdb('0x5'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8bdb('0x6')](_0x8bdb('0x7'))[_0x8bdb('0x8')](_0x8bdb('0x9')),moment()[_0x8bdb('0xa')](_0x8bdb('0x7'))[_0x8bdb('0x8')](_0x8bdb('0x9'))]}},'attributes':[_0x8bdb('0xb'),_0x8bdb('0xc'),_0x8bdb('0xd'),_0x8bdb('0xe'),_0x8bdb('0xf'),_0x8bdb('0x10'),_0x8bdb('0x11'),_0x8bdb('0x12'),_0x8bdb('0x13'),_0x8bdb('0x14')]},'log':'GetVoiceQueueReports'});};};