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