44b01b57adf7f6cc6281903fa867dbe447818633
[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 _0x342b=['CreateChatQueueReport','UpdateChatQueueReport','DESC','../client','Request'];(function(_0x1af322,_0x16d095){var _0x28ac48=function(_0x32a921){while(--_0x32a921){_0x1af322['push'](_0x1af322['shift']());}};_0x28ac48(++_0x16d095);}(_0x342b,0xbc));var _0xb342=function(_0x351dd4,_0x3646f2){_0x351dd4=_0x351dd4-0x0;var _0x2fd99b=_0x342b[_0x351dd4];return _0x2fd99b;};'use strict';var client=require(_0xb342('0x0'));exports['create']=function(_0x43d992){return client[_0xb342('0x1')](_0xb342('0x2'),{'body':_0x43d992,'log':'CreateChatQueueReport'});};exports['update']=function(_0x4d78d2,_0x5b7c7f){return client[_0xb342('0x1')](_0xb342('0x3'),{'body':_0x5b7c7f,'options':{'where':{'uniqueid':_0x4d78d2},'order':[['id',_0xb342('0x4')]],'limit':0x1},'log':_0xb342('0x3')});};