Built motion from commit (unavailable).|2.5.4
[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 _0xe851=['strategy','Agents','chatPause','getChatQueues','Request','GetChatQueue','name','timeout'];(function(_0x333400,_0x262399){var _0x5cfca7=function(_0x525e49){while(--_0x525e49){_0x333400['push'](_0x333400['shift']());}};_0x5cfca7(++_0x262399);}(_0xe851,0xfc));var _0x1e85=function(_0x21c74b,_0xa5aafc){_0x21c74b=_0x21c74b-0x0;var _0x4feba0=_0xe851[_0x21c74b];return _0x4feba0;};'use strict';var client=require('../client');exports['getChatQueues']=function(){return function(){return client[_0x1e85('0x0')](_0x1e85('0x1'),{'options':{'raw':![],'attributes':['id',_0x1e85('0x2'),_0x1e85('0x3'),_0x1e85('0x4')],'include':[{'model':'User','as':_0x1e85('0x5'),'attributes':['id','name','online',_0x1e85('0x6')]}]},'log':_0x1e85('0x7')});};};