1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe69d=['multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','show','post','put','update','delete','/:id','destroy','exports'];(function(_0x452791,_0x1c20df){var _0x459acf=function(_0x42a14b){while(--_0x42a14b){_0x452791['push'](_0x452791['shift']());}};_0x459acf(++_0x1c20df);}(_0xe69d,0xff));var _0xde69=function(_0x35ac06,_0x3c39ac){_0x35ac06=_0x35ac06-0x0;var _0x379a51=_0xe69d[_0x35ac06];return _0x379a51;};'use strict';var multer=require(_0xde69('0x0'));var util=require('util');var path=require(_0xde69('0x1'));var timeout=require(_0xde69('0x2'));var express=require(_0xde69('0x3'));var router=express[_0xde69('0x4')]();var auth=require(_0xde69('0x5'));var interaction=require(_0xde69('0x6'));var config=require('../../config/environment');var controller=require('./openchannelApplication.controller');router[_0xde69('0x7')]('/',auth[_0xde69('0x8')](),controller['index']);router['get']('/:id',auth[_0xde69('0x8')](),controller[_0xde69('0x9')]);router[_0xde69('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0xde69('0xb')]('/:id',auth[_0xde69('0x8')](),controller[_0xde69('0xc')]);router[_0xde69('0xd')](_0xde69('0xe'),auth['isAuthenticated'](),controller[_0xde69('0xf')]);module[_0xde69('0x10')]=router;