Built motion from commit (unavailable).|2.5.8
[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 _0x5fd1=['path','connect-timeout','express','../../components/interaction/service','../../config/environment','./trunk.controller','isAuthenticated','index','get','/:id','post','/:id/clone','create','put','delete','destroy','exports','multer'];(function(_0x4a1b3c,_0x20aa97){var _0xe314d7=function(_0x220bdf){while(--_0x220bdf){_0x4a1b3c['push'](_0x4a1b3c['shift']());}};_0xe314d7(++_0x20aa97);}(_0x5fd1,0x155));var _0x15fd=function(_0x349ae1,_0x3c5ae7){_0x349ae1=_0x349ae1-0x0;var _0x37f3d5=_0x5fd1[_0x349ae1];return _0x37f3d5;};'use strict';var multer=require(_0x15fd('0x0'));var util=require('util');var path=require(_0x15fd('0x1'));var timeout=require(_0x15fd('0x2'));var express=require(_0x15fd('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x15fd('0x4'));var config=require(_0x15fd('0x5'));var controller=require(_0x15fd('0x6'));router['get']('/',auth[_0x15fd('0x7')](),controller[_0x15fd('0x8')]);router[_0x15fd('0x9')](_0x15fd('0xa'),auth[_0x15fd('0x7')](),controller['show']);router[_0x15fd('0xb')](_0x15fd('0xc'),auth[_0x15fd('0x7')](),controller['clone']);router[_0x15fd('0xb')]('/',auth['isAuthenticated'](),controller[_0x15fd('0xd')]);router[_0x15fd('0xe')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x15fd('0xf')](_0x15fd('0xa'),auth[_0x15fd('0x7')](),controller[_0x15fd('0x10')]);module[_0x15fd('0x11')]=router;