283a0db0a1e331847b93e1e27fbd8c15aec93202
[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 _0x4122=['../client','getMailQueues','Request','GetMailQueue','name','User','Agents','online','mailPause'];(function(_0x5f20d8,_0x500714){var _0x3065d1=function(_0x371d39){while(--_0x371d39){_0x5f20d8['push'](_0x5f20d8['shift']());}};_0x3065d1(++_0x500714);}(_0x4122,0x1d4));var _0x2412=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x4122[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0x2412('0x0'));exports[_0x2412('0x1')]=function(){return function(){return client[_0x2412('0x2')](_0x2412('0x3'),{'options':{'raw':![],'attributes':['id',_0x2412('0x4'),'timeout','strategy'],'include':[{'model':_0x2412('0x5'),'as':_0x2412('0x6'),'attributes':['id',_0x2412('0x4'),_0x2412('0x7'),_0x2412('0x8')]}]},'log':_0x2412('0x1')});};};