f1c6c9739a14d9f902c8b03899a2df3f09324869
[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 _0x24ca=['Agents','online','chatPause','getChatQueues','../client','Request','GetChatQueue','name','strategy','User'];(function(_0x3de7e0,_0x28cbff){var _0x11d0b3=function(_0xd95412){while(--_0xd95412){_0x3de7e0['push'](_0x3de7e0['shift']());}};_0x11d0b3(++_0x28cbff);}(_0x24ca,0x1bc));var _0xa24c=function(_0x130d82,_0x25f49b){_0x130d82=_0x130d82-0x0;var _0x112070=_0x24ca[_0x130d82];return _0x112070;};'use strict';var client=require(_0xa24c('0x0'));exports['getChatQueues']=function(){return function(){return client[_0xa24c('0x1')](_0xa24c('0x2'),{'options':{'raw':![],'attributes':['id',_0xa24c('0x3'),'timeout',_0xa24c('0x4')],'include':[{'model':_0xa24c('0x5'),'as':_0xa24c('0x6'),'attributes':['id',_0xa24c('0x3'),_0xa24c('0x7'),_0xa24c('0x8')]}]},'log':_0xa24c('0x9')});};};