5fafa1028bd3be4c6b2ff4de67b079518cdeac75
[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 _0x90bb=['/:id','isAuthenticated','show','post','/:id/clone','create','put','update','delete','destroy','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get'];(function(_0x1ca93c,_0x3271ab){var _0x185169=function(_0x507763){while(--_0x507763){_0x1ca93c['push'](_0x1ca93c['shift']());}};_0x185169(++_0x3271ab);}(_0x90bb,0x69));var _0xb90b=function(_0x5a79bb,_0xd20395){_0x5a79bb=_0x5a79bb-0x0;var _0x57d86f=_0x90bb[_0x5a79bb];return _0x57d86f;};'use strict';var multer=require(_0xb90b('0x0'));var util=require(_0xb90b('0x1'));var path=require('path');var timeout=require(_0xb90b('0x2'));var express=require('express');var router=express[_0xb90b('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb90b('0x4'));var interaction=require(_0xb90b('0x5'));var config=require(_0xb90b('0x6'));var controller=require(_0xb90b('0x7'));router[_0xb90b('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xb90b('0x8')](_0xb90b('0x9'),auth[_0xb90b('0xa')](),controller[_0xb90b('0xb')]);router[_0xb90b('0xc')](_0xb90b('0xd'),auth[_0xb90b('0xa')](),controller['clone']);router[_0xb90b('0xc')]('/',auth[_0xb90b('0xa')](),controller[_0xb90b('0xe')]);router[_0xb90b('0xf')](_0xb90b('0x9'),auth[_0xb90b('0xa')](),controller[_0xb90b('0x10')]);router[_0xb90b('0x11')](_0xb90b('0x9'),auth[_0xb90b('0xa')](),controller[_0xb90b('0x12')]);module['exports']=router;