Built motion from commit (unavailable).|2.5.22
[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 _0xd0bb=['express','../../components/auth/service','../../components/interaction/service','./trunk.controller','isAuthenticated','index','get','/:id','post','/:id/clone','clone','put','update','delete','destroy','exports','multer','util','path'];(function(_0xbdfd91,_0x222e83){var _0x4e49e2=function(_0x3b2d79){while(--_0x3b2d79){_0xbdfd91['push'](_0xbdfd91['shift']());}};_0x4e49e2(++_0x222e83);}(_0xd0bb,0x1eb));var _0xbd0b=function(_0x5d8076,_0x2b476a){_0x5d8076=_0x5d8076-0x0;var _0x26811a=_0xd0bb[_0x5d8076];return _0x26811a;};'use strict';var multer=require(_0xbd0b('0x0'));var util=require(_0xbd0b('0x1'));var path=require(_0xbd0b('0x2'));var timeout=require('connect-timeout');var express=require(_0xbd0b('0x3'));var router=express['Router']();var auth=require(_0xbd0b('0x4'));var interaction=require(_0xbd0b('0x5'));var config=require('../../config/environment');var controller=require(_0xbd0b('0x6'));router['get']('/',auth[_0xbd0b('0x7')](),controller[_0xbd0b('0x8')]);router[_0xbd0b('0x9')](_0xbd0b('0xa'),auth[_0xbd0b('0x7')](),controller['show']);router[_0xbd0b('0xb')](_0xbd0b('0xc'),auth[_0xbd0b('0x7')](),controller[_0xbd0b('0xd')]);router[_0xbd0b('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xbd0b('0xe')](_0xbd0b('0xa'),auth['isAuthenticated'](),controller[_0xbd0b('0xf')]);router[_0xbd0b('0x10')]('/:id',auth[_0xbd0b('0x7')](),controller[_0xbd0b('0x11')]);module[_0xbd0b('0x12')]=router;