5639503854a4bea00939757723b633a1c00fe77e
[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 _0x8539=['create','put','/:id','update','delete','destroy','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./trunk.controller','isAuthenticated','show','post','/:id/clone','clone'];(function(_0x4a93d7,_0x6228e4){var _0x826f00=function(_0x4fef6c){while(--_0x4fef6c){_0x4a93d7['push'](_0x4a93d7['shift']());}};_0x826f00(++_0x6228e4);}(_0x8539,0xfd));var _0x9853=function(_0x170787,_0x590acf){_0x170787=_0x170787-0x0;var _0x1acd21=_0x8539[_0x170787];return _0x1acd21;};'use strict';var multer=require(_0x9853('0x0'));var util=require(_0x9853('0x1'));var path=require('path');var timeout=require(_0x9853('0x2'));var express=require('express');var router=express[_0x9853('0x3')]();var fs_extra=require(_0x9853('0x4'));var auth=require(_0x9853('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9853('0x6'));var controller=require(_0x9853('0x7'));router['get']('/',auth[_0x9853('0x8')](),controller['index']);router['get']('/:id',auth[_0x9853('0x8')](),controller[_0x9853('0x9')]);router[_0x9853('0xa')](_0x9853('0xb'),auth['isAuthenticated'](),controller[_0x9853('0xc')]);router[_0x9853('0xa')]('/',auth[_0x9853('0x8')](),controller[_0x9853('0xd')]);router[_0x9853('0xe')](_0x9853('0xf'),auth[_0x9853('0x8')](),controller[_0x9853('0x10')]);router[_0x9853('0x11')](_0x9853('0xf'),auth[_0x9853('0x8')](),controller[_0x9853('0x12')]);module['exports']=router;