5a1ef30f316bd1ba6ff4c2a6af6be2e2fb510ba8
[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 _0x6b86=['getMailQueues','../client','Request','User','Agents','name'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0x6b86,0x199));var _0x66b8=function(_0x36f427,_0x410379){_0x36f427=_0x36f427-0x0;var _0x478c4c=_0x6b86[_0x36f427];return _0x478c4c;};'use strict';var client=require(_0x66b8('0x0'));exports['getMailQueues']=function(){return function(){return client[_0x66b8('0x1')]('GetMailQueue',{'options':{'raw':![],'attributes':['id','name','timeout','strategy'],'include':[{'model':_0x66b8('0x2'),'as':_0x66b8('0x3'),'attributes':['id',_0x66b8('0x4'),'online','mailPause']}]},'log':_0x66b8('0x5')});};};