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 _0x02c3=['../../components/interaction/service','../../config/environment','get','/:id','show','post','isAuthenticated','update','delete','destroy','multer','path','connect-timeout'];(function(_0x7c19e1,_0x493326){var _0x92830f=function(_0x3b467b){while(--_0x3b467b){_0x7c19e1['push'](_0x7c19e1['shift']());}};_0x92830f(++_0x493326);}(_0x02c3,0xc0));var _0x302c=function(_0xf77ae8,_0x369fc1){_0xf77ae8=_0xf77ae8-0x0;var _0x2dacb6=_0x02c3[_0xf77ae8];return _0x2dacb6;};'use strict';var multer=require(_0x302c('0x0'));var util=require('util');var path=require(_0x302c('0x1'));var timeout=require(_0x302c('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x302c('0x3'));var config=require(_0x302c('0x4'));var controller=require('./template.controller');router[_0x302c('0x5')]('/',auth['isAuthenticated'](),controller['index']);router[_0x302c('0x5')](_0x302c('0x6'),auth['isAuthenticated'](),controller[_0x302c('0x7')]);router[_0x302c('0x8')]('/',auth[_0x302c('0x9')](),controller['create']);router['put'](_0x302c('0x6'),auth[_0x302c('0x9')](),controller[_0x302c('0xa')]);router[_0x302c('0xb')]('/:id',auth[_0x302c('0x9')](),controller[_0x302c('0xc')]);module['exports']=router;