427d74a2a2c91e325c1a0d2d4fa804675b544b9e
[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 _0xe407=['update','UpdateMailQueueReport','../client','Request','CreateMailQueueReport'];(function(_0x281304,_0x2d9eb0){var _0x342983=function(_0x316d6f){while(--_0x316d6f){_0x281304['push'](_0x281304['shift']());}};_0x342983(++_0x2d9eb0);}(_0xe407,0x156));var _0x7e40=function(_0x29562a,_0x7a5241){_0x29562a=_0x29562a-0x0;var _0x2bb15f=_0xe407[_0x29562a];return _0x2bb15f;};'use strict';var client=require(_0x7e40('0x0'));exports['create']=function(_0x31ae28){return client[_0x7e40('0x1')]('CreateMailQueueReport',{'body':_0x31ae28,'log':_0x7e40('0x2')});};exports[_0x7e40('0x3')]=function(_0x5d0864,_0x1af302){return client[_0x7e40('0x1')]('UpdateMailQueueReport',{'body':_0x1af302,'options':{'where':{'uniqueid':_0x5d0864},'order':[['id','DESC']],'limit':0x1},'log':_0x7e40('0x4')});};