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