536af2202374e86281effa4b50f0ed9c269aaaac
[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 _0xf6ed=['CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','../client','Request'];(function(_0x44acce,_0x2ee76d){var _0x3c6072=function(_0x52c10e){while(--_0x52c10e){_0x44acce['push'](_0x44acce['shift']());}};_0x3c6072(++_0x2ee76d);}(_0xf6ed,0x1ce));var _0xdf6e=function(_0x2ff361,_0x5b4f76){_0x2ff361=_0x2ff361-0x0;var _0x474f3d=_0xf6ed[_0x2ff361];return _0x474f3d;};'use strict';var client=require(_0xdf6e('0x0'));exports['create']=function(_0x1b5752){return client[_0xdf6e('0x1')](_0xdf6e('0x2'),{'body':_0x1b5752,'log':'CreateOpenchannelQueueReport'});};exports['update']=function(_0x474c72,_0x484a22){return client['Request'](_0xdf6e('0x3'),{'body':_0x484a22,'options':{'where':{'uniqueid':_0x474c72},'order':[['id','DESC']],'limit':0x1},'log':_0xdf6e('0x3')});};