bf5b755b17fa65eb4d78567a24db4aedbc97642e
[motion2.git] / server / api / userProfile / 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 _0x0e78=['delete','removeSections','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./userProfile.controller','index','get','/describe','isAuthenticated','describe','/:id','/:id/sections','getSections','/:id/resources','post','/:id/clone','clone','addSections','addResources','put','update','destroy'];(function(_0x2c0d38,_0x1e3cfb){var _0x4d2a78=function(_0xbeb60a){while(--_0xbeb60a){_0x2c0d38['push'](_0x2c0d38['shift']());}};_0x4d2a78(++_0x1e3cfb);}(_0x0e78,0x17d));var _0x80e7=function(_0xd71a75,_0x51afd3){_0xd71a75=_0xd71a75-0x0;var _0x278bf9=_0x0e78[_0xd71a75];return _0x278bf9;};'use strict';var multer=require('multer');var util=require(_0x80e7('0x0'));var path=require(_0x80e7('0x1'));var timeout=require(_0x80e7('0x2'));var express=require(_0x80e7('0x3'));var router=express['Router']();var auth=require(_0x80e7('0x4'));var interaction=require(_0x80e7('0x5'));var config=require('../../config/environment');var controller=require(_0x80e7('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x80e7('0x7')]);router[_0x80e7('0x8')](_0x80e7('0x9'),auth[_0x80e7('0xa')](),controller[_0x80e7('0xb')]);router[_0x80e7('0x8')](_0x80e7('0xc'),auth[_0x80e7('0xa')](),controller['show']);router[_0x80e7('0x8')](_0x80e7('0xd'),auth[_0x80e7('0xa')](),controller[_0x80e7('0xe')]);router[_0x80e7('0x8')](_0x80e7('0xf'),auth[_0x80e7('0xa')](),controller['getResources']);router[_0x80e7('0x10')]('/',auth[_0x80e7('0xa')](),controller['create']);router[_0x80e7('0x10')](_0x80e7('0x11'),auth[_0x80e7('0xa')](),controller[_0x80e7('0x12')]);router['post'](_0x80e7('0xd'),auth[_0x80e7('0xa')](),controller[_0x80e7('0x13')]);router[_0x80e7('0x10')](_0x80e7('0xf'),auth[_0x80e7('0xa')](),controller[_0x80e7('0x14')]);router[_0x80e7('0x15')](_0x80e7('0xc'),auth['isAuthenticated'](),controller[_0x80e7('0x16')]);router['delete']('/:id',auth[_0x80e7('0xa')](),controller[_0x80e7('0x17')]);router[_0x80e7('0x18')](_0x80e7('0xd'),auth[_0x80e7('0xa')](),controller[_0x80e7('0x19')]);router[_0x80e7('0x18')](_0x80e7('0xf'),auth[_0x80e7('0xa')](),controller['removeResources']);module[_0x80e7('0x1a')]=router;