753018d05817d86f143abf4e282b4f86fe7f2fc4
[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 _0x67c4=['clone','put','update','destroy','exports','util','express','Router','fs-extra','../../components/auth/service','../../config/environment','./trunk.controller','get','isAuthenticated','/:id','show','post','/:id/clone'];(function(_0x575335,_0x3955b8){var _0x1b9677=function(_0x19215c){while(--_0x19215c){_0x575335['push'](_0x575335['shift']());}};_0x1b9677(++_0x3955b8);}(_0x67c4,0x125));var _0x467c=function(_0x9dfc10,_0x19c2d5){_0x9dfc10=_0x9dfc10-0x0;var _0x4f938a=_0x67c4[_0x9dfc10];return _0x4f938a;};'use strict';var multer=require('multer');var util=require(_0x467c('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x467c('0x1'));var router=express[_0x467c('0x2')]();var fs_extra=require(_0x467c('0x3'));var auth=require(_0x467c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x467c('0x5'));var controller=require(_0x467c('0x6'));router[_0x467c('0x7')]('/',auth[_0x467c('0x8')](),controller['index']);router[_0x467c('0x7')](_0x467c('0x9'),auth[_0x467c('0x8')](),controller[_0x467c('0xa')]);router[_0x467c('0xb')](_0x467c('0xc'),auth[_0x467c('0x8')](),controller[_0x467c('0xd')]);router[_0x467c('0xb')]('/',auth[_0x467c('0x8')](),controller['create']);router[_0x467c('0xe')](_0x467c('0x9'),auth[_0x467c('0x8')](),controller[_0x467c('0xf')]);router['delete'](_0x467c('0x9'),auth[_0x467c('0x8')](),controller[_0x467c('0x10')]);module[_0x467c('0x11')]=router;