2748cc09e2603afcf9f335e150cb8506ad6ca453
[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 _0xf86f=['../client','Request','CreateMailQueueReport','update','UpdateMailQueueReport','DESC'];(function(_0x5e832c,_0x5c9cb1){var _0x4d7d1d=function(_0x30021c){while(--_0x30021c){_0x5e832c['push'](_0x5e832c['shift']());}};_0x4d7d1d(++_0x5c9cb1);}(_0xf86f,0x102));var _0xff86=function(_0x534c8f,_0x500079){_0x534c8f=_0x534c8f-0x0;var _0x5a57f5=_0xf86f[_0x534c8f];return _0x5a57f5;};'use strict';var client=require(_0xff86('0x0'));exports['create']=function(_0xfa983b){return client[_0xff86('0x1')](_0xff86('0x2'),{'body':_0xfa983b,'log':_0xff86('0x2')});};exports[_0xff86('0x3')]=function(_0x1008f2,_0x407c03){return client['Request'](_0xff86('0x4'),{'body':_0x407c03,'options':{'where':{'uniqueid':_0x1008f2},'order':[['id',_0xff86('0x5')]],'limit':0x1},'log':_0xff86('0x4')});};