289048820888f95d6a4d41410550da6730b5630f
[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 _0x4b47=['strategy','User','online','chatPause','../client','Request','GetChatQueue','name','timeout'];(function(_0x29e78e,_0x49cd8a){var _0x3162c3=function(_0x45dc9c){while(--_0x45dc9c){_0x29e78e['push'](_0x29e78e['shift']());}};_0x3162c3(++_0x49cd8a);}(_0x4b47,0x1b4));var _0x74b4=function(_0x2faddb,_0xc18b78){_0x2faddb=_0x2faddb-0x0;var _0x273c05=_0x4b47[_0x2faddb];return _0x273c05;};'use strict';var client=require(_0x74b4('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x74b4('0x1')](_0x74b4('0x2'),{'options':{'raw':![],'attributes':['id',_0x74b4('0x3'),_0x74b4('0x4'),_0x74b4('0x5')],'include':[{'model':_0x74b4('0x6'),'as':'Agents','attributes':['id','name',_0x74b4('0x7'),_0x74b4('0x8')]}]},'log':'getChatQueues'});};};