9f67f3ca7ddd8acebf4a7743c3e39c97fd7d97b1
[motion2.git] / server / services / routing / rpc / mailQueueReport.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 _0xf707=['UpdateMailQueueReport','../client','Request','CreateMailQueueReport'];(function(_0x68378,_0x766977){var _0x29ee33=function(_0x51d71b){while(--_0x51d71b){_0x68378['push'](_0x68378['shift']());}};_0x29ee33(++_0x766977);}(_0xf707,0x115));var _0x7f70=function(_0x37542b,_0x97817){_0x37542b=_0x37542b-0x0;var _0x281d80=_0xf707[_0x37542b];return _0x281d80;};'use strict';var client=require(_0x7f70('0x0'));exports['create']=function(_0x165907){return client[_0x7f70('0x1')](_0x7f70('0x2'),{'body':_0x165907,'log':'CreateMailQueueReport'});};exports['update']=function(_0x349fda,_0x270aca){return client['Request'](_0x7f70('0x3'),{'body':_0x270aca,'options':{'where':{'uniqueid':_0x349fda},'order':[['id','DESC']],'limit':0x1},'log':_0x7f70('0x3')});};