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