c169bb6b0288dca2d1e19a767b43c6808eb45f1b
[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 _0x5c29=['isAuthenticated','index','/:id','/:id/clone','clone','post','create','put','update','exports','multer','path','Router','fs-extra','../../components/interaction/service','../../config/environment','./trunk.controller','get'];(function(_0x3b2d2f,_0x341d1b){var _0x1ec205=function(_0x3f411d){while(--_0x3f411d){_0x3b2d2f['push'](_0x3b2d2f['shift']());}};_0x1ec205(++_0x341d1b);}(_0x5c29,0x1ba));var _0x95c2=function(_0x19be56,_0x11ee42){_0x19be56=_0x19be56-0x0;var _0x4855ee=_0x5c29[_0x19be56];return _0x4855ee;};'use strict';var multer=require(_0x95c2('0x0'));var util=require('util');var path=require(_0x95c2('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x95c2('0x2')]();var fs_extra=require(_0x95c2('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x95c2('0x4'));var config=require(_0x95c2('0x5'));var controller=require(_0x95c2('0x6'));router[_0x95c2('0x7')]('/',auth[_0x95c2('0x8')](),controller[_0x95c2('0x9')]);router[_0x95c2('0x7')](_0x95c2('0xa'),auth['isAuthenticated'](),controller['show']);router['post'](_0x95c2('0xb'),auth['isAuthenticated'](),controller[_0x95c2('0xc')]);router[_0x95c2('0xd')]('/',auth[_0x95c2('0x8')](),controller[_0x95c2('0xe')]);router[_0x95c2('0xf')](_0x95c2('0xa'),auth[_0x95c2('0x8')](),controller[_0x95c2('0x10')]);router['delete']('/:id',auth[_0x95c2('0x8')](),controller['destroy']);module[_0x95c2('0x11')]=router;