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 _0x176b=['../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','post','clone','create','put','update','multer','path','express'];(function(_0x5447fd,_0x52a6b5){var _0x15b28a=function(_0x370d4f){while(--_0x370d4f){_0x5447fd['push'](_0x5447fd['shift']());}};_0x15b28a(++_0x52a6b5);}(_0x176b,0x1cd));var _0xb176=function(_0x12019a,_0x407485){_0x12019a=_0x12019a-0x0;var _0x49520a=_0x176b[_0x12019a];return _0x49520a;};'use strict';var multer=require(_0xb176('0x0'));var util=require('util');var path=require(_0xb176('0x1'));var express=require(_0xb176('0x2'));var router=express['Router']();var auth=require(_0xb176('0x3'));var interaction=require(_0xb176('0x4'));var config=require(_0xb176('0x5'));var controller=require(_0xb176('0x6'));router[_0xb176('0x7')]('/',auth[_0xb176('0x8')](),controller[_0xb176('0x9')]);router[_0xb176('0x7')](_0xb176('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xb176('0xb')]('/:id/clone',auth[_0xb176('0x8')](),controller[_0xb176('0xc')]);router[_0xb176('0xb')]('/',auth[_0xb176('0x8')](),controller[_0xb176('0xd')]);router[_0xb176('0xe')](_0xb176('0xa'),auth[_0xb176('0x8')](),controller[_0xb176('0xf')]);router['delete'](_0xb176('0xa'),auth[_0xb176('0x8')](),controller['destroy']);module['exports']=router;