04aabad765aac4c50365fe381585ebec53a5208b
[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 _0x0877=['create','Request','CreateWhatsappQueueReport','update','UpdateWhatsappQueueReport','../client'];(function(_0x5a87a8,_0xa245f9){var _0x1c8809=function(_0x3c4bb6){while(--_0x3c4bb6){_0x5a87a8['push'](_0x5a87a8['shift']());}};_0x1c8809(++_0xa245f9);}(_0x0877,0x125));var _0x7087=function(_0x5e7f24,_0x7b595){_0x5e7f24=_0x5e7f24-0x0;var _0x11d440=_0x0877[_0x5e7f24];return _0x11d440;};'use strict';var client=require(_0x7087('0x0'));exports[_0x7087('0x1')]=function(_0x27ccc9){return client[_0x7087('0x2')](_0x7087('0x3'),{'body':_0x27ccc9,'log':'CreateWhatsappQueueReport'});};exports[_0x7087('0x4')]=function(_0x729041,_0x2782c8){return client[_0x7087('0x2')]('UpdateWhatsappQueueReport',{'body':_0x2782c8,'options':{'where':{'uniqueid':_0x729041},'order':[['id','DESC']],'limit':0x1},'log':_0x7087('0x5')});};