Built motion from commit (unavailable).|2.5.4
[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 _0xae24=['isAuthenticated','index','/:id','/:id/clone','post','put','update','destroy','multer','path','express','Router','../../config/environment','get'];(function(_0x4a9ce7,_0x5e1446){var _0x4ae9eb=function(_0x514344){while(--_0x514344){_0x4a9ce7['push'](_0x4a9ce7['shift']());}};_0x4ae9eb(++_0x5e1446);}(_0xae24,0x182));var _0x4ae2=function(_0x3d445d,_0xcf39f0){_0x3d445d=_0x3d445d-0x0;var _0x530568=_0xae24[_0x3d445d];return _0x530568;};'use strict';var multer=require(_0x4ae2('0x0'));var util=require('util');var path=require(_0x4ae2('0x1'));var timeout=require('connect-timeout');var express=require(_0x4ae2('0x2'));var router=express[_0x4ae2('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4ae2('0x4'));var controller=require('./trunk.controller');router[_0x4ae2('0x5')]('/',auth[_0x4ae2('0x6')](),controller[_0x4ae2('0x7')]);router[_0x4ae2('0x5')](_0x4ae2('0x8'),auth[_0x4ae2('0x6')](),controller['show']);router['post'](_0x4ae2('0x9'),auth['isAuthenticated'](),controller['clone']);router[_0x4ae2('0xa')]('/',auth[_0x4ae2('0x6')](),controller['create']);router[_0x4ae2('0xb')](_0x4ae2('0x8'),auth[_0x4ae2('0x6')](),controller[_0x4ae2('0xc')]);router['delete'](_0x4ae2('0x8'),auth[_0x4ae2('0x6')](),controller[_0x4ae2('0xd')]);module['exports']=router;