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