Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / userProfileSection / 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 _0xb2b1=['post','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id'];(function(_0x1b6d1e,_0x4ab5fb){var _0x447b51=function(_0x3d4c10){while(--_0x3d4c10){_0x1b6d1e['push'](_0x1b6d1e['shift']());}};_0x447b51(++_0x4ab5fb);}(_0xb2b1,0x190));var _0x1b2b=function(_0x882d8b,_0x29e98a){_0x882d8b=_0x882d8b-0x0;var _0x276e09=_0xb2b1[_0x882d8b];return _0x276e09;};'use strict';var multer=require(_0x1b2b('0x0'));var util=require(_0x1b2b('0x1'));var path=require(_0x1b2b('0x2'));var timeout=require(_0x1b2b('0x3'));var express=require(_0x1b2b('0x4'));var router=express[_0x1b2b('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x1b2b('0x6'));var config=require(_0x1b2b('0x7'));var controller=require('./userProfileSection.controller');router['get']('/',auth[_0x1b2b('0x8')](),controller[_0x1b2b('0x9')]);router[_0x1b2b('0xa')](_0x1b2b('0xb'),auth[_0x1b2b('0x8')](),controller[_0x1b2b('0xc')]);router[_0x1b2b('0xa')](_0x1b2b('0xd'),auth[_0x1b2b('0x8')](),controller['show']);router[_0x1b2b('0xe')]('/',auth[_0x1b2b('0x8')](),controller['create']);router['put']('/:id',auth[_0x1b2b('0x8')](),controller[_0x1b2b('0xf')]);router['delete'](_0x1b2b('0xd'),auth[_0x1b2b('0x8')](),controller[_0x1b2b('0x10')]);module[_0x1b2b('0x11')]=router;