d47de9dfdf523d4baff0ac714e4df17c045fde08
[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 _0xb13b=['chatPause','../client','getChatQueues','Request','GetChatQueue','name','strategy','User','online'];(function(_0xf41a70,_0x510881){var _0x564b08=function(_0x330fa5){while(--_0x330fa5){_0xf41a70['push'](_0xf41a70['shift']());}};_0x564b08(++_0x510881);}(_0xb13b,0x1de));var _0xbb13=function(_0x4b2436,_0x452299){_0x4b2436=_0x4b2436-0x0;var _0x4f5ab2=_0xb13b[_0x4b2436];return _0x4f5ab2;};'use strict';var client=require(_0xbb13('0x0'));exports[_0xbb13('0x1')]=function(){return function(){return client[_0xbb13('0x2')](_0xbb13('0x3'),{'options':{'raw':![],'attributes':['id',_0xbb13('0x4'),'timeout',_0xbb13('0x5')],'include':[{'model':_0xbb13('0x6'),'as':'Agents','attributes':['id',_0xbb13('0x4'),_0xbb13('0x7'),_0xbb13('0x8')]}]},'log':_0xbb13('0x1')});};};