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