439e7e376ce0deb8ed2d95d48e0a2fb4c9844bd4
[motion2.git] / server / services / routing / rpc / chatQueueReport.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 _0xf430=['create','CreateChatQueueReport','Request','UpdateChatQueueReport','../client'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xf430,0x1e4));var _0x0f43=function(_0x2a55f8,_0x540ac4){_0x2a55f8=_0x2a55f8-0x0;var _0x245efd=_0xf430[_0x2a55f8];return _0x245efd;};'use strict';var client=require(_0x0f43('0x0'));exports[_0x0f43('0x1')]=function(_0x40bcc5){return client['Request'](_0x0f43('0x2'),{'body':_0x40bcc5,'log':_0x0f43('0x2')});};exports['update']=function(_0x4e2851,_0x462c88){return client[_0x0f43('0x3')](_0x0f43('0x4'),{'body':_0x462c88,'options':{'where':{'uniqueid':_0x4e2851},'order':[['id','DESC']],'limit':0x1},'log':_0x0f43('0x4')});};