84dab1c04aa0ff7ec465b76272745509c82c4ab1
[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 _0xb893=['exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','put','update','delete','destroy'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0xb893,0xfd));var _0x3b89=function(_0x35ecfc,_0xa522ae){_0x35ecfc=_0x35ecfc-0x0;var _0x5d759d=_0xb893[_0x35ecfc];return _0x5d759d;};'use strict';var multer=require(_0x3b89('0x0'));var util=require(_0x3b89('0x1'));var path=require(_0x3b89('0x2'));var timeout=require(_0x3b89('0x3'));var express=require(_0x3b89('0x4'));var router=express[_0x3b89('0x5')]();var fs_extra=require(_0x3b89('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x3b89('0x7'));var config=require(_0x3b89('0x8'));var controller=require(_0x3b89('0x9'));router[_0x3b89('0xa')]('/',auth[_0x3b89('0xb')](),controller[_0x3b89('0xc')]);router['get'](_0x3b89('0xd'),auth[_0x3b89('0xb')](),controller[_0x3b89('0xe')]);router[_0x3b89('0xf')]('/',auth[_0x3b89('0xb')](),controller['create']);router[_0x3b89('0x10')](_0x3b89('0xd'),auth[_0x3b89('0xb')](),controller[_0x3b89('0x11')]);router[_0x3b89('0x12')](_0x3b89('0xd'),auth[_0x3b89('0xb')](),controller[_0x3b89('0x13')]);module[_0x3b89('0x14')]=router;