3961ffc29a84dadcc874f34e9f1683746b391707
[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 _0xad25=['../client','Request','CreateWhatsappQueueReport','update','UpdateWhatsappQueueReport'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xad25,0x82));var _0x5ad2=function(_0xbd08b4,_0x4790ed){_0xbd08b4=_0xbd08b4-0x0;var _0x314f1e=_0xad25[_0xbd08b4];return _0x314f1e;};'use strict';var client=require(_0x5ad2('0x0'));exports['create']=function(_0x24b5b1){return client[_0x5ad2('0x1')](_0x5ad2('0x2'),{'body':_0x24b5b1,'log':'CreateWhatsappQueueReport'});};exports[_0x5ad2('0x3')]=function(_0x223c8d,_0x28b1ce){return client[_0x5ad2('0x1')](_0x5ad2('0x4'),{'body':_0x28b1ce,'options':{'where':{'uniqueid':_0x223c8d},'order':[['id','DESC']],'limit':0x1},'log':_0x5ad2('0x4')});};