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 _0xb458=['create','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','post','clone'];(function(_0x263fb6,_0x325d4b){var _0x4ee53d=function(_0x39564a){while(--_0x39564a){_0x263fb6['push'](_0x263fb6['shift']());}};_0x4ee53d(++_0x325d4b);}(_0xb458,0x103));var _0x8b45=function(_0x2a153b,_0x2d5c66){_0x2a153b=_0x2a153b-0x0;var _0x37d930=_0xb458[_0x2a153b];return _0x37d930;};'use strict';var multer=require(_0x8b45('0x0'));var util=require(_0x8b45('0x1'));var path=require(_0x8b45('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8b45('0x3')]();var auth=require(_0x8b45('0x4'));var interaction=require(_0x8b45('0x5'));var config=require(_0x8b45('0x6'));var controller=require('./trunk.controller');router[_0x8b45('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8b45('0x7')](_0x8b45('0x8'),auth[_0x8b45('0x9')](),controller[_0x8b45('0xa')]);router[_0x8b45('0xb')]('/:id/clone',auth[_0x8b45('0x9')](),controller[_0x8b45('0xc')]);router[_0x8b45('0xb')]('/',auth[_0x8b45('0x9')](),controller[_0x8b45('0xd')]);router['put'](_0x8b45('0x8'),auth[_0x8b45('0x9')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x8b45('0xe')]);module[_0x8b45('0xf')]=router;