30ff92774dcf85ec06e2aacd8da8a81f16c16787
[motion2.git] / server / services / routing / rpc / smsQueue.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 _0x8a62=['Request','GetSmsQueue','name','timeout','User','Agents','online','smsPause','getSmsQueues','../client'];(function(_0x5d277d,_0x4b9379){var _0x37a5b5=function(_0x33c233){while(--_0x33c233){_0x5d277d['push'](_0x5d277d['shift']());}};_0x37a5b5(++_0x4b9379);}(_0x8a62,0x18f));var _0x28a6=function(_0xd3259c,_0x3e19b2){_0xd3259c=_0xd3259c-0x0;var _0x340e5d=_0x8a62[_0xd3259c];return _0x340e5d;};'use strict';var client=require(_0x28a6('0x0'));exports['getSmsQueues']=function(){return function(){return client[_0x28a6('0x1')](_0x28a6('0x2'),{'options':{'raw':![],'attributes':['id',_0x28a6('0x3'),_0x28a6('0x4'),'strategy'],'include':[{'model':_0x28a6('0x5'),'as':_0x28a6('0x6'),'attributes':['id',_0x28a6('0x3'),_0x28a6('0x7'),_0x28a6('0x8')]}]},'log':_0x28a6('0x9')});};};