1278635e88d5502c6eba8ed5f5c087cffbe4e9cd
[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 _0xb26d=['Request','GetChatQueue','name','timeout','strategy','User','Agents','online','../client','getChatQueues'];(function(_0x57f64d,_0x1d2cc1){var _0x56ee24=function(_0x2a86ab){while(--_0x2a86ab){_0x57f64d['push'](_0x57f64d['shift']());}};_0x56ee24(++_0x1d2cc1);}(_0xb26d,0x148));var _0xdb26=function(_0x1ec9cc,_0x50c2ff){_0x1ec9cc=_0x1ec9cc-0x0;var _0x4b0b4b=_0xb26d[_0x1ec9cc];return _0x4b0b4b;};'use strict';var client=require(_0xdb26('0x0'));exports[_0xdb26('0x1')]=function(){return function(){return client[_0xdb26('0x2')](_0xdb26('0x3'),{'options':{'raw':![],'attributes':['id',_0xdb26('0x4'),_0xdb26('0x5'),_0xdb26('0x6')],'include':[{'model':_0xdb26('0x7'),'as':_0xdb26('0x8'),'attributes':['id','name',_0xdb26('0x9'),'chatPause']}]},'log':_0xdb26('0x1')});};};