Built motion from commit 53172ac8.|2.6.30
[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 _0x4491=['User','Agents','chatPause','../client','Request','name','timeout','strategy'];(function(_0xc11ec4,_0x2cc50b){var _0x2b75f2=function(_0x50aaad){while(--_0x50aaad){_0xc11ec4['push'](_0xc11ec4['shift']());}};_0x2b75f2(++_0x2cc50b);}(_0x4491,0x1bb));var _0x1449=function(_0xcc5e6b,_0x36a785){_0xcc5e6b=_0xcc5e6b-0x0;var _0x3935b8=_0x4491[_0xcc5e6b];return _0x3935b8;};'use strict';var client=require(_0x1449('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x1449('0x1')]('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0x1449('0x2'),_0x1449('0x3'),_0x1449('0x4')],'include':[{'model':_0x1449('0x5'),'as':_0x1449('0x6'),'attributes':['id',_0x1449('0x2'),'online',_0x1449('0x7')]}]},'log':'getChatQueues'});};};