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 _0xa826=['Agents','openchannelPause','../client','Request','GetOpenchannelQueue','name','timeout','strategy'];(function(_0x2ea08a,_0x240f73){var _0x5401ad=function(_0x194c90){while(--_0x194c90){_0x2ea08a['push'](_0x2ea08a['shift']());}};_0x5401ad(++_0x240f73);}(_0xa826,0x162));var _0x6a82=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xa826[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x6a82('0x0'));exports['getOpenchannelQueues']=function(){return function(){return client[_0x6a82('0x1')](_0x6a82('0x2'),{'options':{'raw':![],'attributes':['id',_0x6a82('0x3'),_0x6a82('0x4'),_0x6a82('0x5')],'include':[{'model':'User','as':_0x6a82('0x6'),'attributes':['id',_0x6a82('0x3'),'online',_0x6a82('0x7')]}]},'log':'getOpenchannelQueues'});};};