Built motion from commit (unavailable).|2.5.6
[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 _0xf3cd=['../../components/interaction/service','../../config/environment','./trunk.controller','isAuthenticated','index','get','/:id','show','/:id/clone','post','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router'];(function(_0x3d7911,_0x5d7eb0){var _0x6606ec=function(_0x53dede){while(--_0x53dede){_0x3d7911['push'](_0x3d7911['shift']());}};_0x6606ec(++_0x5d7eb0);}(_0xf3cd,0xfe));var _0xdf3c=function(_0x525b28,_0x5cf5a0){_0x525b28=_0x525b28-0x0;var _0x180178=_0xf3cd[_0x525b28];return _0x180178;};'use strict';var multer=require(_0xdf3c('0x0'));var util=require(_0xdf3c('0x1'));var path=require(_0xdf3c('0x2'));var timeout=require(_0xdf3c('0x3'));var express=require(_0xdf3c('0x4'));var router=express[_0xdf3c('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xdf3c('0x6'));var config=require(_0xdf3c('0x7'));var controller=require(_0xdf3c('0x8'));router['get']('/',auth[_0xdf3c('0x9')](),controller[_0xdf3c('0xa')]);router[_0xdf3c('0xb')](_0xdf3c('0xc'),auth[_0xdf3c('0x9')](),controller[_0xdf3c('0xd')]);router['post'](_0xdf3c('0xe'),auth['isAuthenticated'](),controller['clone']);router[_0xdf3c('0xf')]('/',auth[_0xdf3c('0x9')](),controller['create']);router[_0xdf3c('0x10')](_0xdf3c('0xc'),auth[_0xdf3c('0x9')](),controller[_0xdf3c('0x11')]);router[_0xdf3c('0x12')](_0xdf3c('0xc'),auth[_0xdf3c('0x9')](),controller[_0xdf3c('0x13')]);module['exports']=router;