4d2d613d9bc5b9c8022f2a12b114847b11059c2a
[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 _0x76f9=['../client','Request','GetWhatsappQueue','name','strategy','User','Agents','whatsappPause'];(function(_0x59c2cb,_0x671ebb){var _0x4d2910=function(_0x50c769){while(--_0x50c769){_0x59c2cb['push'](_0x59c2cb['shift']());}};_0x4d2910(++_0x671ebb);}(_0x76f9,0x1d0));var _0x976f=function(_0x27c749,_0x6e5a34){_0x27c749=_0x27c749-0x0;var _0x3a0698=_0x76f9[_0x27c749];return _0x3a0698;};'use strict';var client=require(_0x976f('0x0'));exports['getWhatsappQueues']=function(){return function(){return client[_0x976f('0x1')](_0x976f('0x2'),{'options':{'raw':![],'attributes':['id',_0x976f('0x3'),'timeout',_0x976f('0x4')],'include':[{'model':_0x976f('0x5'),'as':_0x976f('0x6'),'attributes':['id',_0x976f('0x3'),'online',_0x976f('0x7')]}]},'log':'getWhatsappQueues'});};};