Built motion from commit 14588770.|2.5.38
[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 _0x70fa=['GetWhatsappQueue','name','strategy','User','Agents','whatsappPause','../client','Request'];(function(_0x198f19,_0x4fee84){var _0x1be8fa=function(_0x321990){while(--_0x321990){_0x198f19['push'](_0x198f19['shift']());}};_0x1be8fa(++_0x4fee84);}(_0x70fa,0xee));var _0xa70f=function(_0x3c6c1b,_0x82a1e4){_0x3c6c1b=_0x3c6c1b-0x0;var _0x15170e=_0x70fa[_0x3c6c1b];return _0x15170e;};'use strict';var client=require(_0xa70f('0x0'));exports['getWhatsappQueues']=function(){return function(){return client[_0xa70f('0x1')](_0xa70f('0x2'),{'options':{'raw':![],'attributes':['id',_0xa70f('0x3'),'timeout',_0xa70f('0x4')],'include':[{'model':_0xa70f('0x5'),'as':_0xa70f('0x6'),'attributes':['id',_0xa70f('0x3'),'online',_0xa70f('0x7')]}]},'log':'getWhatsappQueues'});};};