Built motion from commit cf5ff673.|2.5.41
[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 _0x0be3=['name','strategy','Agents','online','Request','GetChatQueue'];(function(_0x596360,_0x2363d6){var _0x5d4904=function(_0x24a2ce){while(--_0x24a2ce){_0x596360['push'](_0x596360['shift']());}};_0x5d4904(++_0x2363d6);}(_0x0be3,0x9a));var _0x30be=function(_0x2233be,_0xd10120){_0x2233be=_0x2233be-0x0;var _0x1a6468=_0x0be3[_0x2233be];return _0x1a6468;};'use strict';var client=require('../client');exports['getChatQueues']=function(){return function(){return client[_0x30be('0x0')](_0x30be('0x1'),{'options':{'raw':![],'attributes':['id',_0x30be('0x2'),'timeout',_0x30be('0x3')],'include':[{'model':'User','as':_0x30be('0x4'),'attributes':['id',_0x30be('0x2'),_0x30be('0x5'),'chatPause']}]},'log':'getChatQueues'});};};