Built motion from commit ab870f9e.|2.5.44
[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 _0x9a5e=['put','update','delete','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./trunk.controller','index','get','/:id','isAuthenticated','show','post','/:id/clone','clone','create'];(function(_0x23a16e,_0x452f3d){var _0x3bff75=function(_0x5c079d){while(--_0x5c079d){_0x23a16e['push'](_0x23a16e['shift']());}};_0x3bff75(++_0x452f3d);}(_0x9a5e,0xab));var _0xe9a5=function(_0x12c4cf,_0x51b614){_0x12c4cf=_0x12c4cf-0x0;var _0x34db23=_0x9a5e[_0x12c4cf];return _0x34db23;};'use strict';var multer=require(_0xe9a5('0x0'));var util=require(_0xe9a5('0x1'));var path=require(_0xe9a5('0x2'));var timeout=require(_0xe9a5('0x3'));var express=require(_0xe9a5('0x4'));var router=express['Router']();var fs_extra=require(_0xe9a5('0x5'));var auth=require(_0xe9a5('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xe9a5('0x7'));var controller=require(_0xe9a5('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xe9a5('0x9')]);router[_0xe9a5('0xa')](_0xe9a5('0xb'),auth[_0xe9a5('0xc')](),controller[_0xe9a5('0xd')]);router[_0xe9a5('0xe')](_0xe9a5('0xf'),auth[_0xe9a5('0xc')](),controller[_0xe9a5('0x10')]);router[_0xe9a5('0xe')]('/',auth['isAuthenticated'](),controller[_0xe9a5('0x11')]);router[_0xe9a5('0x12')](_0xe9a5('0xb'),auth[_0xe9a5('0xc')](),controller[_0xe9a5('0x13')]);router[_0xe9a5('0x14')]('/:id',auth[_0xe9a5('0xc')](),controller['destroy']);module['exports']=router;