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