7c041247faf6608ba766eaa9994bf6453ef220e5
[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 _0xb9f1=['isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','addTeams','addAgents','put','delete','removeAgents','path','connect-timeout','express','Router','../../config/environment','./whatsappQueue.controller','get'];(function(_0x58d4d1,_0x9d32be){var _0x469aee=function(_0x5cd41e){while(--_0x5cd41e){_0x58d4d1['push'](_0x58d4d1['shift']());}};_0x469aee(++_0x9d32be);}(_0xb9f1,0xda));var _0x1b9f=function(_0x399fb4,_0x3b9673){_0x399fb4=_0x399fb4-0x0;var _0x599673=_0xb9f1[_0x399fb4];return _0x599673;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1b9f('0x0'));var timeout=require(_0x1b9f('0x1'));var express=require(_0x1b9f('0x2'));var router=express[_0x1b9f('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1b9f('0x4'));var controller=require(_0x1b9f('0x5'));router[_0x1b9f('0x6')]('/',auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x8')]);router[_0x1b9f('0x6')](_0x1b9f('0x9'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0xa')]);router['get'](_0x1b9f('0xb'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0xc')]);router[_0x1b9f('0x6')](_0x1b9f('0xd'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0xe')]);router[_0x1b9f('0x6')](_0x1b9f('0xf'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x10')]);router[_0x1b9f('0x6')](_0x1b9f('0x11'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x12')]);router[_0x1b9f('0x13')]('/',auth[_0x1b9f('0x7')](),controller['create']);router[_0x1b9f('0x13')]('/:id/teams',auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x14')]);router[_0x1b9f('0x13')](_0x1b9f('0x11'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x15')]);router[_0x1b9f('0x16')]('/:id',auth[_0x1b9f('0x7')](),controller['update']);router[_0x1b9f('0x17')](_0x1b9f('0xb'),auth[_0x1b9f('0x7')](),controller['destroy']);router['delete'](_0x1b9f('0xf'),auth[_0x1b9f('0x7')](),controller['removeTeams']);router[_0x1b9f('0x17')](_0x1b9f('0x11'),auth[_0x1b9f('0x7')](),controller[_0x1b9f('0x18')]);module['exports']=router;