119b738a2c8e2d95575fa459edeaef3a162f9360
[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 _0xe700=['update','UpdateChatQueueReport','../client','create','Request','CreateChatQueueReport'];(function(_0x5f0089,_0x227e2c){var _0x193892=function(_0x24051f){while(--_0x24051f){_0x5f0089['push'](_0x5f0089['shift']());}};_0x193892(++_0x227e2c);}(_0xe700,0x16a));var _0x0e70=function(_0x1acec7,_0x537d67){_0x1acec7=_0x1acec7-0x0;var _0x34a91b=_0xe700[_0x1acec7];return _0x34a91b;};'use strict';var client=require(_0x0e70('0x0'));exports[_0x0e70('0x1')]=function(_0x245ff7){return client[_0x0e70('0x2')](_0x0e70('0x3'),{'body':_0x245ff7,'log':'CreateChatQueueReport'});};exports[_0x0e70('0x4')]=function(_0x4b5632,_0x20335e){return client[_0x0e70('0x2')]('UpdateChatQueueReport',{'body':_0x20335e,'options':{'where':{'uniqueid':_0x4b5632},'order':[['id','DESC']],'limit':0x1},'log':_0x0e70('0x5')});};