c55dc2373a1b0e0051be7280e288f479e318ad51
[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 _0xc492=['Request','timeout','Agents','name','chatPause','../client','getChatQueues'];(function(_0x9b2aed,_0x5a67b9){var _0x50a80c=function(_0x3c0601){while(--_0x3c0601){_0x9b2aed['push'](_0x9b2aed['shift']());}};_0x50a80c(++_0x5a67b9);}(_0xc492,0xd7));var _0x2c49=function(_0x223ea0,_0x302179){_0x223ea0=_0x223ea0-0x0;var _0x2e18b8=_0xc492[_0x223ea0];return _0x2e18b8;};'use strict';var client=require(_0x2c49('0x0'));exports[_0x2c49('0x1')]=function(){return function(){return client[_0x2c49('0x2')]('GetChatQueue',{'options':{'raw':![],'attributes':['id','name',_0x2c49('0x3'),'strategy'],'include':[{'model':'User','as':_0x2c49('0x4'),'attributes':['id',_0x2c49('0x5'),'online',_0x2c49('0x6')]}]},'log':'getChatQueues'});};};