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 _0xfef9=['../../components/interaction/service','./template.controller','get','index','isAuthenticated','show','post','create','put','/:id','update','destroy','exports','multer','util','connect-timeout','express','fs-extra'];(function(_0x530577,_0x3307a5){var _0x32834b=function(_0x29b047){while(--_0x29b047){_0x530577['push'](_0x530577['shift']());}};_0x32834b(++_0x3307a5);}(_0xfef9,0xd3));var _0x9fef=function(_0x5c2e5e,_0x2bc00e){_0x5c2e5e=_0x5c2e5e-0x0;var _0x46a5da=_0xfef9[_0x5c2e5e];return _0x46a5da;};'use strict';var multer=require(_0x9fef('0x0'));var util=require(_0x9fef('0x1'));var path=require('path');var timeout=require(_0x9fef('0x2'));var express=require(_0x9fef('0x3'));var router=express['Router']();var fs_extra=require(_0x9fef('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9fef('0x5'));var config=require('../../config/environment');var controller=require(_0x9fef('0x6'));router[_0x9fef('0x7')]('/',auth['isAuthenticated'](),controller[_0x9fef('0x8')]);router[_0x9fef('0x7')]('/:id',auth[_0x9fef('0x9')](),controller[_0x9fef('0xa')]);router[_0x9fef('0xb')]('/',auth['isAuthenticated'](),controller[_0x9fef('0xc')]);router[_0x9fef('0xd')](_0x9fef('0xe'),auth['isAuthenticated'](),controller[_0x9fef('0xf')]);router['delete'](_0x9fef('0xe'),auth[_0x9fef('0x9')](),controller[_0x9fef('0x10')]);module[_0x9fef('0x11')]=router;