0f82391c45724115f98691ca44decb3d750ee5d1
[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 _0xb688=['whatsappPause','../client','getWhatsappQueues','Request','name','timeout','strategy','Agents','online'];(function(_0x3b0912,_0x39d739){var _0xa8f339=function(_0x6a31ab){while(--_0x6a31ab){_0x3b0912['push'](_0x3b0912['shift']());}};_0xa8f339(++_0x39d739);}(_0xb688,0x64));var _0x8b68=function(_0x57f697,_0x4cbb1){_0x57f697=_0x57f697-0x0;var _0x50d075=_0xb688[_0x57f697];return _0x50d075;};'use strict';var client=require(_0x8b68('0x0'));exports[_0x8b68('0x1')]=function(){return function(){return client[_0x8b68('0x2')]('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id',_0x8b68('0x3'),_0x8b68('0x4'),_0x8b68('0x5')],'include':[{'model':'User','as':_0x8b68('0x6'),'attributes':['id',_0x8b68('0x3'),_0x8b68('0x7'),_0x8b68('0x8')]}]},'log':'getWhatsappQueues'});};};