06968974387678df217de014f96bfc84144b011a
[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 _0xf653=['exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','clone','update','delete','destroy'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xf653,0x188));var _0x3f65=function(_0x24194b,_0x531f7d){_0x24194b=_0x24194b-0x0;var _0x9f0e72=_0xf653[_0x24194b];return _0x9f0e72;};'use strict';var multer=require(_0x3f65('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3f65('0x1'));var express=require(_0x3f65('0x2'));var router=express[_0x3f65('0x3')]();var fs_extra=require(_0x3f65('0x4'));var auth=require(_0x3f65('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3f65('0x6'));var controller=require('./trunk.controller');router[_0x3f65('0x7')]('/',auth[_0x3f65('0x8')](),controller['index']);router[_0x3f65('0x7')](_0x3f65('0x9'),auth[_0x3f65('0x8')](),controller[_0x3f65('0xa')]);router[_0x3f65('0xb')]('/:id/clone',auth[_0x3f65('0x8')](),controller[_0x3f65('0xc')]);router[_0x3f65('0xb')]('/',auth[_0x3f65('0x8')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x3f65('0xd')]);router[_0x3f65('0xe')]('/:id',auth[_0x3f65('0x8')](),controller[_0x3f65('0xf')]);module[_0x3f65('0x10')]=router;