Built motion from commit b5a10faa.|2.6.13
[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 _0xe88f=['../../config/environment','./trunk.controller','index','show','post','/:id/clone','isAuthenticated','clone','create','put','/:id','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x257642,_0x270a80){var _0x3d813b=function(_0x2a1c8a){while(--_0x2a1c8a){_0x257642['push'](_0x257642['shift']());}};_0x3d813b(++_0x270a80);}(_0xe88f,0x1b1));var _0xfe88=function(_0x3f6565,_0x12a8bb){_0x3f6565=_0x3f6565-0x0;var _0x4abd23=_0xe88f[_0x3f6565];return _0x4abd23;};'use strict';var multer=require(_0xfe88('0x0'));var util=require(_0xfe88('0x1'));var path=require(_0xfe88('0x2'));var timeout=require(_0xfe88('0x3'));var express=require(_0xfe88('0x4'));var router=express[_0xfe88('0x5')]();var fs_extra=require(_0xfe88('0x6'));var auth=require(_0xfe88('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xfe88('0x8'));var controller=require(_0xfe88('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0xfe88('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xfe88('0xb')]);router[_0xfe88('0xc')](_0xfe88('0xd'),auth[_0xfe88('0xe')](),controller[_0xfe88('0xf')]);router['post']('/',auth[_0xfe88('0xe')](),controller[_0xfe88('0x10')]);router[_0xfe88('0x11')](_0xfe88('0x12'),auth[_0xfe88('0xe')](),controller['update']);router[_0xfe88('0x13')](_0xfe88('0x12'),auth['isAuthenticated'](),controller[_0xfe88('0x14')]);module['exports']=router;