Built motion from commit 1fd437e9.|2.6.19
[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 _0x4f17=['strategy','User','Agents','name','getChatQueues','../client','Request','GetChatQueue','timeout'];(function(_0x1edba7,_0x31d2ef){var _0xa33f93=function(_0x5a84a2){while(--_0x5a84a2){_0x1edba7['push'](_0x1edba7['shift']());}};_0xa33f93(++_0x31d2ef);}(_0x4f17,0x9e));var _0x74f1=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0x4f17[_0x6c993a];return _0x27f547;};'use strict';var client=require(_0x74f1('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x74f1('0x1')](_0x74f1('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x74f1('0x3'),_0x74f1('0x4')],'include':[{'model':_0x74f1('0x5'),'as':_0x74f1('0x6'),'attributes':['id',_0x74f1('0x7'),'online','chatPause']}]},'log':_0x74f1('0x8')});};};