Built motion from commit 9d7072cc.|2.5.39
[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 _0xf041=['CreateChatQueueReport','UpdateChatQueueReport','Request'];(function(_0x290a59,_0x2eb247){var _0x4af012=function(_0x1aa0bd){while(--_0x1aa0bd){_0x290a59['push'](_0x290a59['shift']());}};_0x4af012(++_0x2eb247);}(_0xf041,0x15b));var _0x1f04=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xf041[_0x20a584];return _0x4b41a8;};'use strict';var client=require('../client');exports['create']=function(_0xc35ebe){return client[_0x1f04('0x0')](_0x1f04('0x1'),{'body':_0xc35ebe,'log':_0x1f04('0x1')});};exports['update']=function(_0x4348a1,_0x5445a0){return client[_0x1f04('0x0')]('UpdateChatQueueReport',{'body':_0x5445a0,'options':{'where':{'uniqueid':_0x4348a1},'order':[['id','DESC']],'limit':0x1},'log':_0x1f04('0x2')});};