cbf52cb4ac8be3c0b015383590b6d2dbb1865d6a
[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 _0x8e4a=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','index','/:id','show','post','update','destroy','exports','multer'];(function(_0x484640,_0x2ab507){var _0x327c1a=function(_0x492eb0){while(--_0x492eb0){_0x484640['push'](_0x484640['shift']());}};_0x327c1a(++_0x2ab507);}(_0x8e4a,0xd7));var _0xa8e4=function(_0x2b8b66,_0x3f7f11){_0x2b8b66=_0x2b8b66-0x0;var _0x2e3ff6=_0x8e4a[_0x2b8b66];return _0x2e3ff6;};'use strict';var multer=require(_0xa8e4('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa8e4('0x1'));var express=require(_0xa8e4('0x2'));var router=express[_0xa8e4('0x3')]();var fs_extra=require(_0xa8e4('0x4'));var auth=require(_0xa8e4('0x5'));var interaction=require(_0xa8e4('0x6'));var config=require(_0xa8e4('0x7'));var controller=require(_0xa8e4('0x8'));router[_0xa8e4('0x9')]('/',auth[_0xa8e4('0xa')](),controller[_0xa8e4('0xb')]);router[_0xa8e4('0x9')](_0xa8e4('0xc'),auth[_0xa8e4('0xa')](),controller[_0xa8e4('0xd')]);router[_0xa8e4('0xe')]('/:id/clone',auth[_0xa8e4('0xa')](),controller['clone']);router['post']('/',auth[_0xa8e4('0xa')](),controller['create']);router['put'](_0xa8e4('0xc'),auth['isAuthenticated'](),controller[_0xa8e4('0xf')]);router['delete'](_0xa8e4('0xc'),auth['isAuthenticated'](),controller[_0xa8e4('0x10')]);module[_0xa8e4('0x11')]=router;