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 _0x7da7=['Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','post','create','/:id','update','destroy','exports','multer','util','path'];(function(_0x59fedd,_0x1260d3){var _0x3923b8=function(_0x1af1e9){while(--_0x1af1e9){_0x59fedd['push'](_0x59fedd['shift']());}};_0x3923b8(++_0x1260d3);}(_0x7da7,0x10d));var _0x77da=function(_0xb8cfbe,_0x2e81b6){_0xb8cfbe=_0xb8cfbe-0x0;var _0x227d51=_0x7da7[_0xb8cfbe];return _0x227d51;};'use strict';var multer=require(_0x77da('0x0'));var util=require(_0x77da('0x1'));var path=require(_0x77da('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x77da('0x3')]();var fs_extra=require(_0x77da('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x77da('0x5'));var config=require(_0x77da('0x6'));var controller=require('./template.controller');router[_0x77da('0x7')]('/',auth[_0x77da('0x8')](),controller['index']);router[_0x77da('0x7')]('/:id',auth[_0x77da('0x8')](),controller[_0x77da('0x9')]);router[_0x77da('0xa')]('/',auth[_0x77da('0x8')](),controller[_0x77da('0xb')]);router['put'](_0x77da('0xc'),auth[_0x77da('0x8')](),controller[_0x77da('0xd')]);router['delete'](_0x77da('0xc'),auth[_0x77da('0x8')](),controller[_0x77da('0xe')]);module[_0x77da('0xf')]=router;