Built motion from commit 753c950e.|2.5.42
[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 _0x5395=['online','chatPause','getChatQueues','../client','Request','timeout','strategy','User','name'];(function(_0xd43124,_0x38eb34){var _0x10796b=function(_0x273d93){while(--_0x273d93){_0xd43124['push'](_0xd43124['shift']());}};_0x10796b(++_0x38eb34);}(_0x5395,0x150));var _0x5539=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x5395[_0x57b54c];return _0x59cc19;};'use strict';var client=require(_0x5539('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x5539('0x1')]('GetChatQueue',{'options':{'raw':![],'attributes':['id','name',_0x5539('0x2'),_0x5539('0x3')],'include':[{'model':_0x5539('0x4'),'as':'Agents','attributes':['id',_0x5539('0x5'),_0x5539('0x6'),_0x5539('0x7')]}]},'log':_0x5539('0x8')});};};