b79f5c9ef728a1b541b9a03abfda0d577db45ea4
[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 _0x562d=['update','Request','UpdateChatQueueReport','../client','create','CreateChatQueueReport'];(function(_0x3cd741,_0x3cf05f){var _0x2f2b59=function(_0x10dd40){while(--_0x10dd40){_0x3cd741['push'](_0x3cd741['shift']());}};_0x2f2b59(++_0x3cf05f);}(_0x562d,0xe1));var _0xd562=function(_0x61ed7f,_0x31fa63){_0x61ed7f=_0x61ed7f-0x0;var _0x1d3e82=_0x562d[_0x61ed7f];return _0x1d3e82;};'use strict';var client=require(_0xd562('0x0'));exports[_0xd562('0x1')]=function(_0x41a5c7){return client['Request']('CreateChatQueueReport',{'body':_0x41a5c7,'log':_0xd562('0x2')});};exports[_0xd562('0x3')]=function(_0x73c3fa,_0x4c6430){return client[_0xd562('0x4')]('UpdateChatQueueReport',{'body':_0x4c6430,'options':{'where':{'uniqueid':_0x73c3fa},'order':[['id','DESC']],'limit':0x1},'log':_0xd562('0x5')});};