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