bd023f76fc991da68dcdadad1fffb6851db89067
[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 _0x26c2=['index','/:id','/:id/clone','clone','post','create','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated'];(function(_0x25f95f,_0x14f8ff){var _0x2c5a9b=function(_0x109cf6){while(--_0x109cf6){_0x25f95f['push'](_0x25f95f['shift']());}};_0x2c5a9b(++_0x14f8ff);}(_0x26c2,0x10e));var _0x226c=function(_0x404593,_0x56312c){_0x404593=_0x404593-0x0;var _0x45b1eb=_0x26c2[_0x404593];return _0x45b1eb;};'use strict';var multer=require(_0x226c('0x0'));var util=require(_0x226c('0x1'));var path=require(_0x226c('0x2'));var timeout=require(_0x226c('0x3'));var express=require(_0x226c('0x4'));var router=express[_0x226c('0x5')]();var fs_extra=require(_0x226c('0x6'));var auth=require(_0x226c('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./trunk.controller');router[_0x226c('0x8')]('/',auth[_0x226c('0x9')](),controller[_0x226c('0xa')]);router[_0x226c('0x8')](_0x226c('0xb'),auth[_0x226c('0x9')](),controller['show']);router['post'](_0x226c('0xc'),auth['isAuthenticated'](),controller[_0x226c('0xd')]);router[_0x226c('0xe')]('/',auth['isAuthenticated'](),controller[_0x226c('0xf')]);router['put'](_0x226c('0xb'),auth[_0x226c('0x9')](),controller[_0x226c('0x10')]);router[_0x226c('0x11')]('/:id',auth[_0x226c('0x9')](),controller[_0x226c('0x12')]);module[_0x226c('0x13')]=router;