Built motion from commit 9d1906d1.|2.5.40
[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 _0x5eb8=['chatPause','getChatQueues','Request','timeout','strategy','Agents','name','online'];(function(_0x16194f,_0x1adbac){var _0x16bdf7=function(_0x542ef2){while(--_0x542ef2){_0x16194f['push'](_0x16194f['shift']());}};_0x16bdf7(++_0x1adbac);}(_0x5eb8,0x1d1));var _0x85eb=function(_0x34750b,_0x34aae5){_0x34750b=_0x34750b-0x0;var _0x244258=_0x5eb8[_0x34750b];return _0x244258;};'use strict';var client=require('../client');exports[_0x85eb('0x0')]=function(){return function(){return client[_0x85eb('0x1')]('GetChatQueue',{'options':{'raw':![],'attributes':['id','name',_0x85eb('0x2'),_0x85eb('0x3')],'include':[{'model':'User','as':_0x85eb('0x4'),'attributes':['id',_0x85eb('0x5'),_0x85eb('0x6'),_0x85eb('0x7')]}]},'log':'getChatQueues'});};};