0653868c5da53d22266f55f529feda2c27e506fa
[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 _0x4c4d=['Request','UpdateOpenchannelQueueReport','DESC','../client','CreateOpenchannelQueueReport'];(function(_0x153597,_0x492f6f){var _0x27d9de=function(_0x42f31f){while(--_0x42f31f){_0x153597['push'](_0x153597['shift']());}};_0x27d9de(++_0x492f6f);}(_0x4c4d,0x1a2));var _0xd4c4=function(_0x517e21,_0x52749b){_0x517e21=_0x517e21-0x0;var _0x480f6d=_0x4c4d[_0x517e21];return _0x480f6d;};'use strict';var client=require(_0xd4c4('0x0'));exports['create']=function(_0x4ccde2){return client['Request']('CreateOpenchannelQueueReport',{'body':_0x4ccde2,'log':_0xd4c4('0x1')});};exports['update']=function(_0x3418ee,_0x2a930f){return client[_0xd4c4('0x2')](_0xd4c4('0x3'),{'body':_0x2a930f,'options':{'where':{'uniqueid':_0x3418ee},'order':[['id',_0xd4c4('0x4')]],'limit':0x1},'log':_0xd4c4('0x3')});};