7fc5d79cecf73d9393e897b4a91e86b048bf5761
[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 _0x2fd0=['/describe','describe','/:id','show','getMembers','/:id/users','create','post','/:id/teams','addAgents','put','delete','destroy','removeTeams','exports','util','connect-timeout','express','Router','fs-extra','../../config/environment','./whatsappQueue.controller','isAuthenticated','index','get'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0x2fd0,0x13b));var _0x02fd=function(_0x3e1415,_0x2ad5ee){_0x3e1415=_0x3e1415-0x0;var _0x2e1ec7=_0x2fd0[_0x3e1415];return _0x2e1ec7;};'use strict';var multer=require('multer');var util=require(_0x02fd('0x0'));var path=require('path');var timeout=require(_0x02fd('0x1'));var express=require(_0x02fd('0x2'));var router=express[_0x02fd('0x3')]();var fs_extra=require(_0x02fd('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x02fd('0x5'));var controller=require(_0x02fd('0x6'));router['get']('/',auth[_0x02fd('0x7')](),controller[_0x02fd('0x8')]);router[_0x02fd('0x9')](_0x02fd('0xa'),auth[_0x02fd('0x7')](),controller[_0x02fd('0xb')]);router[_0x02fd('0x9')](_0x02fd('0xc'),auth[_0x02fd('0x7')](),controller[_0x02fd('0xd')]);router['get']('/:id/members',auth[_0x02fd('0x7')](),controller[_0x02fd('0xe')]);router['get']('/:id/teams',auth['isAuthenticated'](),controller['getTeams']);router[_0x02fd('0x9')](_0x02fd('0xf'),auth[_0x02fd('0x7')](),controller['getAgents']);router['post']('/',auth[_0x02fd('0x7')](),controller[_0x02fd('0x10')]);router[_0x02fd('0x11')](_0x02fd('0x12'),auth['isAuthenticated'](),controller['addTeams']);router['post']('/:id/users',auth[_0x02fd('0x7')](),controller[_0x02fd('0x13')]);router[_0x02fd('0x14')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x02fd('0x15')]('/:id',auth[_0x02fd('0x7')](),controller[_0x02fd('0x16')]);router[_0x02fd('0x15')]('/:id/teams',auth[_0x02fd('0x7')](),controller[_0x02fd('0x17')]);router[_0x02fd('0x15')](_0x02fd('0xf'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x02fd('0x18')]=router;