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 _0xb788=['update','delete','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','post','create','put'];(function(_0x150626,_0x4ec9eb){var _0x18ccec=function(_0x12e227){while(--_0x12e227){_0x150626['push'](_0x150626['shift']());}};_0x18ccec(++_0x4ec9eb);}(_0xb788,0x6e));var _0x8b78=function(_0x55a76a,_0x2d0203){_0x55a76a=_0x55a76a-0x0;var _0x45885a=_0xb788[_0x55a76a];return _0x45885a;};'use strict';var multer=require('multer');var util=require(_0x8b78('0x0'));var path=require(_0x8b78('0x1'));var timeout=require(_0x8b78('0x2'));var express=require(_0x8b78('0x3'));var router=express[_0x8b78('0x4')]();var fs_extra=require(_0x8b78('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8b78('0x6'));var config=require(_0x8b78('0x7'));var controller=require(_0x8b78('0x8'));router[_0x8b78('0x9')]('/',auth[_0x8b78('0xa')](),controller[_0x8b78('0xb')]);router['get'](_0x8b78('0xc'),auth[_0x8b78('0xa')](),controller['show']);router[_0x8b78('0xd')]('/:id/clone',auth['isAuthenticated'](),controller['clone']);router[_0x8b78('0xd')]('/',auth[_0x8b78('0xa')](),controller[_0x8b78('0xe')]);router[_0x8b78('0xf')](_0x8b78('0xc'),auth[_0x8b78('0xa')](),controller[_0x8b78('0x10')]);router[_0x8b78('0x11')](_0x8b78('0xc'),auth[_0x8b78('0xa')](),controller['destroy']);module['exports']=router;