f4cbe175ac02b75aab3d06ff0c3d16787c62bed2
[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 _0xded6=['Agents','name','online','../client','getMailQueues','Request','GetMailQueue','timeout','strategy'];(function(_0x311aa0,_0x2d7ac5){var _0x3a33ca=function(_0x86d887){while(--_0x86d887){_0x311aa0['push'](_0x311aa0['shift']());}};_0x3a33ca(++_0x2d7ac5);}(_0xded6,0x1aa));var _0x6ded=function(_0x4df59e,_0x166fe0){_0x4df59e=_0x4df59e-0x0;var _0x3b473f=_0xded6[_0x4df59e];return _0x3b473f;};'use strict';var client=require(_0x6ded('0x0'));exports[_0x6ded('0x1')]=function(){return function(){return client[_0x6ded('0x2')](_0x6ded('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x6ded('0x4'),_0x6ded('0x5')],'include':[{'model':'User','as':_0x6ded('0x6'),'attributes':['id',_0x6ded('0x7'),_0x6ded('0x8'),'mailPause']}]},'log':_0x6ded('0x1')});};};