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 _0xc1b2=['connect-timeout','express','Router','../../components/interaction/service','./openchannelApplication.controller','isAuthenticated','show','post','create','put','/:id','delete','destroy','multer','util','path'];(function(_0x4c9f6a,_0xcb2cb2){var _0x5df5b9=function(_0x303cf2){while(--_0x303cf2){_0x4c9f6a['push'](_0x4c9f6a['shift']());}};_0x5df5b9(++_0xcb2cb2);}(_0xc1b2,0x12d));var _0x2c1b=function(_0xa7957f,_0x1621ac){_0xa7957f=_0xa7957f-0x0;var _0xfe6f31=_0xc1b2[_0xa7957f];return _0xfe6f31;};'use strict';var multer=require(_0x2c1b('0x0'));var util=require(_0x2c1b('0x1'));var path=require(_0x2c1b('0x2'));var timeout=require(_0x2c1b('0x3'));var express=require(_0x2c1b('0x4'));var router=express[_0x2c1b('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2c1b('0x6'));var config=require('../../config/environment');var controller=require(_0x2c1b('0x7'));router['get']('/',auth[_0x2c1b('0x8')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x2c1b('0x9')]);router[_0x2c1b('0xa')]('/',auth[_0x2c1b('0x8')](),controller[_0x2c1b('0xb')]);router[_0x2c1b('0xc')](_0x2c1b('0xd'),auth[_0x2c1b('0x8')](),controller['update']);router[_0x2c1b('0xe')](_0x2c1b('0xd'),auth[_0x2c1b('0x8')](),controller[_0x2c1b('0xf')]);module['exports']=router;