15642f99e326fa6ec826dca2f51b479ec22e1ab4
[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 _0x8a13=['get','index','isAuthenticated','show','post','create','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelApplication.controller'];(function(_0x2ecf2f,_0x4aca42){var _0x3b9e70=function(_0x2fee17){while(--_0x2fee17){_0x2ecf2f['push'](_0x2ecf2f['shift']());}};_0x3b9e70(++_0x4aca42);}(_0x8a13,0x1d7));var _0x38a1=function(_0x3be82c,_0x3307d7){_0x3be82c=_0x3be82c-0x0;var _0x40d25a=_0x8a13[_0x3be82c];return _0x40d25a;};'use strict';var multer=require(_0x38a1('0x0'));var util=require('util');var path=require(_0x38a1('0x1'));var timeout=require(_0x38a1('0x2'));var express=require(_0x38a1('0x3'));var router=express[_0x38a1('0x4')]();var fs_extra=require(_0x38a1('0x5'));var auth=require(_0x38a1('0x6'));var interaction=require(_0x38a1('0x7'));var config=require('../../config/environment');var controller=require(_0x38a1('0x8'));router[_0x38a1('0x9')]('/',auth['isAuthenticated'](),controller[_0x38a1('0xa')]);router[_0x38a1('0x9')]('/:id',auth[_0x38a1('0xb')](),controller[_0x38a1('0xc')]);router[_0x38a1('0xd')]('/',auth[_0x38a1('0xb')](),controller[_0x38a1('0xe')]);router['put'](_0x38a1('0xf'),auth['isAuthenticated'](),controller[_0x38a1('0x10')]);router[_0x38a1('0x11')](_0x38a1('0xf'),auth[_0x38a1('0xb')](),controller[_0x38a1('0x12')]);module[_0x38a1('0x13')]=router;