a086b5b2d0100c635733d8ca44fa13bc48bf99e1
[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 _0x2d9f=['getChatQueues','name','timeout','User','chatPause','../client'];(function(_0x2ece52,_0x538ee5){var _0x585ea8=function(_0x528662){while(--_0x528662){_0x2ece52['push'](_0x2ece52['shift']());}};_0x585ea8(++_0x538ee5);}(_0x2d9f,0xa7));var _0xf2d9=function(_0x229f58,_0x2fc35a){_0x229f58=_0x229f58-0x0;var _0xb7e54a=_0x2d9f[_0x229f58];return _0xb7e54a;};'use strict';var client=require(_0xf2d9('0x0'));exports[_0xf2d9('0x1')]=function(){return function(){return client['Request']('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0xf2d9('0x2'),_0xf2d9('0x3'),'strategy'],'include':[{'model':_0xf2d9('0x4'),'as':'Agents','attributes':['id',_0xf2d9('0x2'),'online',_0xf2d9('0x5')]}]},'log':'getChatQueues'});};};