Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / services / routing / rpc / openchannelQueue.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 _0xa257=['User','Agents','openchannelPause','Request','GetOpenchannelQueue','name'];(function(_0x333234,_0x38923c){var _0x5da0c1=function(_0x7532fc){while(--_0x7532fc){_0x333234['push'](_0x333234['shift']());}};_0x5da0c1(++_0x38923c);}(_0xa257,0x1b3));var _0x7a25=function(_0x2892c0,_0x3813c8){_0x2892c0=_0x2892c0-0x0;var _0x1f9a11=_0xa257[_0x2892c0];return _0x1f9a11;};'use strict';var client=require('../client');exports['getOpenchannelQueues']=function(){return function(){return client[_0x7a25('0x0')](_0x7a25('0x1'),{'options':{'raw':![],'attributes':['id',_0x7a25('0x2'),'timeout','strategy'],'include':[{'model':_0x7a25('0x3'),'as':_0x7a25('0x4'),'attributes':['id',_0x7a25('0x2'),'online',_0x7a25('0x5')]}]},'log':'getOpenchannelQueues'});};};