5ff3a3a078bb70d7a7dda18c977b82a8d044d1b4
[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 _0x55a5=['multer','util','express','Router','../../components/interaction/service','./openchannelApplication.controller','get','isAuthenticated','index','show','post','/:id','delete','destroy','exports'];(function(_0x3e54b5,_0xc0a458){var _0x51cf84=function(_0x45efe1){while(--_0x45efe1){_0x3e54b5['push'](_0x3e54b5['shift']());}};_0x51cf84(++_0xc0a458);}(_0x55a5,0x13b));var _0x555a=function(_0x353abb,_0x194c80){_0x353abb=_0x353abb-0x0;var _0x43c9c5=_0x55a5[_0x353abb];return _0x43c9c5;};'use strict';var multer=require(_0x555a('0x0'));var util=require(_0x555a('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x555a('0x2'));var router=express[_0x555a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x555a('0x4'));var config=require('../../config/environment');var controller=require(_0x555a('0x5'));router[_0x555a('0x6')]('/',auth[_0x555a('0x7')](),controller[_0x555a('0x8')]);router[_0x555a('0x6')]('/:id',auth[_0x555a('0x7')](),controller[_0x555a('0x9')]);router[_0x555a('0xa')]('/',auth[_0x555a('0x7')](),controller['create']);router['put'](_0x555a('0xb'),auth[_0x555a('0x7')](),controller['update']);router[_0x555a('0xc')](_0x555a('0xb'),auth[_0x555a('0x7')](),controller[_0x555a('0xd')]);module[_0x555a('0xe')]=router;