bce31556ddba80554a45bc625e071544a941d421
[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 _0x8d0a=['getChatQueues','../client','Request','GetChatQueue','name','timeout','strategy','User','Agents','online'];(function(_0x357755,_0x4d7877){var _0x4e8770=function(_0x15bea6){while(--_0x15bea6){_0x357755['push'](_0x357755['shift']());}};_0x4e8770(++_0x4d7877);}(_0x8d0a,0x65));var _0xa8d0=function(_0x32d268,_0x3f5f9d){_0x32d268=_0x32d268-0x0;var _0x21966d=_0x8d0a[_0x32d268];return _0x21966d;};'use strict';var client=require(_0xa8d0('0x0'));exports['getChatQueues']=function(){return function(){return client[_0xa8d0('0x1')](_0xa8d0('0x2'),{'options':{'raw':![],'attributes':['id',_0xa8d0('0x3'),_0xa8d0('0x4'),_0xa8d0('0x5')],'include':[{'model':_0xa8d0('0x6'),'as':_0xa8d0('0x7'),'attributes':['id',_0xa8d0('0x3'),_0xa8d0('0x8'),'chatPause']}]},'log':_0xa8d0('0x9')});};};