Built motion from commit 3c2ce842.|2.6.31
[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 _0x52a1=['delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','show','post','/:id/clone','clone','put','/:id','update'];(function(_0x1f9931,_0x2f3973){var _0x4a7ce1=function(_0x19b2b2){while(--_0x19b2b2){_0x1f9931['push'](_0x1f9931['shift']());}};_0x4a7ce1(++_0x2f3973);}(_0x52a1,0x1a5));var _0x152a=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x52a1[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x152a('0x0'));var util=require(_0x152a('0x1'));var path=require(_0x152a('0x2'));var timeout=require('connect-timeout');var express=require(_0x152a('0x3'));var router=express[_0x152a('0x4')]();var fs_extra=require(_0x152a('0x5'));var auth=require(_0x152a('0x6'));var interaction=require(_0x152a('0x7'));var config=require(_0x152a('0x8'));var controller=require(_0x152a('0x9'));router[_0x152a('0xa')]('/',auth[_0x152a('0xb')](),controller['index']);router[_0x152a('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x152a('0xc')]);router[_0x152a('0xd')](_0x152a('0xe'),auth[_0x152a('0xb')](),controller[_0x152a('0xf')]);router[_0x152a('0xd')]('/',auth[_0x152a('0xb')](),controller['create']);router[_0x152a('0x10')](_0x152a('0x11'),auth[_0x152a('0xb')](),controller[_0x152a('0x12')]);router[_0x152a('0x13')](_0x152a('0x11'),auth[_0x152a('0xb')](),controller[_0x152a('0x14')]);module[_0x152a('0x15')]=router;