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 _0x2871=['show','post','create','put','delete','destroy','exports','multer','connect-timeout','express','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id'];(function(_0x596654,_0xb9e792){var _0x35eb81=function(_0x1a7df6){while(--_0x1a7df6){_0x596654['push'](_0x596654['shift']());}};_0x35eb81(++_0xb9e792);}(_0x2871,0x133));var _0x1287=function(_0x480d71,_0x375a7b){_0x480d71=_0x480d71-0x0;var _0x2fb4f5=_0x2871[_0x480d71];return _0x2fb4f5;};'use strict';var multer=require(_0x1287('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x1287('0x1'));var express=require(_0x1287('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x1287('0x3'));var config=require(_0x1287('0x4'));var controller=require('./template.controller');router[_0x1287('0x5')]('/',auth[_0x1287('0x6')](),controller['index']);router[_0x1287('0x5')](_0x1287('0x7'),auth[_0x1287('0x6')](),controller[_0x1287('0x8')]);router[_0x1287('0x9')]('/',auth[_0x1287('0x6')](),controller[_0x1287('0xa')]);router[_0x1287('0xb')](_0x1287('0x7'),auth[_0x1287('0x6')](),controller['update']);router[_0x1287('0xc')](_0x1287('0x7'),auth[_0x1287('0x6')](),controller[_0x1287('0xd')]);module[_0x1287('0xe')]=router;