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 _0x173a=['path','connect-timeout','express','Router','../../components/auth/service','./trunk.controller','get','isAuthenticated','index','/:id','show','post','clone','create','put','delete','destroy','exports','multer','util'];(function(_0x4982d0,_0xb4d9e){var _0x340453=function(_0x38f55d){while(--_0x38f55d){_0x4982d0['push'](_0x4982d0['shift']());}};_0x340453(++_0xb4d9e);}(_0x173a,0x9e));var _0xa173=function(_0x3c19f8,_0x185f65){_0x3c19f8=_0x3c19f8-0x0;var _0x4ffc54=_0x173a[_0x3c19f8];return _0x4ffc54;};'use strict';var multer=require(_0xa173('0x0'));var util=require(_0xa173('0x1'));var path=require(_0xa173('0x2'));var timeout=require(_0xa173('0x3'));var express=require(_0xa173('0x4'));var router=express[_0xa173('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xa173('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa173('0x7'));router[_0xa173('0x8')]('/',auth[_0xa173('0x9')](),controller[_0xa173('0xa')]);router[_0xa173('0x8')](_0xa173('0xb'),auth['isAuthenticated'](),controller[_0xa173('0xc')]);router[_0xa173('0xd')]('/:id/clone',auth['isAuthenticated'](),controller[_0xa173('0xe')]);router[_0xa173('0xd')]('/',auth[_0xa173('0x9')](),controller[_0xa173('0xf')]);router[_0xa173('0x10')](_0xa173('0xb'),auth[_0xa173('0x9')](),controller['update']);router[_0xa173('0x11')](_0xa173('0xb'),auth[_0xa173('0x9')](),controller[_0xa173('0x12')]);module[_0xa173('0x13')]=router;