06d041dd04c3e7c8d29bb0686ddd0f9df056b8ac
[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 _0xa13d=['User','Agents','chatPause','getChatQueues','../client','Request','GetChatQueue','timeout'];(function(_0x18da2d,_0x177ab1){var _0x4c8590=function(_0x2f8459){while(--_0x2f8459){_0x18da2d['push'](_0x18da2d['shift']());}};_0x4c8590(++_0x177ab1);}(_0xa13d,0x154));var _0xda13=function(_0xa92c15,_0x2ec505){_0xa92c15=_0xa92c15-0x0;var _0x395588=_0xa13d[_0xa92c15];return _0x395588;};'use strict';var client=require(_0xda13('0x0'));exports['getChatQueues']=function(){return function(){return client[_0xda13('0x1')](_0xda13('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xda13('0x3'),'strategy'],'include':[{'model':_0xda13('0x4'),'as':_0xda13('0x5'),'attributes':['id','name','online',_0xda13('0x6')]}]},'log':_0xda13('0x7')});};};