Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / services / routing / rpc / mailQueue.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 _0x5ad6=['GetMailQueue','name','timeout','Agents','online','../client','getMailQueues','Request'];(function(_0x2d1314,_0x567214){var _0x34f655=function(_0x124b4a){while(--_0x124b4a){_0x2d1314['push'](_0x2d1314['shift']());}};_0x34f655(++_0x567214);}(_0x5ad6,0x11d));var _0x65ad=function(_0x514bd1,_0x25ea3e){_0x514bd1=_0x514bd1-0x0;var _0x58a281=_0x5ad6[_0x514bd1];return _0x58a281;};'use strict';var client=require(_0x65ad('0x0'));exports[_0x65ad('0x1')]=function(){return function(){return client[_0x65ad('0x2')](_0x65ad('0x3'),{'options':{'raw':![],'attributes':['id',_0x65ad('0x4'),_0x65ad('0x5'),'strategy'],'include':[{'model':'User','as':_0x65ad('0x6'),'attributes':['id',_0x65ad('0x4'),_0x65ad('0x7'),'mailPause']}]},'log':_0x65ad('0x1')});};};