Built motion from commit 1fa89557.|2.6.10
[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 _0xb2c0=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','clone','post','put','update','delete','destroy','exports','multer','util'];(function(_0x10b5c2,_0x59f7bc){var _0x3ab4b1=function(_0x1e8fa1){while(--_0x1e8fa1){_0x10b5c2['push'](_0x10b5c2['shift']());}};_0x3ab4b1(++_0x59f7bc);}(_0xb2c0,0x1de));var _0x0b2c=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xb2c0[_0x4b369d];return _0x571a98;};'use strict';var multer=require(_0x0b2c('0x0'));var util=require(_0x0b2c('0x1'));var path=require(_0x0b2c('0x2'));var timeout=require('connect-timeout');var express=require(_0x0b2c('0x3'));var router=express[_0x0b2c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x0b2c('0x5'));var interaction=require(_0x0b2c('0x6'));var config=require(_0x0b2c('0x7'));var controller=require('./trunk.controller');router[_0x0b2c('0x8')]('/',auth[_0x0b2c('0x9')](),controller[_0x0b2c('0xa')]);router[_0x0b2c('0x8')](_0x0b2c('0xb'),auth[_0x0b2c('0x9')](),controller[_0x0b2c('0xc')]);router['post']('/:id/clone',auth[_0x0b2c('0x9')](),controller[_0x0b2c('0xd')]);router[_0x0b2c('0xe')]('/',auth[_0x0b2c('0x9')](),controller['create']);router[_0x0b2c('0xf')](_0x0b2c('0xb'),auth[_0x0b2c('0x9')](),controller[_0x0b2c('0x10')]);router[_0x0b2c('0x11')](_0x0b2c('0xb'),auth[_0x0b2c('0x9')](),controller[_0x0b2c('0x12')]);module[_0x0b2c('0x13')]=router;