642df1400c4479da2c28cc55d9c9dfc0ee9ce32f
[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 _0x5cfe=['Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x2c51b2,_0x2536d4){var _0x44de83=function(_0xc45e9c){while(--_0xc45e9c){_0x2c51b2['push'](_0x2c51b2['shift']());}};_0x44de83(++_0x2536d4);}(_0x5cfe,0x199));var _0xe5cf=function(_0x311194,_0x52f52b){_0x311194=_0x311194-0x0;var _0x59e87d=_0x5cfe[_0x311194];return _0x59e87d;};'use strict';var multer=require(_0xe5cf('0x0'));var util=require(_0xe5cf('0x1'));var path=require(_0xe5cf('0x2'));var timeout=require(_0xe5cf('0x3'));var express=require(_0xe5cf('0x4'));var router=express[_0xe5cf('0x5')]();var fs_extra=require(_0xe5cf('0x6'));var auth=require(_0xe5cf('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xe5cf('0x8'));var controller=require('./openchannelApplication.controller');router[_0xe5cf('0x9')]('/',auth[_0xe5cf('0xa')](),controller['index']);router[_0xe5cf('0x9')](_0xe5cf('0xb'),auth['isAuthenticated'](),controller[_0xe5cf('0xc')]);router['post']('/',auth[_0xe5cf('0xa')](),controller['create']);router[_0xe5cf('0xd')](_0xe5cf('0xb'),auth[_0xe5cf('0xa')](),controller[_0xe5cf('0xe')]);router[_0xe5cf('0xf')](_0xe5cf('0xb'),auth['isAuthenticated'](),controller[_0xe5cf('0x10')]);module[_0xe5cf('0x11')]=router;