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 _0x49db=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./template.controller','index','get','/:id','show','post','isAuthenticated','create','put','delete','destroy','exports','multer','util','path'];(function(_0x6d0b17,_0x221ac0){var _0x1ee7f3=function(_0x2d8b55){while(--_0x2d8b55){_0x6d0b17['push'](_0x6d0b17['shift']());}};_0x1ee7f3(++_0x221ac0);}(_0x49db,0xc5));var _0xb49d=function(_0x520bec,_0x135b8d){_0x520bec=_0x520bec-0x0;var _0x4fa84b=_0x49db[_0x520bec];return _0x4fa84b;};'use strict';var multer=require(_0xb49d('0x0'));var util=require(_0xb49d('0x1'));var path=require(_0xb49d('0x2'));var timeout=require(_0xb49d('0x3'));var express=require(_0xb49d('0x4'));var router=express['Router']();var fs_extra=require(_0xb49d('0x5'));var auth=require(_0xb49d('0x6'));var interaction=require(_0xb49d('0x7'));var config=require('../../config/environment');var controller=require(_0xb49d('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xb49d('0x9')]);router[_0xb49d('0xa')](_0xb49d('0xb'),auth['isAuthenticated'](),controller[_0xb49d('0xc')]);router[_0xb49d('0xd')]('/',auth[_0xb49d('0xe')](),controller[_0xb49d('0xf')]);router[_0xb49d('0x10')](_0xb49d('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xb49d('0x11')](_0xb49d('0xb'),auth[_0xb49d('0xe')](),controller[_0xb49d('0x12')]);module[_0xb49d('0x13')]=router;