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