bffaa247178055ac6043b45c40dfeef8c01a3097
[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 _0xe618=['get','/:id','update','delete','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index'];(function(_0x96d980,_0x25a9d0){var _0xe021ab=function(_0x55115a){while(--_0x55115a){_0x96d980['push'](_0x96d980['shift']());}};_0xe021ab(++_0x25a9d0);}(_0xe618,0x1e6));var _0x8e61=function(_0x26efac,_0x21ab8a){_0x26efac=_0x26efac-0x0;var _0x8482e4=_0xe618[_0x26efac];return _0x8482e4;};'use strict';var multer=require('multer');var util=require(_0x8e61('0x0'));var path=require(_0x8e61('0x1'));var timeout=require(_0x8e61('0x2'));var express=require('express');var router=express[_0x8e61('0x3')]();var auth=require(_0x8e61('0x4'));var interaction=require(_0x8e61('0x5'));var config=require(_0x8e61('0x6'));var controller=require('./openchannelApplication.controller');router['get']('/',auth[_0x8e61('0x7')](),controller[_0x8e61('0x8')]);router[_0x8e61('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x8e61('0x7')](),controller['create']);router['put'](_0x8e61('0xa'),auth[_0x8e61('0x7')](),controller[_0x8e61('0xb')]);router[_0x8e61('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x8e61('0xd')]);module[_0x8e61('0xe')]=router;