4cfbac92c58454fb8c4fc650611b578de9a3f4eb
[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 _0xb49c=['multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','post','/:id/clone','clone','create','put','/:id','delete','destroy','exports'];(function(_0x4e1a49,_0x4da738){var _0x136aae=function(_0x3ffd93){while(--_0x3ffd93){_0x4e1a49['push'](_0x4e1a49['shift']());}};_0x136aae(++_0x4da738);}(_0xb49c,0x120));var _0xcb49=function(_0x7511a1,_0x2e3df7){_0x7511a1=_0x7511a1-0x0;var _0x1e71b4=_0xb49c[_0x7511a1];return _0x1e71b4;};'use strict';var multer=require(_0xcb49('0x0'));var util=require(_0xcb49('0x1'));var path=require('path');var timeout=require(_0xcb49('0x2'));var express=require('express');var router=express[_0xcb49('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xcb49('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xcb49('0x5'));var controller=require('./trunk.controller');router[_0xcb49('0x6')]('/',auth[_0xcb49('0x7')](),controller[_0xcb49('0x8')]);router[_0xcb49('0x6')]('/:id',auth[_0xcb49('0x7')](),controller['show']);router[_0xcb49('0x9')](_0xcb49('0xa'),auth[_0xcb49('0x7')](),controller[_0xcb49('0xb')]);router['post']('/',auth[_0xcb49('0x7')](),controller[_0xcb49('0xc')]);router[_0xcb49('0xd')](_0xcb49('0xe'),auth[_0xcb49('0x7')](),controller['update']);router[_0xcb49('0xf')]('/:id',auth[_0xcb49('0x7')](),controller[_0xcb49('0x10')]);module[_0xcb49('0x11')]=router;