dfbb486959f86ce9e263fa6a9bd0a2bc3fc6af78
[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 _0xf7ec=['openchannelPause','../client','getOpenchannelQueues','name','timeout'];(function(_0x3f9103,_0x180a2e){var _0x1b85d1=function(_0x155c28){while(--_0x155c28){_0x3f9103['push'](_0x3f9103['shift']());}};_0x1b85d1(++_0x180a2e);}(_0xf7ec,0xe7));var _0xcf7e=function(_0x27fa44,_0x148336){_0x27fa44=_0x27fa44-0x0;var _0x563a16=_0xf7ec[_0x27fa44];return _0x563a16;};'use strict';var client=require(_0xcf7e('0x0'));exports[_0xcf7e('0x1')]=function(){return function(){return client['Request']('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0xcf7e('0x2'),_0xcf7e('0x3'),'strategy'],'include':[{'model':'User','as':'Agents','attributes':['id',_0xcf7e('0x2'),'online',_0xcf7e('0x4')]}]},'log':_0xcf7e('0x1')});};};