Built motion from commit d5e4af8c.|2.6.23
[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 _0xfb00=['Request','GetOpenchannelQueue','name','timeout','strategy','User','online','getOpenchannelQueues','../client'];(function(_0x4a7631,_0x2c85b9){var _0x1a5a6f=function(_0x1ee3fd){while(--_0x1ee3fd){_0x4a7631['push'](_0x4a7631['shift']());}};_0x1a5a6f(++_0x2c85b9);}(_0xfb00,0x167));var _0x0fb0=function(_0x427565,_0x1f1538){_0x427565=_0x427565-0x0;var _0x1b03d4=_0xfb00[_0x427565];return _0x1b03d4;};'use strict';var client=require(_0x0fb0('0x0'));exports['getOpenchannelQueues']=function(){return function(){return client[_0x0fb0('0x1')](_0x0fb0('0x2'),{'options':{'raw':![],'attributes':['id',_0x0fb0('0x3'),_0x0fb0('0x4'),_0x0fb0('0x5')],'include':[{'model':_0x0fb0('0x6'),'as':'Agents','attributes':['id',_0x0fb0('0x3'),_0x0fb0('0x7'),'openchannelPause']}]},'log':_0x0fb0('0x8')});};};