6b0dac5c3f1c63127d4b6eb13ebd028f8bc05f28
[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 _0x9e82=['update','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','put'];(function(_0x3082f5,_0x4e8913){var _0x211407=function(_0x28dc4f){while(--_0x28dc4f){_0x3082f5['push'](_0x3082f5['shift']());}};_0x211407(++_0x4e8913);}(_0x9e82,0x1ce));var _0x29e8=function(_0x5052e2,_0x1e43b7){_0x5052e2=_0x5052e2-0x0;var _0x412820=_0x9e82[_0x5052e2];return _0x412820;};'use strict';var multer=require(_0x29e8('0x0'));var util=require(_0x29e8('0x1'));var path=require(_0x29e8('0x2'));var timeout=require('connect-timeout');var express=require(_0x29e8('0x3'));var router=express['Router']();var auth=require(_0x29e8('0x4'));var interaction=require(_0x29e8('0x5'));var config=require(_0x29e8('0x6'));var controller=require(_0x29e8('0x7'));router[_0x29e8('0x8')]('/',auth[_0x29e8('0x9')](),controller[_0x29e8('0xa')]);router[_0x29e8('0x8')](_0x29e8('0xb'),auth[_0x29e8('0x9')](),controller[_0x29e8('0xc')]);router['post']('/',auth[_0x29e8('0x9')](),controller['create']);router[_0x29e8('0xd')](_0x29e8('0xb'),auth[_0x29e8('0x9')](),controller[_0x29e8('0xe')]);router['delete']('/:id',auth[_0x29e8('0x9')](),controller[_0x29e8('0xf')]);module[_0x29e8('0x10')]=router;