b53cf7473cf60624d0660b8f153ca6e11c7b332f
[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 _0x9861=['Agents','online','whatsappPause','getWhatsappQueues','../client','GetWhatsappQueue','name','timeout','strategy','User'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9861,0x176));var _0x1986=function(_0x1c1bd8,_0x22c432){_0x1c1bd8=_0x1c1bd8-0x0;var _0x163462=_0x9861[_0x1c1bd8];return _0x163462;};'use strict';var client=require(_0x1986('0x0'));exports['getWhatsappQueues']=function(){return function(){return client['Request'](_0x1986('0x1'),{'options':{'raw':![],'attributes':['id',_0x1986('0x2'),_0x1986('0x3'),_0x1986('0x4')],'include':[{'model':_0x1986('0x5'),'as':_0x1986('0x6'),'attributes':['id','name',_0x1986('0x7'),_0x1986('0x8')]}]},'log':_0x1986('0x9')});};};