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 _0x93c5=['put','/:id','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','post','create'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x93c5,0x8a));var _0x593c=function(_0x487b0c,_0x14ff74){_0x487b0c=_0x487b0c-0x0;var _0x1adbdc=_0x93c5[_0x487b0c];return _0x1adbdc;};'use strict';var multer=require(_0x593c('0x0'));var util=require('util');var path=require(_0x593c('0x1'));var timeout=require(_0x593c('0x2'));var express=require(_0x593c('0x3'));var router=express[_0x593c('0x4')]();var auth=require(_0x593c('0x5'));var interaction=require(_0x593c('0x6'));var config=require(_0x593c('0x7'));var controller=require(_0x593c('0x8'));router[_0x593c('0x9')]('/',auth[_0x593c('0xa')](),controller[_0x593c('0xb')]);router[_0x593c('0x9')]('/:id',auth[_0x593c('0xa')](),controller['show']);router[_0x593c('0xc')]('/',auth['isAuthenticated'](),controller[_0x593c('0xd')]);router[_0x593c('0xe')](_0x593c('0xf'),auth[_0x593c('0xa')](),controller['update']);router[_0x593c('0x10')](_0x593c('0xf'),auth[_0x593c('0xa')](),controller[_0x593c('0x11')]);module[_0x593c('0x12')]=router;