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 _0x19ec=['../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','show','post','/:id/clone','create','put','update','delete','destroy','multer','path','connect-timeout','express','fs-extra'];(function(_0x421cf8,_0x23152c){var _0x145c48=function(_0x565862){while(--_0x565862){_0x421cf8['push'](_0x421cf8['shift']());}};_0x145c48(++_0x23152c);}(_0x19ec,0x73));var _0xc19e=function(_0x68c979,_0x431cff){_0x68c979=_0x68c979-0x0;var _0x4f0001=_0x19ec[_0x68c979];return _0x4f0001;};'use strict';var multer=require(_0xc19e('0x0'));var util=require('util');var path=require(_0xc19e('0x1'));var timeout=require(_0xc19e('0x2'));var express=require(_0xc19e('0x3'));var router=express['Router']();var fs_extra=require(_0xc19e('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc19e('0x5'));var config=require(_0xc19e('0x6'));var controller=require(_0xc19e('0x7'));router[_0xc19e('0x8')]('/',auth[_0xc19e('0x9')](),controller[_0xc19e('0xa')]);router[_0xc19e('0x8')](_0xc19e('0xb'),auth[_0xc19e('0x9')](),controller[_0xc19e('0xc')]);router[_0xc19e('0xd')](_0xc19e('0xe'),auth[_0xc19e('0x9')](),controller['clone']);router['post']('/',auth[_0xc19e('0x9')](),controller[_0xc19e('0xf')]);router[_0xc19e('0x10')](_0xc19e('0xb'),auth['isAuthenticated'](),controller[_0xc19e('0x11')]);router[_0xc19e('0x12')](_0xc19e('0xb'),auth[_0xc19e('0x9')](),controller[_0xc19e('0x13')]);module['exports']=router;