Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / routing / rpc / whatsappQueueReport.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 _0xc37e=['Request','UpdateWhatsappQueueReport','../client','CreateWhatsappQueueReport'];(function(_0xa5d0c7,_0x51b88b){var _0x1bbbc4=function(_0x2af083){while(--_0x2af083){_0xa5d0c7['push'](_0xa5d0c7['shift']());}};_0x1bbbc4(++_0x51b88b);}(_0xc37e,0xfa));var _0xec37=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0xc37e[_0x199572];return _0x13cfa3;};'use strict';var client=require(_0xec37('0x0'));exports['create']=function(_0x436477){return client['Request']('CreateWhatsappQueueReport',{'body':_0x436477,'log':_0xec37('0x1')});};exports['update']=function(_0xe5e23,_0x17d82e){return client[_0xec37('0x2')](_0xec37('0x3'),{'body':_0x17d82e,'options':{'where':{'uniqueid':_0xe5e23},'order':[['id','DESC']],'limit':0x1},'log':_0xec37('0x3')});};