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