5f31a133b4ff516c0a612be4f266ac5ed1e4cc9f
[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 _0xadf0=['getChatQueues','Request','GetChatQueue','name','timeout','strategy','User'];(function(_0x30c97f,_0x1a74a5){var _0x3e8c33=function(_0x476ec4){while(--_0x476ec4){_0x30c97f['push'](_0x30c97f['shift']());}};_0x3e8c33(++_0x1a74a5);}(_0xadf0,0x12d));var _0x0adf=function(_0x5d0f73,_0x4c91a9){_0x5d0f73=_0x5d0f73-0x0;var _0xa769de=_0xadf0[_0x5d0f73];return _0xa769de;};'use strict';var client=require('../client');exports[_0x0adf('0x0')]=function(){return function(){return client[_0x0adf('0x1')](_0x0adf('0x2'),{'options':{'raw':![],'attributes':['id',_0x0adf('0x3'),_0x0adf('0x4'),_0x0adf('0x5')],'include':[{'model':_0x0adf('0x6'),'as':'Agents','attributes':['id',_0x0adf('0x3'),'online','chatPause']}]},'log':'getChatQueues'});};};