5a3b88990373b1e35f21d9328c4745785b0a0b27
[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 _0x6da5=['UpdateOpenchannelQueueReport','create','CreateOpenchannelQueueReport','Request'];(function(_0x206844,_0x475c15){var _0x4bc89d=function(_0x2c4fdd){while(--_0x2c4fdd){_0x206844['push'](_0x206844['shift']());}};_0x4bc89d(++_0x475c15);}(_0x6da5,0x10d));var _0x56da=function(_0x597146,_0x33f0ad){_0x597146=_0x597146-0x0;var _0x570c9f=_0x6da5[_0x597146];return _0x570c9f;};'use strict';var client=require('../client');exports[_0x56da('0x0')]=function(_0x586ca1){return client['Request']('CreateOpenchannelQueueReport',{'body':_0x586ca1,'log':_0x56da('0x1')});};exports['update']=function(_0xccc8b6,_0x1f4402){return client[_0x56da('0x2')](_0x56da('0x3'),{'body':_0x1f4402,'options':{'where':{'uniqueid':_0xccc8b6},'order':[['id','DESC']],'limit':0x1},'log':_0x56da('0x3')});};