ef02e50eab7f99875066a70d212d081f739af0b1
[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 _0x6547=['../client','getChatQueues','Request','GetChatQueue','name','timeout','strategy','User','Agents'];(function(_0x22c2da,_0x569b31){var _0x65a816=function(_0x42c4ef){while(--_0x42c4ef){_0x22c2da['push'](_0x22c2da['shift']());}};_0x65a816(++_0x569b31);}(_0x6547,0x105));var _0x7654=function(_0x1b4c42,_0x4bf57b){_0x1b4c42=_0x1b4c42-0x0;var _0x28aded=_0x6547[_0x1b4c42];return _0x28aded;};'use strict';var client=require(_0x7654('0x0'));exports[_0x7654('0x1')]=function(){return function(){return client[_0x7654('0x2')](_0x7654('0x3'),{'options':{'raw':![],'attributes':['id',_0x7654('0x4'),_0x7654('0x5'),_0x7654('0x6')],'include':[{'model':_0x7654('0x7'),'as':_0x7654('0x8'),'attributes':['id',_0x7654('0x4'),'online','chatPause']}]},'log':_0x7654('0x1')});};};