aa9f4b6e4e0899b18418e6531b594b76e5ac571b
[motion2.git] / server / services / routing / rpc / chatQueue.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 _0xa1aa=['chatPause','Request','GetChatQueue','name','timeout','strategy','User','Agents','online'];(function(_0x368fb9,_0x1a9895){var _0x4892fb=function(_0x28d735){while(--_0x28d735){_0x368fb9['push'](_0x368fb9['shift']());}};_0x4892fb(++_0x1a9895);}(_0xa1aa,0x88));var _0xaa1a=function(_0x3d27df,_0x157763){_0x3d27df=_0x3d27df-0x0;var _0x5cc78c=_0xa1aa[_0x3d27df];return _0x5cc78c;};'use strict';var client=require('../client');exports['getChatQueues']=function(){return function(){return client[_0xaa1a('0x0')](_0xaa1a('0x1'),{'options':{'raw':![],'attributes':['id',_0xaa1a('0x2'),_0xaa1a('0x3'),_0xaa1a('0x4')],'include':[{'model':_0xaa1a('0x5'),'as':_0xaa1a('0x6'),'attributes':['id','name',_0xaa1a('0x7'),_0xaa1a('0x8')]}]},'log':'getChatQueues'});};};