Built motion from commit da24aabd.|2.6.20
[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 _0x8a8a=['put','update','delete','destroy','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','post','/:id/clone','clone','create'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x8a8a,0x158));var _0xa8a8=function(_0x1f05f6,_0x27c69d){_0x1f05f6=_0x1f05f6-0x0;var _0x1ccf07=_0x8a8a[_0x1f05f6];return _0x1ccf07;};'use strict';var multer=require(_0xa8a8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa8a8('0x1'));var express=require(_0xa8a8('0x2'));var router=express[_0xa8a8('0x3')]();var fs_extra=require(_0xa8a8('0x4'));var auth=require(_0xa8a8('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa8a8('0x6'));var controller=require(_0xa8a8('0x7'));router[_0xa8a8('0x8')]('/',auth[_0xa8a8('0x9')](),controller[_0xa8a8('0xa')]);router['get'](_0xa8a8('0xb'),auth[_0xa8a8('0x9')](),controller['show']);router[_0xa8a8('0xc')](_0xa8a8('0xd'),auth[_0xa8a8('0x9')](),controller[_0xa8a8('0xe')]);router[_0xa8a8('0xc')]('/',auth[_0xa8a8('0x9')](),controller[_0xa8a8('0xf')]);router[_0xa8a8('0x10')](_0xa8a8('0xb'),auth[_0xa8a8('0x9')](),controller[_0xa8a8('0x11')]);router[_0xa8a8('0x12')](_0xa8a8('0xb'),auth[_0xa8a8('0x9')](),controller[_0xa8a8('0x13')]);module['exports']=router;