a21e576ac27c30d84e3122b4df1e84cbbc5beaf3
[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 _0xb5ba=['UpdateWhatsappQueueReport','../client','CreateWhatsappQueueReport','update','Request'];(function(_0x1203b3,_0x1168dc){var _0x59bafa=function(_0xb97023){while(--_0xb97023){_0x1203b3['push'](_0x1203b3['shift']());}};_0x59bafa(++_0x1168dc);}(_0xb5ba,0x173));var _0xab5b=function(_0x525af9,_0x4edd23){_0x525af9=_0x525af9-0x0;var _0x129fbf=_0xb5ba[_0x525af9];return _0x129fbf;};'use strict';var client=require(_0xab5b('0x0'));exports['create']=function(_0xed7202){return client['Request'](_0xab5b('0x1'),{'body':_0xed7202,'log':_0xab5b('0x1')});};exports[_0xab5b('0x2')]=function(_0x3fbe6d,_0x3cde89){return client[_0xab5b('0x3')]('UpdateWhatsappQueueReport',{'body':_0x3cde89,'options':{'where':{'uniqueid':_0x3fbe6d},'order':[['id','DESC']],'limit':0x1},'log':_0xab5b('0x4')});};