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 _0x048a=['Router','../../components/auth/service','../../components/interaction/service','./trunk.controller','get','isAuthenticated','index','/:id','post','clone','create','update','delete','destroy','exports','multer','connect-timeout'];(function(_0x29d08f,_0x281ec2){var _0x2e7604=function(_0x5ce432){while(--_0x5ce432){_0x29d08f['push'](_0x29d08f['shift']());}};_0x2e7604(++_0x281ec2);}(_0x048a,0x1b8));var _0xa048=function(_0x502e83,_0x775f0c){_0x502e83=_0x502e83-0x0;var _0x16b518=_0x048a[_0x502e83];return _0x16b518;};'use strict';var multer=require(_0xa048('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa048('0x1'));var express=require('express');var router=express[_0xa048('0x2')]();var auth=require(_0xa048('0x3'));var interaction=require(_0xa048('0x4'));var config=require('../../config/environment');var controller=require(_0xa048('0x5'));router[_0xa048('0x6')]('/',auth[_0xa048('0x7')](),controller[_0xa048('0x8')]);router[_0xa048('0x6')](_0xa048('0x9'),auth[_0xa048('0x7')](),controller['show']);router[_0xa048('0xa')]('/:id/clone',auth['isAuthenticated'](),controller[_0xa048('0xb')]);router[_0xa048('0xa')]('/',auth[_0xa048('0x7')](),controller[_0xa048('0xc')]);router['put'](_0xa048('0x9'),auth['isAuthenticated'](),controller[_0xa048('0xd')]);router[_0xa048('0xe')](_0xa048('0x9'),auth['isAuthenticated'](),controller[_0xa048('0xf')]);module[_0xa048('0x10')]=router;