9dd544eadcd6e38fb8fbd1e76c6fda0bbe94ffc1
[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 _0xdb21=['get','/describe','isAuthenticated','describe','/:id','show','/:id/members','getMembers','/:id/teams','getAgents','post','create','addTeams','/:id/users','addAgents','put','delete','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./whatsappQueue.controller','index'];(function(_0x597eb2,_0x165f5c){var _0x56875f=function(_0x5de36e){while(--_0x5de36e){_0x597eb2['push'](_0x597eb2['shift']());}};_0x56875f(++_0x165f5c);}(_0xdb21,0x135));var _0x1db2=function(_0x34c6a3,_0x3e1a91){_0x34c6a3=_0x34c6a3-0x0;var _0x58fcda=_0xdb21[_0x34c6a3];return _0x58fcda;};'use strict';var multer=require(_0x1db2('0x0'));var util=require(_0x1db2('0x1'));var path=require(_0x1db2('0x2'));var timeout=require(_0x1db2('0x3'));var express=require(_0x1db2('0x4'));var router=express[_0x1db2('0x5')]();var fs_extra=require(_0x1db2('0x6'));var auth=require(_0x1db2('0x7'));var interaction=require(_0x1db2('0x8'));var config=require('../../config/environment');var controller=require(_0x1db2('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x1db2('0xa')]);router[_0x1db2('0xb')](_0x1db2('0xc'),auth[_0x1db2('0xd')](),controller[_0x1db2('0xe')]);router[_0x1db2('0xb')](_0x1db2('0xf'),auth[_0x1db2('0xd')](),controller[_0x1db2('0x10')]);router[_0x1db2('0xb')](_0x1db2('0x11'),auth['isAuthenticated'](),controller[_0x1db2('0x12')]);router[_0x1db2('0xb')](_0x1db2('0x13'),auth['isAuthenticated'](),controller['getTeams']);router[_0x1db2('0xb')]('/:id/users',auth[_0x1db2('0xd')](),controller[_0x1db2('0x14')]);router[_0x1db2('0x15')]('/',auth[_0x1db2('0xd')](),controller[_0x1db2('0x16')]);router[_0x1db2('0x15')]('/:id/teams',auth[_0x1db2('0xd')](),controller[_0x1db2('0x17')]);router[_0x1db2('0x15')](_0x1db2('0x18'),auth[_0x1db2('0xd')](),controller[_0x1db2('0x19')]);router[_0x1db2('0x1a')]('/:id',auth[_0x1db2('0xd')](),controller['update']);router[_0x1db2('0x1b')](_0x1db2('0xf'),auth[_0x1db2('0xd')](),controller[_0x1db2('0x1c')]);router[_0x1db2('0x1b')](_0x1db2('0x13'),auth[_0x1db2('0xd')](),controller[_0x1db2('0x1d')]);router[_0x1db2('0x1b')](_0x1db2('0x18'),auth[_0x1db2('0xd')](),controller[_0x1db2('0x1e')]);module[_0x1db2('0x1f')]=router;