ac61226ad76c81a00e69b6df13de2fbefc577b9f
[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 _0xd5fc=['name','timeout','strategy','User','Agents','whatsappPause','../client'];(function(_0x2738e0,_0x5e9864){var _0x17e4cd=function(_0xbbf2cd){while(--_0xbbf2cd){_0x2738e0['push'](_0x2738e0['shift']());}};_0x17e4cd(++_0x5e9864);}(_0xd5fc,0xae));var _0xcd5f=function(_0x60b7c6,_0x524459){_0x60b7c6=_0x60b7c6-0x0;var _0x5acaa2=_0xd5fc[_0x60b7c6];return _0x5acaa2;};'use strict';var client=require(_0xcd5f('0x0'));exports['getWhatsappQueues']=function(){return function(){return client['Request']('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id',_0xcd5f('0x1'),_0xcd5f('0x2'),_0xcd5f('0x3')],'include':[{'model':_0xcd5f('0x4'),'as':_0xcd5f('0x5'),'attributes':['id',_0xcd5f('0x1'),'online',_0xcd5f('0x6')]}]},'log':'getWhatsappQueues'});};};