15ef67ec3058907d7cf749916868af722f996bb9
[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 _0xc6dc=['CreateWhatsappQueueReport','UpdateWhatsappQueueReport','DESC','create','Request'];(function(_0xad14b2,_0x5942c6){var _0x565d60=function(_0x208987){while(--_0x208987){_0xad14b2['push'](_0xad14b2['shift']());}};_0x565d60(++_0x5942c6);}(_0xc6dc,0x1de));var _0xcc6d=function(_0x285390,_0x5b6fde){_0x285390=_0x285390-0x0;var _0x5021ed=_0xc6dc[_0x285390];return _0x5021ed;};'use strict';var client=require('../client');exports[_0xcc6d('0x0')]=function(_0x3ea3a){return client[_0xcc6d('0x1')](_0xcc6d('0x2'),{'body':_0x3ea3a,'log':_0xcc6d('0x2')});};exports['update']=function(_0x49499b,_0x1d7790){return client[_0xcc6d('0x1')](_0xcc6d('0x3'),{'body':_0x1d7790,'options':{'where':{'uniqueid':_0x49499b},'order':[['id',_0xcc6d('0x4')]],'limit':0x1},'log':_0xcc6d('0x3')});};