Built motion from commit ffdca78c.|2.6.24
[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 _0x08da=['update','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./trunk.controller','get','isAuthenticated','index','/:id','show','post','/:id/clone','put'];(function(_0x1857d0,_0x6eade0){var _0x3e3c46=function(_0x3915b8){while(--_0x3915b8){_0x1857d0['push'](_0x1857d0['shift']());}};_0x3e3c46(++_0x6eade0);}(_0x08da,0xca));var _0xa08d=function(_0x5f0089,_0x227e2c){_0x5f0089=_0x5f0089-0x0;var _0x193892=_0x08da[_0x5f0089];return _0x193892;};'use strict';var multer=require(_0xa08d('0x0'));var util=require(_0xa08d('0x1'));var path=require(_0xa08d('0x2'));var timeout=require(_0xa08d('0x3'));var express=require(_0xa08d('0x4'));var router=express[_0xa08d('0x5')]();var fs_extra=require(_0xa08d('0x6'));var auth=require(_0xa08d('0x7'));var interaction=require(_0xa08d('0x8'));var config=require('../../config/environment');var controller=require(_0xa08d('0x9'));router[_0xa08d('0xa')]('/',auth[_0xa08d('0xb')](),controller[_0xa08d('0xc')]);router[_0xa08d('0xa')](_0xa08d('0xd'),auth['isAuthenticated'](),controller[_0xa08d('0xe')]);router[_0xa08d('0xf')](_0xa08d('0x10'),auth[_0xa08d('0xb')](),controller['clone']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xa08d('0x11')](_0xa08d('0xd'),auth[_0xa08d('0xb')](),controller[_0xa08d('0x12')]);router['delete'](_0xa08d('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xa08d('0x13')]=router;