ca4e10690ebb2bf5cf2478de3f0762349dc1436a
[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 _0x3ee9=['describe','/:id','create','put','update','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get','isAuthenticated','index','/describe'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x3ee9,0xd5));var _0x93ee=function(_0x21d1eb,_0x56f664){_0x21d1eb=_0x21d1eb-0x0;var _0x4cb8cd=_0x3ee9[_0x21d1eb];return _0x4cb8cd;};'use strict';var multer=require(_0x93ee('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x93ee('0x1'));var express=require('express');var router=express[_0x93ee('0x2')]();var auth=require(_0x93ee('0x3'));var interaction=require(_0x93ee('0x4'));var config=require(_0x93ee('0x5'));var controller=require(_0x93ee('0x6'));router[_0x93ee('0x7')]('/',auth[_0x93ee('0x8')](),controller[_0x93ee('0x9')]);router[_0x93ee('0x7')](_0x93ee('0xa'),auth[_0x93ee('0x8')](),controller[_0x93ee('0xb')]);router[_0x93ee('0x7')](_0x93ee('0xc'),auth[_0x93ee('0x8')](),controller['show']);router['post']('/',auth[_0x93ee('0x8')](),controller[_0x93ee('0xd')]);router[_0x93ee('0xe')](_0x93ee('0xc'),auth[_0x93ee('0x8')](),controller[_0x93ee('0xf')]);router['delete'](_0x93ee('0xc'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;