Built motion from commit (unavailable).|2.5.30
[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 _0xacfb=['isAuthenticated','index','get','/:id','show','post','clone','put','update','delete','destroy','exports','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x307b54,_0x4a4cbf){var _0x24137c=function(_0x10ea83){while(--_0x10ea83){_0x307b54['push'](_0x307b54['shift']());}};_0x24137c(++_0x4a4cbf);}(_0xacfb,0x91));var _0xbacf=function(_0xdcd553,_0x4012d8){_0xdcd553=_0xdcd553-0x0;var _0x2a2eb3=_0xacfb[_0xdcd553];return _0x2a2eb3;};'use strict';var multer=require(_0xbacf('0x0'));var util=require(_0xbacf('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbacf('0x2'));var router=express['Router']();var fs_extra=require(_0xbacf('0x3'));var auth=require(_0xbacf('0x4'));var interaction=require(_0xbacf('0x5'));var config=require(_0xbacf('0x6'));var controller=require('./trunk.controller');router['get']('/',auth[_0xbacf('0x7')](),controller[_0xbacf('0x8')]);router[_0xbacf('0x9')](_0xbacf('0xa'),auth[_0xbacf('0x7')](),controller[_0xbacf('0xb')]);router[_0xbacf('0xc')]('/:id/clone',auth[_0xbacf('0x7')](),controller[_0xbacf('0xd')]);router['post']('/',auth[_0xbacf('0x7')](),controller['create']);router[_0xbacf('0xe')](_0xbacf('0xa'),auth[_0xbacf('0x7')](),controller[_0xbacf('0xf')]);router[_0xbacf('0x10')](_0xbacf('0xa'),auth[_0xbacf('0x7')](),controller[_0xbacf('0x11')]);module[_0xbacf('0x12')]=router;