d625e35128a0e9ce7c6e6a812b71457b3480fb64
[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 _0x975f=['../client','create','CreateChatQueueReport','Request','UpdateChatQueueReport'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0x975f,0x109));var _0xf975=function(_0x216428,_0x5d20ea){_0x216428=_0x216428-0x0;var _0x313dd4=_0x975f[_0x216428];return _0x313dd4;};'use strict';var client=require(_0xf975('0x0'));exports[_0xf975('0x1')]=function(_0x5a840c){return client['Request'](_0xf975('0x2'),{'body':_0x5a840c,'log':_0xf975('0x2')});};exports['update']=function(_0xc42ebe,_0x2d047c){return client[_0xf975('0x3')](_0xf975('0x4'),{'body':_0x2d047c,'options':{'where':{'uniqueid':_0xc42ebe},'order':[['id','DESC']],'limit':0x1},'log':_0xf975('0x4')});};