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 _0xd92f=['path','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','exports','multer'];(function(_0x4ccd7d,_0x4d6fe4){var _0x54011a=function(_0x1d400a){while(--_0x1d400a){_0x4ccd7d['push'](_0x4ccd7d['shift']());}};_0x54011a(++_0x4d6fe4);}(_0xd92f,0x10f));var _0xfd92=function(_0x114e73,_0x1ccb13){_0x114e73=_0x114e73-0x0;var _0x673e28=_0xd92f[_0x114e73];return _0x673e28;};'use strict';var multer=require(_0xfd92('0x0'));var util=require('util');var path=require(_0xfd92('0x1'));var timeout=require('connect-timeout');var express=require(_0xfd92('0x2'));var router=express[_0xfd92('0x3')]();var auth=require(_0xfd92('0x4'));var interaction=require(_0xfd92('0x5'));var config=require('../../config/environment');var controller=require('./template.controller');router[_0xfd92('0x6')]('/',auth[_0xfd92('0x7')](),controller[_0xfd92('0x8')]);router[_0xfd92('0x6')]('/:id',auth[_0xfd92('0x7')](),controller[_0xfd92('0x9')]);router[_0xfd92('0xa')]('/',auth[_0xfd92('0x7')](),controller[_0xfd92('0xb')]);router[_0xfd92('0xc')](_0xfd92('0xd'),auth[_0xfd92('0x7')](),controller[_0xfd92('0xe')]);router[_0xfd92('0xf')]('/:id',auth[_0xfd92('0x7')](),controller['destroy']);module[_0xfd92('0x10')]=router;