c10f9f1360dc20c7a9a1826c00e1c5a6d827951f
[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 _0xc901=['whatsappPause','getWhatsappQueues','../client','timeout','strategy','Agents','name','online'];(function(_0x274108,_0x1e5879){var _0x516356=function(_0x5be079){while(--_0x5be079){_0x274108['push'](_0x274108['shift']());}};_0x516356(++_0x1e5879);}(_0xc901,0x142));var _0x1c90=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xc901[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0x1c90('0x0'));exports['getWhatsappQueues']=function(){return function(){return client['Request']('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id','name',_0x1c90('0x1'),_0x1c90('0x2')],'include':[{'model':'User','as':_0x1c90('0x3'),'attributes':['id',_0x1c90('0x4'),_0x1c90('0x5'),_0x1c90('0x6')]}]},'log':_0x1c90('0x7')});};};