1f864763d7594f091a7563b47477b24bf70d2d88
[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 _0xa6bc=['User','Agents','../client','getChatQueues','Request','GetChatQueue','name','timeout','strategy'];(function(_0x19e23d,_0x5b067b){var _0xb43e94=function(_0x2eefaf){while(--_0x2eefaf){_0x19e23d['push'](_0x19e23d['shift']());}};_0xb43e94(++_0x5b067b);}(_0xa6bc,0xa4));var _0xca6b=function(_0x2cfb58,_0x3d9412){_0x2cfb58=_0x2cfb58-0x0;var _0xd99951=_0xa6bc[_0x2cfb58];return _0xd99951;};'use strict';var client=require(_0xca6b('0x0'));exports[_0xca6b('0x1')]=function(){return function(){return client[_0xca6b('0x2')](_0xca6b('0x3'),{'options':{'raw':![],'attributes':['id',_0xca6b('0x4'),_0xca6b('0x5'),_0xca6b('0x6')],'include':[{'model':_0xca6b('0x7'),'as':_0xca6b('0x8'),'attributes':['id',_0xca6b('0x4'),'online','chatPause']}]},'log':_0xca6b('0x1')});};};