1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x7208=['GetMailQueue','name','timeout','strategy','User','Agents','mailPause','getMailQueues','../client','Request'];(function(_0x3ff27b,_0x3a77c5){var _0x4edd69=function(_0x39355e){while(--_0x39355e){_0x3ff27b['push'](_0x3ff27b['shift']());}};_0x4edd69(++_0x3a77c5);}(_0x7208,0x6c));var _0x8720=function(_0x17fcc9,_0x110aae){_0x17fcc9=_0x17fcc9-0x0;var _0x2bf725=_0x7208[_0x17fcc9];return _0x2bf725;};'use strict';var client=require(_0x8720('0x0'));exports['getMailQueues']=function(){return function(){return client[_0x8720('0x1')](_0x8720('0x2'),{'options':{'raw':![],'attributes':['id',_0x8720('0x3'),_0x8720('0x4'),_0x8720('0x5')],'include':[{'model':_0x8720('0x6'),'as':_0x8720('0x7'),'attributes':['id',_0x8720('0x3'),'online',_0x8720('0x8')]}]},'log':_0x8720('0x9')});};};