b5f898d4e6c011b641b0654f7ab51b3dd613a9c8
[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 _0xa2b5=['post','create','put','/:id','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','show','/:id/clone','clone'];(function(_0xc7d92f,_0x2f2193){var _0x3a17ea=function(_0x4315de){while(--_0x4315de){_0xc7d92f['push'](_0xc7d92f['shift']());}};_0x3a17ea(++_0x2f2193);}(_0xa2b5,0x1bd));var _0x5a2b=function(_0x58e2bd,_0x3dacea){_0x58e2bd=_0x58e2bd-0x0;var _0x2d0a5b=_0xa2b5[_0x58e2bd];return _0x2d0a5b;};'use strict';var multer=require(_0x5a2b('0x0'));var util=require(_0x5a2b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5a2b('0x2'));var router=express[_0x5a2b('0x3')]();var fs_extra=require(_0x5a2b('0x4'));var auth=require(_0x5a2b('0x5'));var interaction=require(_0x5a2b('0x6'));var config=require(_0x5a2b('0x7'));var controller=require(_0x5a2b('0x8'));router[_0x5a2b('0x9')]('/',auth[_0x5a2b('0xa')](),controller[_0x5a2b('0xb')]);router[_0x5a2b('0x9')]('/:id',auth[_0x5a2b('0xa')](),controller[_0x5a2b('0xc')]);router['post'](_0x5a2b('0xd'),auth[_0x5a2b('0xa')](),controller[_0x5a2b('0xe')]);router[_0x5a2b('0xf')]('/',auth['isAuthenticated'](),controller[_0x5a2b('0x10')]);router[_0x5a2b('0x11')](_0x5a2b('0x12'),auth['isAuthenticated'](),controller[_0x5a2b('0x13')]);router[_0x5a2b('0x14')](_0x5a2b('0x12'),auth[_0x5a2b('0xa')](),controller[_0x5a2b('0x15')]);module[_0x5a2b('0x16')]=router;