Built motion from commit 9d7072cc.|2.5.39
[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 _0x9675=['clone','post','create','put','/:id','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','isAuthenticated','index','get','show','/:id/clone'];(function(_0x3e69ae,_0x366e8d){var _0x3d7f42=function(_0x5df093){while(--_0x5df093){_0x3e69ae['push'](_0x3e69ae['shift']());}};_0x3d7f42(++_0x366e8d);}(_0x9675,0x76));var _0x5967=function(_0x4da2a1,_0x173a07){_0x4da2a1=_0x4da2a1-0x0;var _0x2e4b2d=_0x9675[_0x4da2a1];return _0x2e4b2d;};'use strict';var multer=require(_0x5967('0x0'));var util=require('util');var path=require(_0x5967('0x1'));var timeout=require('connect-timeout');var express=require(_0x5967('0x2'));var router=express[_0x5967('0x3')]();var fs_extra=require(_0x5967('0x4'));var auth=require(_0x5967('0x5'));var interaction=require(_0x5967('0x6'));var config=require(_0x5967('0x7'));var controller=require(_0x5967('0x8'));router['get']('/',auth[_0x5967('0x9')](),controller[_0x5967('0xa')]);router[_0x5967('0xb')]('/:id',auth[_0x5967('0x9')](),controller[_0x5967('0xc')]);router['post'](_0x5967('0xd'),auth[_0x5967('0x9')](),controller[_0x5967('0xe')]);router[_0x5967('0xf')]('/',auth[_0x5967('0x9')](),controller[_0x5967('0x10')]);router[_0x5967('0x11')](_0x5967('0x12'),auth[_0x5967('0x9')](),controller['update']);router[_0x5967('0x13')](_0x5967('0x12'),auth[_0x5967('0x9')](),controller[_0x5967('0x14')]);module[_0x5967('0x15')]=router;