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 _0x4376=['isAuthenticated','index','/:id','show','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./template.controller','get'];(function(_0x9d5267,_0x3e797b){var _0x54658c=function(_0x118dc2){while(--_0x118dc2){_0x9d5267['push'](_0x9d5267['shift']());}};_0x54658c(++_0x3e797b);}(_0x4376,0x7c));var _0x6437=function(_0x43c363,_0x16c2e1){_0x43c363=_0x43c363-0x0;var _0xf102f2=_0x4376[_0x43c363];return _0xf102f2;};'use strict';var multer=require(_0x6437('0x0'));var util=require(_0x6437('0x1'));var path=require(_0x6437('0x2'));var timeout=require(_0x6437('0x3'));var express=require(_0x6437('0x4'));var router=express['Router']();var auth=require(_0x6437('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x6437('0x6'));var controller=require(_0x6437('0x7'));router[_0x6437('0x8')]('/',auth[_0x6437('0x9')](),controller[_0x6437('0xa')]);router[_0x6437('0x8')](_0x6437('0xb'),auth['isAuthenticated'](),controller[_0x6437('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x6437('0xd')]);router[_0x6437('0xe')](_0x6437('0xb'),auth[_0x6437('0x9')](),controller[_0x6437('0xf')]);router[_0x6437('0x10')]('/:id',auth[_0x6437('0x9')](),controller[_0x6437('0x11')]);module[_0x6437('0x12')]=router;