aa5ab941a33d2374cc8e87b8fdded98a0a53a6ba
[motion2.git] / server / api / openchannelApplication / 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 _0x3869=['fs-extra','../../config/environment','get','index','/:id','isAuthenticated','show','create','destroy','exports','multer','util','path','express'];(function(_0x3dd531,_0xedaa84){var _0x299141=function(_0x2ca740){while(--_0x2ca740){_0x3dd531['push'](_0x3dd531['shift']());}};_0x299141(++_0xedaa84);}(_0x3869,0x1a0));var _0x9386=function(_0x357c26,_0x599bdc){_0x357c26=_0x357c26-0x0;var _0x2aaa44=_0x3869[_0x357c26];return _0x2aaa44;};'use strict';var multer=require(_0x9386('0x0'));var util=require(_0x9386('0x1'));var path=require(_0x9386('0x2'));var timeout=require('connect-timeout');var express=require(_0x9386('0x3'));var router=express['Router']();var fs_extra=require(_0x9386('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x9386('0x5'));var controller=require('./openchannelApplication.controller');router[_0x9386('0x6')]('/',auth['isAuthenticated'](),controller[_0x9386('0x7')]);router[_0x9386('0x6')](_0x9386('0x8'),auth[_0x9386('0x9')](),controller[_0x9386('0xa')]);router['post']('/',auth[_0x9386('0x9')](),controller[_0x9386('0xb')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x9386('0x9')](),controller[_0x9386('0xc')]);module[_0x9386('0xd')]=router;