Built motion from commit (unavailable).|2.5.1
[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 _0x94d2=['timeout','strategy','online','whatsappPause','getWhatsappQueues','Request','GetWhatsappQueue','name'];(function(_0x8cea57,_0x290172){var _0x25ce1d=function(_0x152c9a){while(--_0x152c9a){_0x8cea57['push'](_0x8cea57['shift']());}};_0x25ce1d(++_0x290172);}(_0x94d2,0x1cd));var _0x294d=function(_0x1ee351,_0x54261b){_0x1ee351=_0x1ee351-0x0;var _0x245aaf=_0x94d2[_0x1ee351];return _0x245aaf;};'use strict';var client=require('../client');exports['getWhatsappQueues']=function(){return function(){return client[_0x294d('0x0')](_0x294d('0x1'),{'options':{'raw':![],'attributes':['id',_0x294d('0x2'),_0x294d('0x3'),_0x294d('0x4')],'include':[{'model':'User','as':'Agents','attributes':['id',_0x294d('0x2'),_0x294d('0x5'),_0x294d('0x6')]}]},'log':_0x294d('0x7')});};};