Built motion from commit (unavailable).|2.5.14
[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 _0x3fe6=['CreateWhatsappQueueReport','UpdateWhatsappQueueReport','DESC','../client','Request'];(function(_0xab1481,_0x5a4c71){var _0x4e4ce4=function(_0x333892){while(--_0x333892){_0xab1481['push'](_0xab1481['shift']());}};_0x4e4ce4(++_0x5a4c71);}(_0x3fe6,0x1e3));var _0x63fe=function(_0x4e0026,_0x2b52b6){_0x4e0026=_0x4e0026-0x0;var _0x3f8ee7=_0x3fe6[_0x4e0026];return _0x3f8ee7;};'use strict';var client=require(_0x63fe('0x0'));exports['create']=function(_0x5de0c3){return client[_0x63fe('0x1')](_0x63fe('0x2'),{'body':_0x5de0c3,'log':_0x63fe('0x2')});};exports['update']=function(_0x1030e3,_0x2e6b80){return client[_0x63fe('0x1')](_0x63fe('0x3'),{'body':_0x2e6b80,'options':{'where':{'uniqueid':_0x1030e3},'order':[['id',_0x63fe('0x4')]],'limit':0x1},'log':_0x63fe('0x3')});};