6729678774b57835ad7d125ddb08f6b008b302e0
[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 _0x9858=['express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','post','/:id/clone','clone','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout'];(function(_0x56aa4,_0x441bb3){var _0x54c55a=function(_0x4facc7){while(--_0x4facc7){_0x56aa4['push'](_0x56aa4['shift']());}};_0x54c55a(++_0x441bb3);}(_0x9858,0x1ca));var _0x8985=function(_0x55f715,_0x464c9d){_0x55f715=_0x55f715-0x0;var _0x58c392=_0x9858[_0x55f715];return _0x58c392;};'use strict';var multer=require(_0x8985('0x0'));var util=require(_0x8985('0x1'));var path=require(_0x8985('0x2'));var timeout=require(_0x8985('0x3'));var express=require(_0x8985('0x4'));var router=express[_0x8985('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x8985('0x6'));var interaction=require(_0x8985('0x7'));var config=require('../../config/environment');var controller=require('./trunk.controller');router[_0x8985('0x8')]('/',auth[_0x8985('0x9')](),controller[_0x8985('0xa')]);router['get']('/:id',auth[_0x8985('0x9')](),controller[_0x8985('0xb')]);router[_0x8985('0xc')](_0x8985('0xd'),auth[_0x8985('0x9')](),controller[_0x8985('0xe')]);router['post']('/',auth[_0x8985('0x9')](),controller[_0x8985('0xf')]);router[_0x8985('0x10')](_0x8985('0x11'),auth['isAuthenticated'](),controller[_0x8985('0x12')]);router[_0x8985('0x13')](_0x8985('0x11'),auth['isAuthenticated'](),controller['destroy']);module[_0x8985('0x14')]=router;