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 _0x7c98=['put','delete','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./trunk.controller','isAuthenticated','index','/:id','/:id/clone','clone','post','create'];(function(_0x1d9f8c,_0x1bbd29){var _0x4a6ad1=function(_0x13c471){while(--_0x13c471){_0x1d9f8c['push'](_0x1d9f8c['shift']());}};_0x4a6ad1(++_0x1bbd29);}(_0x7c98,0x94));var _0x87c9=function(_0x5f0f2c,_0x9817bf){_0x5f0f2c=_0x5f0f2c-0x0;var _0x104e69=_0x7c98[_0x5f0f2c];return _0x104e69;};'use strict';var multer=require(_0x87c9('0x0'));var util=require(_0x87c9('0x1'));var path=require('path');var timeout=require(_0x87c9('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x87c9('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x87c9('0x4'));var config=require(_0x87c9('0x5'));var controller=require(_0x87c9('0x6'));router['get']('/',auth[_0x87c9('0x7')](),controller[_0x87c9('0x8')]);router['get'](_0x87c9('0x9'),auth[_0x87c9('0x7')](),controller['show']);router['post'](_0x87c9('0xa'),auth[_0x87c9('0x7')](),controller[_0x87c9('0xb')]);router[_0x87c9('0xc')]('/',auth[_0x87c9('0x7')](),controller[_0x87c9('0xd')]);router[_0x87c9('0xe')](_0x87c9('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x87c9('0xf')](_0x87c9('0x9'),auth[_0x87c9('0x7')](),controller[_0x87c9('0x10')]);module[_0x87c9('0x11')]=router;