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