Built motion from commit 9e1ec266.|2.6.28
[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 _0x35f5=['../client','Request','CreateMailQueueReport','UpdateMailQueueReport'];(function(_0x5442a5,_0x4110f1){var _0x130af0=function(_0x457ec2){while(--_0x457ec2){_0x5442a5['push'](_0x5442a5['shift']());}};_0x130af0(++_0x4110f1);}(_0x35f5,0x100));var _0x535f=function(_0xd1a252,_0x16396f){_0xd1a252=_0xd1a252-0x0;var _0x560ee1=_0x35f5[_0xd1a252];return _0x560ee1;};'use strict';var client=require(_0x535f('0x0'));exports['create']=function(_0x11d139){return client[_0x535f('0x1')](_0x535f('0x2'),{'body':_0x11d139,'log':_0x535f('0x2')});};exports['update']=function(_0x4aa724,_0x5f4a18){return client[_0x535f('0x1')](_0x535f('0x3'),{'body':_0x5f4a18,'options':{'where':{'uniqueid':_0x4aa724},'order':[['id','DESC']],'limit':0x1},'log':_0x535f('0x3')});};