d7d4c558442c7e48a8b49020a7d266de14ef061c
[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 _0xbf7b=['UpdateMailQueueReport','DESC','../client','Request','CreateMailQueueReport'];(function(_0x1044e5,_0x498e01){var _0x5ad0dd=function(_0x458548){while(--_0x458548){_0x1044e5['push'](_0x1044e5['shift']());}};_0x5ad0dd(++_0x498e01);}(_0xbf7b,0x19c));var _0xbbf7=function(_0x14be06,_0x102586){_0x14be06=_0x14be06-0x0;var _0x258ae8=_0xbf7b[_0x14be06];return _0x258ae8;};'use strict';var client=require(_0xbbf7('0x0'));exports['create']=function(_0x2ce163){return client[_0xbbf7('0x1')](_0xbbf7('0x2'),{'body':_0x2ce163,'log':_0xbbf7('0x2')});};exports['update']=function(_0x1c34fa,_0x4bfbcc){return client[_0xbbf7('0x1')](_0xbbf7('0x3'),{'body':_0x4bfbcc,'options':{'where':{'uniqueid':_0x1c34fa},'order':[['id',_0xbbf7('0x4')]],'limit':0x1},'log':'UpdateMailQueueReport'});};