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 _0x3e0c=['isAuthenticated','show','update','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./template.controller','/:id'];(function(_0x2e63e8,_0xed68f5){var _0x3fe904=function(_0x10e876){while(--_0x10e876){_0x2e63e8['push'](_0x2e63e8['shift']());}};_0x3fe904(++_0xed68f5);}(_0x3e0c,0x16d));var _0xc3e0=function(_0x58ee61,_0x41f78f){_0x58ee61=_0x58ee61-0x0;var _0x1b8825=_0x3e0c[_0x58ee61];return _0x1b8825;};'use strict';var multer=require(_0xc3e0('0x0'));var util=require(_0xc3e0('0x1'));var path=require(_0xc3e0('0x2'));var timeout=require('connect-timeout');var express=require(_0xc3e0('0x3'));var router=express[_0xc3e0('0x4')]();var fs_extra=require(_0xc3e0('0x5'));var auth=require(_0xc3e0('0x6'));var interaction=require(_0xc3e0('0x7'));var config=require('../../config/environment');var controller=require(_0xc3e0('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xc3e0('0x9'),auth[_0xc3e0('0xa')](),controller[_0xc3e0('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xc3e0('0x9'),auth[_0xc3e0('0xa')](),controller[_0xc3e0('0xc')]);router[_0xc3e0('0xd')](_0xc3e0('0x9'),auth[_0xc3e0('0xa')](),controller[_0xc3e0('0xe')]);module['exports']=router;