171e76f3db6a9cb78830baceff8b8439fc3bb2ef
[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 _0xafac=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trunk.controller','get','isAuthenticated','post','/:id/clone','clone','create','/:id','update','delete','multer','util','path','connect-timeout'];(function(_0x661318,_0x2b5cb3){var _0x31b5ba=function(_0x2e366d){while(--_0x2e366d){_0x661318['push'](_0x661318['shift']());}};_0x31b5ba(++_0x2b5cb3);}(_0xafac,0x1d7));var _0xcafa=function(_0x3414fa,_0x30f564){_0x3414fa=_0x3414fa-0x0;var _0x2bd392=_0xafac[_0x3414fa];return _0x2bd392;};'use strict';var multer=require(_0xcafa('0x0'));var util=require(_0xcafa('0x1'));var path=require(_0xcafa('0x2'));var timeout=require(_0xcafa('0x3'));var express=require('express');var router=express[_0xcafa('0x4')]();var fs_extra=require(_0xcafa('0x5'));var auth=require(_0xcafa('0x6'));var interaction=require(_0xcafa('0x7'));var config=require(_0xcafa('0x8'));var controller=require(_0xcafa('0x9'));router[_0xcafa('0xa')]('/',auth[_0xcafa('0xb')](),controller['index']);router[_0xcafa('0xa')]('/:id',auth[_0xcafa('0xb')](),controller['show']);router[_0xcafa('0xc')](_0xcafa('0xd'),auth[_0xcafa('0xb')](),controller[_0xcafa('0xe')]);router[_0xcafa('0xc')]('/',auth[_0xcafa('0xb')](),controller[_0xcafa('0xf')]);router['put'](_0xcafa('0x10'),auth[_0xcafa('0xb')](),controller[_0xcafa('0x11')]);router[_0xcafa('0x12')]('/:id',auth[_0xcafa('0xb')](),controller['destroy']);module['exports']=router;