da436051c061e2be6956e0e7e594965868b86ef3
[motion2.git] / server / api / trunk / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb418=['multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','isAuthenticated','index','post','/:id/clone','create','put','/:id','update','delete','destroy','exports'];(function(_0x232e7a,_0x19997){var _0x445ddd=function(_0x43628d){while(--_0x43628d){_0x232e7a['push'](_0x232e7a['shift']());}};_0x445ddd(++_0x19997);}(_0xb418,0x1a4));var _0x8b41=function(_0x3740fe,_0x6c543c){_0x3740fe=_0x3740fe-0x0;var _0x55492b=_0xb418[_0x3740fe];return _0x55492b;};'use strict';var multer=require(_0x8b41('0x0'));var util=require(_0x8b41('0x1'));var path=require(_0x8b41('0x2'));var timeout=require(_0x8b41('0x3'));var express=require('express');var router=express[_0x8b41('0x4')]();var fs_extra=require(_0x8b41('0x5'));var auth=require(_0x8b41('0x6'));var interaction=require(_0x8b41('0x7'));var config=require(_0x8b41('0x8'));var controller=require(_0x8b41('0x9'));router['get']('/',auth[_0x8b41('0xa')](),controller[_0x8b41('0xb')]);router['get']('/:id',auth[_0x8b41('0xa')](),controller['show']);router[_0x8b41('0xc')](_0x8b41('0xd'),auth['isAuthenticated'](),controller['clone']);router['post']('/',auth[_0x8b41('0xa')](),controller[_0x8b41('0xe')]);router[_0x8b41('0xf')](_0x8b41('0x10'),auth[_0x8b41('0xa')](),controller[_0x8b41('0x11')]);router[_0x8b41('0x12')](_0x8b41('0x10'),auth[_0x8b41('0xa')](),controller[_0x8b41('0x13')]);module[_0x8b41('0x14')]=router;