faf99b462db211063e65701f83092855eddf9036
[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 _0xab02=['Request','GetWhatsappQueue','name','timeout','strategy','User','online','getWhatsappQueues'];(function(_0x3774a8,_0x1127c1){var _0x4a5185=function(_0x4523c2){while(--_0x4523c2){_0x3774a8['push'](_0x3774a8['shift']());}};_0x4a5185(++_0x1127c1);}(_0xab02,0x1d7));var _0x2ab0=function(_0x45c193,_0x14b2aa){_0x45c193=_0x45c193-0x0;var _0x3f495c=_0xab02[_0x45c193];return _0x3f495c;};'use strict';var client=require('../client');exports[_0x2ab0('0x0')]=function(){return function(){return client[_0x2ab0('0x1')](_0x2ab0('0x2'),{'options':{'raw':![],'attributes':['id',_0x2ab0('0x3'),_0x2ab0('0x4'),_0x2ab0('0x5')],'include':[{'model':_0x2ab0('0x6'),'as':'Agents','attributes':['id','name',_0x2ab0('0x7'),'whatsappPause']}]},'log':'getWhatsappQueues'});};};