Built motion from commit (unavailable).|2.3.4
[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 _0x2b7f=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/clone','clone','post','/:id','update','destroy','exports','multer','path','Router'];(function(_0x155bbf,_0x1bca34){var _0x1cb0ac=function(_0x101c7c){while(--_0x101c7c){_0x155bbf['push'](_0x155bbf['shift']());}};_0x1cb0ac(++_0x1bca34);}(_0x2b7f,0x8d));var _0xf2b7=function(_0x1be240,_0x23e0f0){_0x1be240=_0x1be240-0x0;var _0x37361d=_0x2b7f[_0x1be240];return _0x37361d;};'use strict';var multer=require(_0xf2b7('0x0'));var util=require('util');var path=require(_0xf2b7('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf2b7('0x2')]();var auth=require(_0xf2b7('0x3'));var interaction=require(_0xf2b7('0x4'));var config=require(_0xf2b7('0x5'));var controller=require('./trunk.controller');router[_0xf2b7('0x6')]('/',auth[_0xf2b7('0x7')](),controller[_0xf2b7('0x8')]);router[_0xf2b7('0x6')]('/:id',auth[_0xf2b7('0x7')](),controller['show']);router['post'](_0xf2b7('0x9'),auth[_0xf2b7('0x7')](),controller[_0xf2b7('0xa')]);router[_0xf2b7('0xb')]('/',auth[_0xf2b7('0x7')](),controller['create']);router['put'](_0xf2b7('0xc'),auth[_0xf2b7('0x7')](),controller[_0xf2b7('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xf2b7('0xe')]);module[_0xf2b7('0xf')]=router;