aac62f7e701e24452b1da00463a0b35f7f48b0ce
[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 _0xc818=['getChatQueues','Request','GetChatQueue','timeout','strategy','User','Agents','name','online','chatPause','../client'];(function(_0x1ff001,_0x2286c9){var _0x312a70=function(_0x1b498b){while(--_0x1b498b){_0x1ff001['push'](_0x1ff001['shift']());}};_0x312a70(++_0x2286c9);}(_0xc818,0x1e3));var _0x8c81=function(_0x489b3c,_0x5a2f09){_0x489b3c=_0x489b3c-0x0;var _0x9366f5=_0xc818[_0x489b3c];return _0x9366f5;};'use strict';var client=require(_0x8c81('0x0'));exports[_0x8c81('0x1')]=function(){return function(){return client[_0x8c81('0x2')](_0x8c81('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x8c81('0x4'),_0x8c81('0x5')],'include':[{'model':_0x8c81('0x6'),'as':_0x8c81('0x7'),'attributes':['id',_0x8c81('0x8'),_0x8c81('0x9'),_0x8c81('0xa')]}]},'log':'getChatQueues'});};};