bd95219f5bcf6e7b38f008bac74a13bcfd20cc76
[motion2.git] / server / services / routing / rpc / whatsappQueue.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 _0xae60=['getWhatsappQueues','Request','name','timeout','strategy','Agents','whatsappPause','../client'];(function(_0x59bd3e,_0x6481e2){var _0x57b37c=function(_0x2b085a){while(--_0x2b085a){_0x59bd3e['push'](_0x59bd3e['shift']());}};_0x57b37c(++_0x6481e2);}(_0xae60,0x1c7));var _0x0ae6=function(_0x3740fe,_0x6c543c){_0x3740fe=_0x3740fe-0x0;var _0x55492b=_0xae60[_0x3740fe];return _0x55492b;};'use strict';var client=require(_0x0ae6('0x0'));exports[_0x0ae6('0x1')]=function(){return function(){return client[_0x0ae6('0x2')]('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id',_0x0ae6('0x3'),_0x0ae6('0x4'),_0x0ae6('0x5')],'include':[{'model':'User','as':_0x0ae6('0x6'),'attributes':['id',_0x0ae6('0x3'),'online',_0x0ae6('0x7')]}]},'log':_0x0ae6('0x1')});};};