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 _0x9f62=['create','update','util','connect-timeout','express','Router','../../config/environment','./trunk.controller','get','isAuthenticated','/:id','show','post'];(function(_0x1e3475,_0x1d2268){var _0x3066cc=function(_0xa06ada){while(--_0xa06ada){_0x1e3475['push'](_0x1e3475['shift']());}};_0x3066cc(++_0x1d2268);}(_0x9f62,0x154));var _0x29f6=function(_0x5c5fe0,_0x4f2fb3){_0x5c5fe0=_0x5c5fe0-0x0;var _0x3d9ddb=_0x9f62[_0x5c5fe0];return _0x3d9ddb;};'use strict';var multer=require('multer');var util=require(_0x29f6('0x0'));var path=require('path');var timeout=require(_0x29f6('0x1'));var express=require(_0x29f6('0x2'));var router=express[_0x29f6('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x29f6('0x4'));var controller=require(_0x29f6('0x5'));router[_0x29f6('0x6')]('/',auth[_0x29f6('0x7')](),controller['index']);router[_0x29f6('0x6')](_0x29f6('0x8'),auth[_0x29f6('0x7')](),controller[_0x29f6('0x9')]);router[_0x29f6('0xa')]('/:id/clone',auth['isAuthenticated'](),controller['clone']);router['post']('/',auth[_0x29f6('0x7')](),controller[_0x29f6('0xb')]);router['put']('/:id',auth[_0x29f6('0x7')](),controller[_0x29f6('0xc')]);router['delete'](_0x29f6('0x8'),auth[_0x29f6('0x7')](),controller['destroy']);module['exports']=router;