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 _0x3aa4=['express','Router','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','put','update','delete','destroy','multer','util','path'];(function(_0x4154a6,_0x2c0b8e){var _0x3b2786=function(_0x2f5936){while(--_0x2f5936){_0x4154a6['push'](_0x4154a6['shift']());}};_0x3b2786(++_0x2c0b8e);}(_0x3aa4,0x6d));var _0x43aa=function(_0x5308cb,_0x16c79b){_0x5308cb=_0x5308cb-0x0;var _0x38b5eb=_0x3aa4[_0x5308cb];return _0x38b5eb;};'use strict';var multer=require(_0x43aa('0x0'));var util=require(_0x43aa('0x1'));var path=require(_0x43aa('0x2'));var timeout=require('connect-timeout');var express=require(_0x43aa('0x3'));var router=express[_0x43aa('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x43aa('0x5'));var config=require('../../config/environment');var controller=require('./template.controller');router[_0x43aa('0x6')]('/',auth[_0x43aa('0x7')](),controller[_0x43aa('0x8')]);router['get'](_0x43aa('0x9'),auth[_0x43aa('0x7')](),controller[_0x43aa('0xa')]);router[_0x43aa('0xb')]('/',auth[_0x43aa('0x7')](),controller['create']);router[_0x43aa('0xc')](_0x43aa('0x9'),auth[_0x43aa('0x7')](),controller[_0x43aa('0xd')]);router[_0x43aa('0xe')](_0x43aa('0x9'),auth['isAuthenticated'](),controller[_0x43aa('0xf')]);module['exports']=router;