9b94834898c064f7d30e043c23a38dd243ab2403
[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 _0x2cd3=['getChatQueues','../client','Request','GetChatQueue','name','timeout','strategy','User','online','chatPause'];(function(_0x5c78d9,_0x2736c7){var _0x69ae1f=function(_0x4b31ac){while(--_0x4b31ac){_0x5c78d9['push'](_0x5c78d9['shift']());}};_0x69ae1f(++_0x2736c7);}(_0x2cd3,0xf1));var _0x32cd=function(_0x5c1cdc,_0x322014){_0x5c1cdc=_0x5c1cdc-0x0;var _0x2e8317=_0x2cd3[_0x5c1cdc];return _0x2e8317;};'use strict';var client=require(_0x32cd('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x32cd('0x1')](_0x32cd('0x2'),{'options':{'raw':![],'attributes':['id',_0x32cd('0x3'),_0x32cd('0x4'),_0x32cd('0x5')],'include':[{'model':_0x32cd('0x6'),'as':'Agents','attributes':['id','name',_0x32cd('0x7'),_0x32cd('0x8')]}]},'log':_0x32cd('0x9')});};};