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 _0xd8e7=['/:id','post','create','put','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','isAuthenticated','index','get'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd8e7,0x1e2));var _0x7d8e=function(_0x2afce2,_0x478486){_0x2afce2=_0x2afce2-0x0;var _0x3b2a23=_0xd8e7[_0x2afce2];return _0x3b2a23;};'use strict';var multer=require('multer');var util=require(_0x7d8e('0x0'));var path=require(_0x7d8e('0x1'));var timeout=require(_0x7d8e('0x2'));var express=require(_0x7d8e('0x3'));var router=express[_0x7d8e('0x4')]();var auth=require(_0x7d8e('0x5'));var interaction=require(_0x7d8e('0x6'));var config=require(_0x7d8e('0x7'));var controller=require(_0x7d8e('0x8'));router['get']('/',auth[_0x7d8e('0x9')](),controller[_0x7d8e('0xa')]);router[_0x7d8e('0xb')](_0x7d8e('0xc'),auth[_0x7d8e('0x9')](),controller['show']);router[_0x7d8e('0xd')]('/',auth[_0x7d8e('0x9')](),controller[_0x7d8e('0xe')]);router[_0x7d8e('0xf')](_0x7d8e('0xc'),auth['isAuthenticated'](),controller[_0x7d8e('0x10')]);router['delete']('/:id',auth[_0x7d8e('0x9')](),controller[_0x7d8e('0x11')]);module[_0x7d8e('0x12')]=router;