Built motion from commit (unavailable).|2.5.21
[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 _0x84ab=['util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./trunk.controller','get','isAuthenticated','post','/:id/clone','clone','create','put','delete','/:id','destroy','exports','multer'];(function(_0x2f32c4,_0x531dc6){var _0x3f3018=function(_0x406998){while(--_0x406998){_0x2f32c4['push'](_0x2f32c4['shift']());}};_0x3f3018(++_0x531dc6);}(_0x84ab,0x12f));var _0xb84a=function(_0x43b08,_0x15f967){_0x43b08=_0x43b08-0x0;var _0x5e05f4=_0x84ab[_0x43b08];return _0x5e05f4;};'use strict';var multer=require(_0xb84a('0x0'));var util=require(_0xb84a('0x1'));var path=require(_0xb84a('0x2'));var timeout=require(_0xb84a('0x3'));var express=require(_0xb84a('0x4'));var router=express['Router']();var auth=require(_0xb84a('0x5'));var interaction=require(_0xb84a('0x6'));var config=require('../../config/environment');var controller=require(_0xb84a('0x7'));router[_0xb84a('0x8')]('/',auth[_0xb84a('0x9')](),controller['index']);router['get']('/:id',auth[_0xb84a('0x9')](),controller['show']);router[_0xb84a('0xa')](_0xb84a('0xb'),auth['isAuthenticated'](),controller[_0xb84a('0xc')]);router['post']('/',auth[_0xb84a('0x9')](),controller[_0xb84a('0xd')]);router[_0xb84a('0xe')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xb84a('0xf')](_0xb84a('0x10'),auth[_0xb84a('0x9')](),controller[_0xb84a('0x11')]);module[_0xb84a('0x12')]=router;