057039e12807e5acb763aeac1b873ad902450d76
[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 _0xb2f4=['exports','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xb2f4,0x157));var _0x4b2f=function(_0x5aabcb,_0x219fbd){_0x5aabcb=_0x5aabcb-0x0;var _0x4b6e71=_0xb2f4[_0x5aabcb];return _0x4b6e71;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x4b2f('0x0'));var timeout=require(_0x4b2f('0x1'));var express=require('express');var router=express[_0x4b2f('0x2')]();var auth=require(_0x4b2f('0x3'));var interaction=require(_0x4b2f('0x4'));var config=require(_0x4b2f('0x5'));var controller=require('./openchannelApplication.controller');router[_0x4b2f('0x6')]('/',auth['isAuthenticated'](),controller[_0x4b2f('0x7')]);router[_0x4b2f('0x6')](_0x4b2f('0x8'),auth[_0x4b2f('0x9')](),controller[_0x4b2f('0xa')]);router[_0x4b2f('0xb')]('/',auth[_0x4b2f('0x9')](),controller[_0x4b2f('0xc')]);router[_0x4b2f('0xd')]('/:id',auth[_0x4b2f('0x9')](),controller[_0x4b2f('0xe')]);router[_0x4b2f('0xf')](_0x4b2f('0x8'),auth[_0x4b2f('0x9')](),controller[_0x4b2f('0x10')]);module[_0x4b2f('0x11')]=router;