05612feef4ac1c72e8b6284c7d321b990f93d357
[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 _0xea03=['getChatQueues','../client','Request','GetChatQueue','name','timeout','strategy','online','chatPause'];(function(_0xb86c4e,_0x329871){var _0x3bb8e8=function(_0x13d177){while(--_0x13d177){_0xb86c4e['push'](_0xb86c4e['shift']());}};_0x3bb8e8(++_0x329871);}(_0xea03,0x1ba));var _0x3ea0=function(_0x294f30,_0x4cdb4c){_0x294f30=_0x294f30-0x0;var _0x39cd8b=_0xea03[_0x294f30];return _0x39cd8b;};'use strict';var client=require(_0x3ea0('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x3ea0('0x1')](_0x3ea0('0x2'),{'options':{'raw':![],'attributes':['id',_0x3ea0('0x3'),_0x3ea0('0x4'),_0x3ea0('0x5')],'include':[{'model':'User','as':'Agents','attributes':['id','name',_0x3ea0('0x6'),_0x3ea0('0x7')]}]},'log':_0x3ea0('0x8')});};};