6870575281d95ed0e48e72cd4787878ad6c6ac23
[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 _0x40c5=['path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/clone','clone','create','put','/:id','update','delete','exports','multer','util'];(function(_0x3bcd64,_0x8faae0){var _0x182564=function(_0x36ec03){while(--_0x36ec03){_0x3bcd64['push'](_0x3bcd64['shift']());}};_0x182564(++_0x8faae0);}(_0x40c5,0xa6));var _0x540c=function(_0x53c7ea,_0x13789e){_0x53c7ea=_0x53c7ea-0x0;var _0x4197e1=_0x40c5[_0x53c7ea];return _0x4197e1;};'use strict';var multer=require(_0x540c('0x0'));var util=require(_0x540c('0x1'));var path=require(_0x540c('0x2'));var timeout=require('connect-timeout');var express=require(_0x540c('0x3'));var router=express[_0x540c('0x4')]();var fs_extra=require(_0x540c('0x5'));var auth=require(_0x540c('0x6'));var interaction=require(_0x540c('0x7'));var config=require(_0x540c('0x8'));var controller=require('./trunk.controller');router[_0x540c('0x9')]('/',auth[_0x540c('0xa')](),controller[_0x540c('0xb')]);router[_0x540c('0x9')]('/:id',auth[_0x540c('0xa')](),controller[_0x540c('0xc')]);router['post'](_0x540c('0xd'),auth['isAuthenticated'](),controller[_0x540c('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x540c('0xf')]);router[_0x540c('0x10')](_0x540c('0x11'),auth[_0x540c('0xa')](),controller[_0x540c('0x12')]);router[_0x540c('0x13')](_0x540c('0x11'),auth['isAuthenticated'](),controller['destroy']);module[_0x540c('0x14')]=router;