09b97c3d2c284b64bc5f216ff879898b6fec45f3
[motion2.git] / server / api / whatsappQueue / index.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 _0x8a25=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','./whatsappQueue.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/teams','getTeams','/:id/users','create','post','addTeams','addAgents','put','delete','destroy','removeAgents'];(function(_0x2bdc4d,_0x4f26d1){var _0x3050f5=function(_0x24ff3f){while(--_0x24ff3f){_0x2bdc4d['push'](_0x2bdc4d['shift']());}};_0x3050f5(++_0x4f26d1);}(_0x8a25,0xb7));var _0x58a2=function(_0x53c2db,_0x552d4d){_0x53c2db=_0x53c2db-0x0;var _0x197d71=_0x8a25[_0x53c2db];return _0x197d71;};'use strict';var multer=require(_0x58a2('0x0'));var util=require(_0x58a2('0x1'));var path=require(_0x58a2('0x2'));var timeout=require(_0x58a2('0x3'));var express=require(_0x58a2('0x4'));var router=express[_0x58a2('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x58a2('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x58a2('0x7'));router[_0x58a2('0x8')]('/',auth[_0x58a2('0x9')](),controller[_0x58a2('0xa')]);router[_0x58a2('0x8')](_0x58a2('0xb'),auth[_0x58a2('0x9')](),controller['describe']);router[_0x58a2('0x8')](_0x58a2('0xc'),auth[_0x58a2('0x9')](),controller[_0x58a2('0xd')]);router['get']('/:id/members',auth[_0x58a2('0x9')](),controller['getMembers']);router['get'](_0x58a2('0xe'),auth[_0x58a2('0x9')](),controller[_0x58a2('0xf')]);router[_0x58a2('0x8')](_0x58a2('0x10'),auth[_0x58a2('0x9')](),controller['getAgents']);router['post']('/',auth[_0x58a2('0x9')](),controller[_0x58a2('0x11')]);router[_0x58a2('0x12')](_0x58a2('0xe'),auth[_0x58a2('0x9')](),controller[_0x58a2('0x13')]);router[_0x58a2('0x12')](_0x58a2('0x10'),auth[_0x58a2('0x9')](),controller[_0x58a2('0x14')]);router[_0x58a2('0x15')](_0x58a2('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x58a2('0x16')](_0x58a2('0xc'),auth[_0x58a2('0x9')](),controller[_0x58a2('0x17')]);router[_0x58a2('0x16')]('/:id/teams',auth[_0x58a2('0x9')](),controller['removeTeams']);router[_0x58a2('0x16')](_0x58a2('0x10'),auth['isAuthenticated'](),controller[_0x58a2('0x18')]);module[_0x58a2('0x19')]=router;