dadb6c4f6390756045b45de384e05b796fc475c7
[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 _0x2fd6=['strategy','User','getWhatsappQueues','../client','GetWhatsappQueue','name','timeout'];(function(_0x14bbdc,_0x1525d5){var _0x329516=function(_0x1fb632){while(--_0x1fb632){_0x14bbdc['push'](_0x14bbdc['shift']());}};_0x329516(++_0x1525d5);}(_0x2fd6,0xab));var _0x62fd=function(_0x1827fd,_0x22367a){_0x1827fd=_0x1827fd-0x0;var _0x3b0fb3=_0x2fd6[_0x1827fd];return _0x3b0fb3;};'use strict';var client=require(_0x62fd('0x0'));exports['getWhatsappQueues']=function(){return function(){return client['Request'](_0x62fd('0x1'),{'options':{'raw':![],'attributes':['id',_0x62fd('0x2'),_0x62fd('0x3'),_0x62fd('0x4')],'include':[{'model':_0x62fd('0x5'),'as':'Agents','attributes':['id',_0x62fd('0x2'),'online','whatsappPause']}]},'log':_0x62fd('0x6')});};};