5cba478446360cb4205361ed9bf92ad1b28e251f
[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 _0x469e=['UpdateWhatsappQueueReport','DESC','../client','Request','CreateWhatsappQueueReport'];(function(_0x546adb,_0xb051a5){var _0x68b64b=function(_0x973c95){while(--_0x973c95){_0x546adb['push'](_0x546adb['shift']());}};_0x68b64b(++_0xb051a5);}(_0x469e,0x7a));var _0xe469=function(_0x242a98,_0x13988e){_0x242a98=_0x242a98-0x0;var _0x580999=_0x469e[_0x242a98];return _0x580999;};'use strict';var client=require(_0xe469('0x0'));exports['create']=function(_0x38407b){return client[_0xe469('0x1')](_0xe469('0x2'),{'body':_0x38407b,'log':_0xe469('0x2')});};exports['update']=function(_0x41d55e,_0x563469){return client[_0xe469('0x1')](_0xe469('0x3'),{'body':_0x563469,'options':{'where':{'uniqueid':_0x41d55e},'order':[['id',_0xe469('0x4')]],'limit':0x1},'log':_0xe469('0x3')});};