Built motion from commit 953226e6.|2.6.32
[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 _0xd0e9=['fs-extra','../../components/auth/service','../../components/interaction/service','./trunk.controller','get','isAuthenticated','index','/:id','show','post','create','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x381589,_0x27a707){var _0x2a075d=function(_0x4ea19d){while(--_0x4ea19d){_0x381589['push'](_0x381589['shift']());}};_0x2a075d(++_0x27a707);}(_0xd0e9,0x13f));var _0x9d0e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd0e9[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x9d0e('0x0'));var util=require(_0x9d0e('0x1'));var path=require(_0x9d0e('0x2'));var timeout=require(_0x9d0e('0x3'));var express=require(_0x9d0e('0x4'));var router=express['Router']();var fs_extra=require(_0x9d0e('0x5'));var auth=require(_0x9d0e('0x6'));var interaction=require(_0x9d0e('0x7'));var config=require('../../config/environment');var controller=require(_0x9d0e('0x8'));router[_0x9d0e('0x9')]('/',auth[_0x9d0e('0xa')](),controller[_0x9d0e('0xb')]);router[_0x9d0e('0x9')](_0x9d0e('0xc'),auth[_0x9d0e('0xa')](),controller[_0x9d0e('0xd')]);router[_0x9d0e('0xe')]('/:id/clone',auth[_0x9d0e('0xa')](),controller['clone']);router[_0x9d0e('0xe')]('/',auth[_0x9d0e('0xa')](),controller[_0x9d0e('0xf')]);router['put'](_0x9d0e('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x9d0e('0xc'),auth[_0x9d0e('0xa')](),controller[_0x9d0e('0x10')]);module[_0x9d0e('0x11')]=router;