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 _0x2d17=['destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','get','index','isAuthenticated','show','post','create','put','/:id','update','delete'];(function(_0xa0b622,_0xf68e91){var _0x4195aa=function(_0x2a8386){while(--_0x2a8386){_0xa0b622['push'](_0xa0b622['shift']());}};_0x4195aa(++_0xf68e91);}(_0x2d17,0x17e));var _0x72d1=function(_0xb8356b,_0x1bde01){_0xb8356b=_0xb8356b-0x0;var _0x542156=_0x2d17[_0xb8356b];return _0x542156;};'use strict';var multer=require(_0x72d1('0x0'));var util=require(_0x72d1('0x1'));var path=require('path');var timeout=require(_0x72d1('0x2'));var express=require(_0x72d1('0x3'));var router=express['Router']();var fs_extra=require(_0x72d1('0x4'));var auth=require(_0x72d1('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x72d1('0x6'));var controller=require('./template.controller');router[_0x72d1('0x7')]('/',auth['isAuthenticated'](),controller[_0x72d1('0x8')]);router[_0x72d1('0x7')]('/:id',auth[_0x72d1('0x9')](),controller[_0x72d1('0xa')]);router[_0x72d1('0xb')]('/',auth['isAuthenticated'](),controller[_0x72d1('0xc')]);router[_0x72d1('0xd')](_0x72d1('0xe'),auth['isAuthenticated'](),controller[_0x72d1('0xf')]);router[_0x72d1('0x10')](_0x72d1('0xe'),auth[_0x72d1('0x9')](),controller[_0x72d1('0x11')]);module[_0x72d1('0x12')]=router;