4a6e49d52fb159962a58e7df4443d9193e880e97
[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 _0x1803=['getMailQueues','Request','timeout','Agents','name','../client'];(function(_0xc1936,_0x41df6c){var _0x283b02=function(_0x51c8ff){while(--_0x51c8ff){_0xc1936['push'](_0xc1936['shift']());}};_0x283b02(++_0x41df6c);}(_0x1803,0x1af));var _0x3180=function(_0x44d9f3,_0x3a9eb7){_0x44d9f3=_0x44d9f3-0x0;var _0x136459=_0x1803[_0x44d9f3];return _0x136459;};'use strict';var client=require(_0x3180('0x0'));exports[_0x3180('0x1')]=function(){return function(){return client[_0x3180('0x2')]('GetMailQueue',{'options':{'raw':![],'attributes':['id','name',_0x3180('0x3'),'strategy'],'include':[{'model':'User','as':_0x3180('0x4'),'attributes':['id',_0x3180('0x5'),'online','mailPause']}]},'log':_0x3180('0x1')});};};