1f386aaea04ac79f95481906f5775e626bc07bcf
[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 _0xdec1=['Agents','online','openchannelPause','getOpenchannelQueues','../client','GetOpenchannelQueue','name','timeout','strategy'];(function(_0x5dca82,_0x136a46){var _0x403d5e=function(_0x111b29){while(--_0x111b29){_0x5dca82['push'](_0x5dca82['shift']());}};_0x403d5e(++_0x136a46);}(_0xdec1,0x17e));var _0x1dec=function(_0x844693,_0x541176){_0x844693=_0x844693-0x0;var _0x1fef44=_0xdec1[_0x844693];return _0x1fef44;};'use strict';var client=require(_0x1dec('0x0'));exports['getOpenchannelQueues']=function(){return function(){return client['Request'](_0x1dec('0x1'),{'options':{'raw':![],'attributes':['id',_0x1dec('0x2'),_0x1dec('0x3'),_0x1dec('0x4')],'include':[{'model':'User','as':_0x1dec('0x5'),'attributes':['id','name',_0x1dec('0x6'),_0x1dec('0x7')]}]},'log':_0x1dec('0x8')});};};