a93d6e542f8691991469fc6a7cb6a215920ecfb0
[motion2.git] / server / services / routing / rpc / chatQueueReport.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 _0x56e6=['create','Request','CreateChatQueueReport','UpdateChatQueueReport','DESC','../client'];(function(_0x36f797,_0x351603){var _0x44ba30=function(_0x32eb10){while(--_0x32eb10){_0x36f797['push'](_0x36f797['shift']());}};_0x44ba30(++_0x351603);}(_0x56e6,0x6b));var _0x656e=function(_0x3a0bae,_0x4b9194){_0x3a0bae=_0x3a0bae-0x0;var _0x384b13=_0x56e6[_0x3a0bae];return _0x384b13;};'use strict';var client=require(_0x656e('0x0'));exports[_0x656e('0x1')]=function(_0x27c324){return client[_0x656e('0x2')](_0x656e('0x3'),{'body':_0x27c324,'log':_0x656e('0x3')});};exports['update']=function(_0x40a874,_0x23c947){return client[_0x656e('0x2')](_0x656e('0x4'),{'body':_0x23c947,'options':{'where':{'uniqueid':_0x40a874},'order':[['id',_0x656e('0x5')]],'limit':0x1},'log':_0x656e('0x4')});};