082cc34fb86368a6b1c9808d47fdd8fb14f0e176
[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 _0x0733=['GetMailQueue','name','timeout','strategy','User','Agents','getMailQueues','../client','Request'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x0733,0x139));var _0x3073=function(_0x36af67,_0x3b39c4){_0x36af67=_0x36af67-0x0;var _0x5e42db=_0x0733[_0x36af67];return _0x5e42db;};'use strict';var client=require(_0x3073('0x0'));exports['getMailQueues']=function(){return function(){return client[_0x3073('0x1')](_0x3073('0x2'),{'options':{'raw':![],'attributes':['id',_0x3073('0x3'),_0x3073('0x4'),_0x3073('0x5')],'include':[{'model':_0x3073('0x6'),'as':_0x3073('0x7'),'attributes':['id','name','online','mailPause']}]},'log':_0x3073('0x8')});};};