e4bbdf901038d64803acca274da3b40ef6d3f433
[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 _0x3924=['./trunk.controller','get','isAuthenticated','/:id','post','/:id/clone','clone','update','delete','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x187718,_0x427383){var _0x29ddf4=function(_0x2ec62a){while(--_0x2ec62a){_0x187718['push'](_0x187718['shift']());}};_0x29ddf4(++_0x427383);}(_0x3924,0xa3));var _0x4392=function(_0x4195c1,_0x4821f4){_0x4195c1=_0x4195c1-0x0;var _0x4e5cb7=_0x3924[_0x4195c1];return _0x4e5cb7;};'use strict';var multer=require(_0x4392('0x0'));var util=require(_0x4392('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4392('0x2'));var router=express[_0x4392('0x3')]();var fs_extra=require(_0x4392('0x4'));var auth=require(_0x4392('0x5'));var interaction=require(_0x4392('0x6'));var config=require('../../config/environment');var controller=require(_0x4392('0x7'));router[_0x4392('0x8')]('/',auth[_0x4392('0x9')](),controller['index']);router[_0x4392('0x8')](_0x4392('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x4392('0xb')](_0x4392('0xc'),auth[_0x4392('0x9')](),controller[_0x4392('0xd')]);router['post']('/',auth[_0x4392('0x9')](),controller['create']);router['put'](_0x4392('0xa'),auth[_0x4392('0x9')](),controller[_0x4392('0xe')]);router[_0x4392('0xf')](_0x4392('0xa'),auth[_0x4392('0x9')](),controller['destroy']);module[_0x4392('0x10')]=router;