Built motion from commit e02f907f.|2.6.14
[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 _0xce96=['online','getOpenchannelQueues','../client','Request','GetOpenchannelQueue','timeout','strategy','User','name'];(function(_0x617828,_0x16eb89){var _0x3cd397=function(_0x3cba56){while(--_0x3cba56){_0x617828['push'](_0x617828['shift']());}};_0x3cd397(++_0x16eb89);}(_0xce96,0x134));var _0x6ce9=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xce96[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x6ce9('0x0'));exports['getOpenchannelQueues']=function(){return function(){return client[_0x6ce9('0x1')](_0x6ce9('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x6ce9('0x3'),_0x6ce9('0x4')],'include':[{'model':_0x6ce9('0x5'),'as':'Agents','attributes':['id',_0x6ce9('0x6'),_0x6ce9('0x7'),'openchannelPause']}]},'log':_0x6ce9('0x8')});};};