291a7a478bf8d50edca04b2333b1dd86e6727794
[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 _0x8998=['Request','CreateWhatsappQueueReport','update','../client'];(function(_0x22b39b,_0x2b7d63){var _0x280e1d=function(_0xc74635){while(--_0xc74635){_0x22b39b['push'](_0x22b39b['shift']());}};_0x280e1d(++_0x2b7d63);}(_0x8998,0xc7));var _0x8899=function(_0x11e248,_0x5d6ba1){_0x11e248=_0x11e248-0x0;var _0x1a9384=_0x8998[_0x11e248];return _0x1a9384;};'use strict';var client=require(_0x8899('0x0'));exports['create']=function(_0x1167e6){return client[_0x8899('0x1')](_0x8899('0x2'),{'body':_0x1167e6,'log':_0x8899('0x2')});};exports[_0x8899('0x3')]=function(_0x684a7f,_0x54e0b6){return client['Request']('UpdateWhatsappQueueReport',{'body':_0x54e0b6,'options':{'where':{'uniqueid':_0x684a7f},'order':[['id','DESC']],'limit':0x1},'log':'UpdateWhatsappQueueReport'});};