9dcd41d971dca9c51004b8fdb38dbaa185661253
[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 _0x080a=['util','path','express','Router','fs-extra','../../components/auth/service','./trunk.controller','isAuthenticated','index','/:id','show','/:id/clone','clone','post','create','update','delete','destroy','exports','multer'];(function(_0x41b0a8,_0x1b05cc){var _0x3a83d4=function(_0x3d1011){while(--_0x3d1011){_0x41b0a8['push'](_0x41b0a8['shift']());}};_0x3a83d4(++_0x1b05cc);}(_0x080a,0x8b));var _0xa080=function(_0x3ada4d,_0x2fff14){_0x3ada4d=_0x3ada4d-0x0;var _0x3cdabb=_0x080a[_0x3ada4d];return _0x3cdabb;};'use strict';var multer=require(_0xa080('0x0'));var util=require(_0xa080('0x1'));var path=require(_0xa080('0x2'));var timeout=require('connect-timeout');var express=require(_0xa080('0x3'));var router=express[_0xa080('0x4')]();var fs_extra=require(_0xa080('0x5'));var auth=require(_0xa080('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa080('0x7'));router['get']('/',auth[_0xa080('0x8')](),controller[_0xa080('0x9')]);router['get'](_0xa080('0xa'),auth[_0xa080('0x8')](),controller[_0xa080('0xb')]);router['post'](_0xa080('0xc'),auth['isAuthenticated'](),controller[_0xa080('0xd')]);router[_0xa080('0xe')]('/',auth[_0xa080('0x8')](),controller[_0xa080('0xf')]);router['put'](_0xa080('0xa'),auth['isAuthenticated'](),controller[_0xa080('0x10')]);router[_0xa080('0x11')]('/:id',auth[_0xa080('0x8')](),controller[_0xa080('0x12')]);module[_0xa080('0x13')]=router;