Built motion from commit e0fa946e.|2.6.5
[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 _0xcb84=['delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/clone','clone'];(function(_0x23eaf0,_0x347b70){var _0x353da4=function(_0x22a504){while(--_0x22a504){_0x23eaf0['push'](_0x23eaf0['shift']());}};_0x353da4(++_0x347b70);}(_0xcb84,0x93));var _0x4cb8=function(_0x3b96cf,_0x1592f2){_0x3b96cf=_0x3b96cf-0x0;var _0x2e315a=_0xcb84[_0x3b96cf];return _0x2e315a;};'use strict';var multer=require(_0x4cb8('0x0'));var util=require(_0x4cb8('0x1'));var path=require('path');var timeout=require(_0x4cb8('0x2'));var express=require(_0x4cb8('0x3'));var router=express[_0x4cb8('0x4')]();var fs_extra=require(_0x4cb8('0x5'));var auth=require(_0x4cb8('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x4cb8('0x7'));var controller=require('./trunk.controller');router[_0x4cb8('0x8')]('/',auth['isAuthenticated'](),controller[_0x4cb8('0x9')]);router['get'](_0x4cb8('0xa'),auth[_0x4cb8('0xb')](),controller[_0x4cb8('0xc')]);router['post'](_0x4cb8('0xd'),auth[_0x4cb8('0xb')](),controller[_0x4cb8('0xe')]);router['post']('/',auth[_0x4cb8('0xb')](),controller['create']);router['put']('/:id',auth[_0x4cb8('0xb')](),controller['update']);router[_0x4cb8('0xf')]('/:id',auth[_0x4cb8('0xb')](),controller[_0x4cb8('0x10')]);module[_0x4cb8('0x11')]=router;