20a2212b684e1de280e18350fa9fa8e6b7d71e47
[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 _0xfb43=['getChatQueues','Request','name','timeout','strategy','Agents','online','chatPause','../client'];(function(_0x3a78d0,_0x55bd7f){var _0x20ed92=function(_0x197ce0){while(--_0x197ce0){_0x3a78d0['push'](_0x3a78d0['shift']());}};_0x20ed92(++_0x55bd7f);}(_0xfb43,0x15e));var _0x3fb4=function(_0x501ab8,_0x4cfecd){_0x501ab8=_0x501ab8-0x0;var _0x3527c5=_0xfb43[_0x501ab8];return _0x3527c5;};'use strict';var client=require(_0x3fb4('0x0'));exports[_0x3fb4('0x1')]=function(){return function(){return client[_0x3fb4('0x2')]('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0x3fb4('0x3'),_0x3fb4('0x4'),_0x3fb4('0x5')],'include':[{'model':'User','as':_0x3fb4('0x6'),'attributes':['id',_0x3fb4('0x3'),_0x3fb4('0x7'),_0x3fb4('0x8')]}]},'log':_0x3fb4('0x1')});};};