9fa88b722168fe819e5398f7a50ee6d74acef44f
[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 _0xe7b2=['post','/:id/clone','isAuthenticated','create','put','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','index','get','/:id'];(function(_0x323727,_0x3976f8){var _0x3f6a1a=function(_0x2004c7){while(--_0x2004c7){_0x323727['push'](_0x323727['shift']());}};_0x3f6a1a(++_0x3976f8);}(_0xe7b2,0x17f));var _0x2e7b=function(_0x2230db,_0x1f0928){_0x2230db=_0x2230db-0x0;var _0x1cee42=_0xe7b2[_0x2230db];return _0x1cee42;};'use strict';var multer=require(_0x2e7b('0x0'));var util=require(_0x2e7b('0x1'));var path=require(_0x2e7b('0x2'));var timeout=require('connect-timeout');var express=require(_0x2e7b('0x3'));var router=express[_0x2e7b('0x4')]();var fs_extra=require(_0x2e7b('0x5'));var auth=require(_0x2e7b('0x6'));var interaction=require(_0x2e7b('0x7'));var config=require(_0x2e7b('0x8'));var controller=require(_0x2e7b('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x2e7b('0xa')]);router[_0x2e7b('0xb')](_0x2e7b('0xc'),auth['isAuthenticated'](),controller['show']);router[_0x2e7b('0xd')](_0x2e7b('0xe'),auth['isAuthenticated'](),controller['clone']);router[_0x2e7b('0xd')]('/',auth[_0x2e7b('0xf')](),controller[_0x2e7b('0x10')]);router[_0x2e7b('0x11')](_0x2e7b('0xc'),auth[_0x2e7b('0xf')](),controller[_0x2e7b('0x12')]);router[_0x2e7b('0x13')](_0x2e7b('0xc'),auth['isAuthenticated'](),controller[_0x2e7b('0x14')]);module[_0x2e7b('0x15')]=router;