1a1a6fcc764f898835087a4a8b2fd6282ed478a1
[motion2.git] / server / services / routing / rpc / smsQueueReport.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 _0x8a21=['UpdateSmsQueueReport','DESC','../client','Request','CreateSmsQueueReport'];(function(_0x3f5217,_0xc26207){var _0x466723=function(_0x4a4e31){while(--_0x4a4e31){_0x3f5217['push'](_0x3f5217['shift']());}};_0x466723(++_0xc26207);}(_0x8a21,0x1d8));var _0x18a2=function(_0x3a924d,_0x1f0870){_0x3a924d=_0x3a924d-0x0;var _0x2f9f0b=_0x8a21[_0x3a924d];return _0x2f9f0b;};'use strict';var client=require(_0x18a2('0x0'));exports['create']=function(_0x5a8f1f){return client[_0x18a2('0x1')](_0x18a2('0x2'),{'body':_0x5a8f1f,'log':_0x18a2('0x2')});};exports['update']=function(_0x5a8a45,_0x42b942){return client[_0x18a2('0x1')](_0x18a2('0x3'),{'body':_0x42b942,'options':{'where':{'uniqueid':_0x5a8a45},'order':[['id',_0x18a2('0x4')]],'limit':0x1},'log':_0x18a2('0x3')});};