64193dac84117628a7f2999895e32791d8303440
[motion2.git] / server / services / routing / rpc / chatQueue.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 _0x8375=['name','timeout','strategy','User','Agents','chatPause','../client','getChatQueues','Request'];(function(_0x1a36a5,_0x746928){var _0x746243=function(_0x481966){while(--_0x481966){_0x1a36a5['push'](_0x1a36a5['shift']());}};_0x746243(++_0x746928);}(_0x8375,0xa8));var _0x5837=function(_0x365fc7,_0x59a6f6){_0x365fc7=_0x365fc7-0x0;var _0x39c8d9=_0x8375[_0x365fc7];return _0x39c8d9;};'use strict';var client=require(_0x5837('0x0'));exports[_0x5837('0x1')]=function(){return function(){return client[_0x5837('0x2')]('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0x5837('0x3'),_0x5837('0x4'),_0x5837('0x5')],'include':[{'model':_0x5837('0x6'),'as':_0x5837('0x7'),'attributes':['id',_0x5837('0x3'),'online',_0x5837('0x8')]}]},'log':_0x5837('0x1')});};};