39b1d2be7cebb8ea3a3a2da8f4c5d3fddfce9b1c
[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 _0xa223=['path','express','Router','../../components/auth/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','/:id','show','post','create','update','delete','exports','multer'];(function(_0x55aff0,_0x1d3869){var _0x52cdb9=function(_0x117c4e){while(--_0x117c4e){_0x55aff0['push'](_0x55aff0['shift']());}};_0x52cdb9(++_0x1d3869);}(_0xa223,0xbf));var _0x3a22=function(_0x4a2403,_0x1750ec){_0x4a2403=_0x4a2403-0x0;var _0x205228=_0xa223[_0x4a2403];return _0x205228;};'use strict';var multer=require(_0x3a22('0x0'));var util=require('util');var path=require(_0x3a22('0x1'));var timeout=require('connect-timeout');var express=require(_0x3a22('0x2'));var router=express[_0x3a22('0x3')]();var auth=require(_0x3a22('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3a22('0x5'));var controller=require(_0x3a22('0x6'));router[_0x3a22('0x7')]('/',auth[_0x3a22('0x8')](),controller['index']);router[_0x3a22('0x7')](_0x3a22('0x9'),auth[_0x3a22('0x8')](),controller[_0x3a22('0xa')]);router[_0x3a22('0xb')]('/',auth['isAuthenticated'](),controller[_0x3a22('0xc')]);router['put'](_0x3a22('0x9'),auth[_0x3a22('0x8')](),controller[_0x3a22('0xd')]);router[_0x3a22('0xe')](_0x3a22('0x9'),auth[_0x3a22('0x8')](),controller['destroy']);module[_0x3a22('0xf')]=router;