d320b3c21f10cd8da490de3ad404bd068a3276d5
[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 _0x6a95=['/:id','show','post','clone','create','put','delete','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index'];(function(_0x1fccec,_0x48c67f){var _0x5b98b5=function(_0x1f788b){while(--_0x1f788b){_0x1fccec['push'](_0x1fccec['shift']());}};_0x5b98b5(++_0x48c67f);}(_0x6a95,0x117));var _0x56a9=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x6a95[_0x1facfa];return _0x9ec701;};'use strict';var multer=require(_0x56a9('0x0'));var util=require('util');var path=require(_0x56a9('0x1'));var timeout=require('connect-timeout');var express=require(_0x56a9('0x2'));var router=express['Router']();var fs_extra=require(_0x56a9('0x3'));var auth=require(_0x56a9('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x56a9('0x5'));var controller=require('./trunk.controller');router[_0x56a9('0x6')]('/',auth[_0x56a9('0x7')](),controller[_0x56a9('0x8')]);router['get'](_0x56a9('0x9'),auth[_0x56a9('0x7')](),controller[_0x56a9('0xa')]);router[_0x56a9('0xb')]('/:id/clone',auth[_0x56a9('0x7')](),controller[_0x56a9('0xc')]);router[_0x56a9('0xb')]('/',auth[_0x56a9('0x7')](),controller[_0x56a9('0xd')]);router[_0x56a9('0xe')]('/:id',auth[_0x56a9('0x7')](),controller['update']);router[_0x56a9('0xf')](_0x56a9('0x9'),auth[_0x56a9('0x7')](),controller[_0x56a9('0x10')]);module[_0x56a9('0x11')]=router;