5df996e8e4d540452f2950876763943f5595563f
[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 _0x23f6=['util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','post','/:id/clone','create','put','/:id','update','delete','destroy','exports','multer'];(function(_0x227837,_0x186ef4){var _0x29a56c=function(_0x17711a){while(--_0x17711a){_0x227837['push'](_0x227837['shift']());}};_0x29a56c(++_0x186ef4);}(_0x23f6,0x103));var _0x623f=function(_0x527212,_0xfdb598){_0x527212=_0x527212-0x0;var _0x504753=_0x23f6[_0x527212];return _0x504753;};'use strict';var multer=require(_0x623f('0x0'));var util=require(_0x623f('0x1'));var path=require(_0x623f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x623f('0x3')]();var fs_extra=require(_0x623f('0x4'));var auth=require(_0x623f('0x5'));var interaction=require(_0x623f('0x6'));var config=require(_0x623f('0x7'));var controller=require('./trunk.controller');router[_0x623f('0x8')]('/',auth[_0x623f('0x9')](),controller['index']);router[_0x623f('0x8')]('/:id',auth[_0x623f('0x9')](),controller[_0x623f('0xa')]);router[_0x623f('0xb')](_0x623f('0xc'),auth[_0x623f('0x9')](),controller['clone']);router[_0x623f('0xb')]('/',auth[_0x623f('0x9')](),controller[_0x623f('0xd')]);router[_0x623f('0xe')](_0x623f('0xf'),auth[_0x623f('0x9')](),controller[_0x623f('0x10')]);router[_0x623f('0x11')](_0x623f('0xf'),auth['isAuthenticated'](),controller[_0x623f('0x12')]);module[_0x623f('0x13')]=router;