fafcc0acf5e36a686f058527e8ea4d5c124a05f7
[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 _0x1dcd=['online','whatsappPause','getWhatsappQueues','../client','GetWhatsappQueue','name','strategy','Agents'];(function(_0xd39959,_0x302d09){var _0x1ff69c=function(_0x17c97f){while(--_0x17c97f){_0xd39959['push'](_0xd39959['shift']());}};_0x1ff69c(++_0x302d09);}(_0x1dcd,0x103));var _0xd1dc=function(_0x4483d9,_0x126d50){_0x4483d9=_0x4483d9-0x0;var _0x2bef06=_0x1dcd[_0x4483d9];return _0x2bef06;};'use strict';var client=require(_0xd1dc('0x0'));exports['getWhatsappQueues']=function(){return function(){return client['Request'](_0xd1dc('0x1'),{'options':{'raw':![],'attributes':['id',_0xd1dc('0x2'),'timeout',_0xd1dc('0x3')],'include':[{'model':'User','as':_0xd1dc('0x4'),'attributes':['id','name',_0xd1dc('0x5'),_0xd1dc('0x6')]}]},'log':_0xd1dc('0x7')});};};