14f592d4e7b328f13d3bc099397a54790b374c3a
[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 _0x1b6d=['get','index','isAuthenticated','describe','show','post','create','put','/:id','update','multer','path','express','Router','../../components/interaction/service','../../config/environment','./userProfileSection.controller'];(function(_0x15942a,_0x13b58c){var _0x36a9fb=function(_0x549c27){while(--_0x549c27){_0x15942a['push'](_0x15942a['shift']());}};_0x36a9fb(++_0x13b58c);}(_0x1b6d,0x1e6));var _0xd1b6=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0x1b6d[_0x21a9d9];return _0x46adce;};'use strict';var multer=require(_0xd1b6('0x0'));var util=require('util');var path=require(_0xd1b6('0x1'));var timeout=require('connect-timeout');var express=require(_0xd1b6('0x2'));var router=express[_0xd1b6('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xd1b6('0x4'));var config=require(_0xd1b6('0x5'));var controller=require(_0xd1b6('0x6'));router[_0xd1b6('0x7')]('/',auth['isAuthenticated'](),controller[_0xd1b6('0x8')]);router['get']('/describe',auth[_0xd1b6('0x9')](),controller[_0xd1b6('0xa')]);router['get']('/:id',auth[_0xd1b6('0x9')](),controller[_0xd1b6('0xb')]);router[_0xd1b6('0xc')]('/',auth['isAuthenticated'](),controller[_0xd1b6('0xd')]);router[_0xd1b6('0xe')](_0xd1b6('0xf'),auth[_0xd1b6('0x9')](),controller[_0xd1b6('0x10')]);router['delete'](_0xd1b6('0xf'),auth[_0xd1b6('0x9')](),controller['destroy']);module['exports']=router;