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