daf54ab5e7fb08b479d3b50d701326f255e2b421
[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 _0x76a7=['../client','create','Request','CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','DESC'];(function(_0x114867,_0x14a654){var _0x27724c=function(_0x57879a){while(--_0x57879a){_0x114867['push'](_0x114867['shift']());}};_0x27724c(++_0x14a654);}(_0x76a7,0xd2));var _0x776a=function(_0x541c54,_0x4eaa4d){_0x541c54=_0x541c54-0x0;var _0x3bfc47=_0x76a7[_0x541c54];return _0x3bfc47;};'use strict';var client=require(_0x776a('0x0'));exports[_0x776a('0x1')]=function(_0x38d922){return client[_0x776a('0x2')](_0x776a('0x3'),{'body':_0x38d922,'log':_0x776a('0x3')});};exports['update']=function(_0x2e2657,_0x3298d8){return client[_0x776a('0x2')](_0x776a('0x4'),{'body':_0x3298d8,'options':{'where':{'uniqueid':_0x2e2657},'order':[['id',_0x776a('0x5')]],'limit':0x1},'log':_0x776a('0x4')});};