36759910ca8a7321a801ff8b3e42e91a30587161
[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 _0xaea0=['../client','create','CreateWhatsappQueueReport','UpdateWhatsappQueueReport','DESC'];(function(_0x29a469,_0x2f7ee5){var _0x1b364f=function(_0x4865f8){while(--_0x4865f8){_0x29a469['push'](_0x29a469['shift']());}};_0x1b364f(++_0x2f7ee5);}(_0xaea0,0xfa));var _0x0aea=function(_0x523adf,_0x3e1620){_0x523adf=_0x523adf-0x0;var _0x283870=_0xaea0[_0x523adf];return _0x283870;};'use strict';var client=require(_0x0aea('0x0'));exports[_0x0aea('0x1')]=function(_0x3efb18){return client['Request'](_0x0aea('0x2'),{'body':_0x3efb18,'log':'CreateWhatsappQueueReport'});};exports['update']=function(_0x47bf06,_0x28d2b2){return client['Request'](_0x0aea('0x3'),{'body':_0x28d2b2,'options':{'where':{'uniqueid':_0x47bf06},'order':[['id',_0x0aea('0x4')]],'limit':0x1},'log':'UpdateWhatsappQueueReport'});};