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 _0x9a8a=['../../components/auth/service','isAuthenticated','index','get','show','post','create','put','/:id','update','delete','destroy','exports','multer','connect-timeout'];(function(_0x4b25a8,_0x35c0d3){var _0xa7c2c1=function(_0x372853){while(--_0x372853){_0x4b25a8['push'](_0x4b25a8['shift']());}};_0xa7c2c1(++_0x35c0d3);}(_0x9a8a,0x193));var _0xa9a8=function(_0x14d077,_0x868d7b){_0x14d077=_0x14d077-0x0;var _0x124458=_0x9a8a[_0x14d077];return _0x124458;};'use strict';var multer=require(_0xa9a8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa9a8('0x1'));var express=require('express');var router=express['Router']();var auth=require(_0xa9a8('0x2'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./template.controller');router['get']('/',auth[_0xa9a8('0x3')](),controller[_0xa9a8('0x4')]);router[_0xa9a8('0x5')]('/:id',auth[_0xa9a8('0x3')](),controller[_0xa9a8('0x6')]);router[_0xa9a8('0x7')]('/',auth[_0xa9a8('0x3')](),controller[_0xa9a8('0x8')]);router[_0xa9a8('0x9')](_0xa9a8('0xa'),auth[_0xa9a8('0x3')](),controller[_0xa9a8('0xb')]);router[_0xa9a8('0xc')](_0xa9a8('0xa'),auth[_0xa9a8('0x3')](),controller[_0xa9a8('0xd')]);module[_0xa9a8('0xe')]=router;