4caf6a314cc6641e1875a8c6c102fded47c9fa1a
[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 _0xe432=['Request','CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','../client','create'];(function(_0x1f1aa0,_0x15c31f){var _0x5995b0=function(_0x55ad4a){while(--_0x55ad4a){_0x1f1aa0['push'](_0x1f1aa0['shift']());}};_0x5995b0(++_0x15c31f);}(_0xe432,0x170));var _0x2e43=function(_0x5e04cd,_0x253d2e){_0x5e04cd=_0x5e04cd-0x0;var _0x456788=_0xe432[_0x5e04cd];return _0x456788;};'use strict';var client=require(_0x2e43('0x0'));exports[_0x2e43('0x1')]=function(_0x4d5da5){return client[_0x2e43('0x2')](_0x2e43('0x3'),{'body':_0x4d5da5,'log':'CreateOpenchannelQueueReport'});};exports['update']=function(_0x3e179b,_0x3182f4){return client[_0x2e43('0x2')](_0x2e43('0x4'),{'body':_0x3182f4,'options':{'where':{'uniqueid':_0x3e179b},'order':[['id','DESC']],'limit':0x1},'log':'UpdateOpenchannelQueueReport'});};