16dbdaf8b83d81e0b032398a787cb26209551fd5
[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 _0x5067=['fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','update','destroy','exports','multer','util','path','connect-timeout','Router'];(function(_0x1eb22c,_0x2cd10d){var _0x12dddc=function(_0x187dc4){while(--_0x187dc4){_0x1eb22c['push'](_0x1eb22c['shift']());}};_0x12dddc(++_0x2cd10d);}(_0x5067,0x10b));var _0x7506=function(_0x1d8ed4,_0x442966){_0x1d8ed4=_0x1d8ed4-0x0;var _0xb2e66f=_0x5067[_0x1d8ed4];return _0xb2e66f;};'use strict';var multer=require(_0x7506('0x0'));var util=require(_0x7506('0x1'));var path=require(_0x7506('0x2'));var timeout=require(_0x7506('0x3'));var express=require('express');var router=express[_0x7506('0x4')]();var fs_extra=require(_0x7506('0x5'));var auth=require(_0x7506('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x7506('0x7'));var controller=require('./trunk.controller');router[_0x7506('0x8')]('/',auth[_0x7506('0x9')](),controller['index']);router[_0x7506('0x8')](_0x7506('0xa'),auth['isAuthenticated'](),controller[_0x7506('0xb')]);router['post']('/:id/clone',auth[_0x7506('0x9')](),controller['clone']);router[_0x7506('0xc')]('/',auth[_0x7506('0x9')](),controller[_0x7506('0xd')]);router['put']('/:id',auth[_0x7506('0x9')](),controller[_0x7506('0xe')]);router['delete'](_0x7506('0xa'),auth[_0x7506('0x9')](),controller[_0x7506('0xf')]);module[_0x7506('0x10')]=router;