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