e7a2d68c0be87aaede3b62454c8d43a687b510bb
[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 _0xa6ee=['put','delete','/:id','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./trunk.controller','get','isAuthenticated','show','post','/:id/clone','clone','create'];(function(_0x4e5587,_0x5a18fe){var _0xe632e2=function(_0x2a6d9f){while(--_0x2a6d9f){_0x4e5587['push'](_0x4e5587['shift']());}};_0xe632e2(++_0x5a18fe);}(_0xa6ee,0x131));var _0xea6e=function(_0x347826,_0x3a7212){_0x347826=_0x347826-0x0;var _0x6fd1a8=_0xa6ee[_0x347826];return _0x6fd1a8;};'use strict';var multer=require(_0xea6e('0x0'));var util=require(_0xea6e('0x1'));var path=require('path');var timeout=require(_0xea6e('0x2'));var express=require('express');var router=express[_0xea6e('0x3')]();var fs_extra=require(_0xea6e('0x4'));var auth=require(_0xea6e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xea6e('0x6'));var controller=require(_0xea6e('0x7'));router[_0xea6e('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0xea6e('0x9')](),controller[_0xea6e('0xa')]);router[_0xea6e('0xb')](_0xea6e('0xc'),auth['isAuthenticated'](),controller[_0xea6e('0xd')]);router[_0xea6e('0xb')]('/',auth['isAuthenticated'](),controller[_0xea6e('0xe')]);router[_0xea6e('0xf')]('/:id',auth[_0xea6e('0x9')](),controller['update']);router[_0xea6e('0x10')](_0xea6e('0x11'),auth[_0xea6e('0x9')](),controller[_0xea6e('0x12')]);module[_0xea6e('0x13')]=router;