71df3145410668b4cf35a2f3bafbc21721092b66
[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 _0xba79=['getWhatsappQueues','../client','Request','GetWhatsappQueue','name','User','Agents','whatsappPause'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0xba79,0x101));var _0x9ba7=function(_0x2d6ab8,_0x1b6b82){_0x2d6ab8=_0x2d6ab8-0x0;var _0x339c56=_0xba79[_0x2d6ab8];return _0x339c56;};'use strict';var client=require(_0x9ba7('0x0'));exports['getWhatsappQueues']=function(){return function(){return client[_0x9ba7('0x1')](_0x9ba7('0x2'),{'options':{'raw':![],'attributes':['id',_0x9ba7('0x3'),'timeout','strategy'],'include':[{'model':_0x9ba7('0x4'),'as':_0x9ba7('0x5'),'attributes':['id','name','online',_0x9ba7('0x6')]}]},'log':_0x9ba7('0x7')});};};