d679108df3f0f03f96ddd4f3009188f7bae51d4a
[motion2.git] / server / services / routing / rpc / openchannelQueue.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 _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'});};};