0773236c9d1fbb5c6460b68dd460a577e11e1d7f
[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 _0xc9d2=['../client','Request','CreateWhatsappQueueReport','UpdateWhatsappQueueReport','DESC'];(function(_0x660ce3,_0x186b9f){var _0xa9ceb5=function(_0x2c9db0){while(--_0x2c9db0){_0x660ce3['push'](_0x660ce3['shift']());}};_0xa9ceb5(++_0x186b9f);}(_0xc9d2,0x10e));var _0x2c9d=function(_0x576443,_0x1a2661){_0x576443=_0x576443-0x0;var _0x379cf4=_0xc9d2[_0x576443];return _0x379cf4;};'use strict';var client=require(_0x2c9d('0x0'));exports['create']=function(_0x985958){return client[_0x2c9d('0x1')](_0x2c9d('0x2'),{'body':_0x985958,'log':_0x2c9d('0x2')});};exports['update']=function(_0x43ab01,_0x4d11d6){return client[_0x2c9d('0x1')](_0x2c9d('0x3'),{'body':_0x4d11d6,'options':{'where':{'uniqueid':_0x43ab01},'order':[['id',_0x2c9d('0x4')]],'limit':0x1},'log':_0x2c9d('0x3')});};