f5c67f2b30a44bf2a3436b3040c380c71230826a
[motion2.git] / server / services / routing / rpc / openchannelQueueReport.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 _0xea3d=['Request','UpdateOpenchannelQueueReport','../client','CreateOpenchannelQueueReport','update'];(function(_0x18bd6a,_0x2de225){var _0x57f11b=function(_0x1740c9){while(--_0x1740c9){_0x18bd6a['push'](_0x18bd6a['shift']());}};_0x57f11b(++_0x2de225);}(_0xea3d,0xbb));var _0xdea3=function(_0x452d76,_0x451611){_0x452d76=_0x452d76-0x0;var _0x54b6d5=_0xea3d[_0x452d76];return _0x54b6d5;};'use strict';var client=require(_0xdea3('0x0'));exports['create']=function(_0x3c2846){return client['Request']('CreateOpenchannelQueueReport',{'body':_0x3c2846,'log':_0xdea3('0x1')});};exports[_0xdea3('0x2')]=function(_0xf13b19,_0x40b0cd){return client[_0xdea3('0x3')](_0xdea3('0x4'),{'body':_0x40b0cd,'options':{'where':{'uniqueid':_0xf13b19},'order':[['id','DESC']],'limit':0x1},'log':'UpdateOpenchannelQueueReport'});};