Built motion from commit 746c7d2a.|2.5.35
[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 _0xe799=['timeout','User','Agents','chatPause','../client','Request','name'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0xe799,0x170));var _0x9e79=function(_0x243185,_0x4576da){_0x243185=_0x243185-0x0;var _0xdfb1c8=_0xe799[_0x243185];return _0xdfb1c8;};'use strict';var client=require(_0x9e79('0x0'));exports['getChatQueues']=function(){return function(){return client[_0x9e79('0x1')]('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0x9e79('0x2'),_0x9e79('0x3'),'strategy'],'include':[{'model':_0x9e79('0x4'),'as':_0x9e79('0x5'),'attributes':['id',_0x9e79('0x2'),'online',_0x9e79('0x6')]}]},'log':'getChatQueues'});};};