4fc4c5465ba752f64262dba4738c41bb33dd859e
[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 _0xfd46=['CreateOpenchannelQueueReport','update','UpdateOpenchannelQueueReport','../client','Request'];(function(_0x3511d3,_0x4107ae){var _0x5d6321=function(_0x1a23da){while(--_0x1a23da){_0x3511d3['push'](_0x3511d3['shift']());}};_0x5d6321(++_0x4107ae);}(_0xfd46,0x7b));var _0x6fd4=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0xfd46[_0x160c73];return _0xd9302;};'use strict';var client=require(_0x6fd4('0x0'));exports['create']=function(_0x107a75){return client[_0x6fd4('0x1')](_0x6fd4('0x2'),{'body':_0x107a75,'log':_0x6fd4('0x2')});};exports[_0x6fd4('0x3')]=function(_0x25eee3,_0x1a01a9){return client[_0x6fd4('0x1')](_0x6fd4('0x4'),{'body':_0x1a01a9,'options':{'where':{'uniqueid':_0x25eee3},'order':[['id','DESC']],'limit':0x1},'log':_0x6fd4('0x4')});};