Built motion from commit (unavailable).|2.5.5
[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 _0x40f0=['../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','describe','/:id','/:id/sections','/:id/resources','getResources','post','create','/:id/clone','clone','addSections','addResources','put','update','delete','exports','util','path'];(function(_0x44c226,_0xdff38a){var _0x5d9fa5=function(_0x552d24){while(--_0x552d24){_0x44c226['push'](_0x44c226['shift']());}};_0x5d9fa5(++_0xdff38a);}(_0x40f0,0xcd));var _0x040f=function(_0x11309c,_0xe18a74){_0x11309c=_0x11309c-0x0;var _0x3fea9c=_0x40f0[_0x11309c];return _0x3fea9c;};'use strict';var multer=require('multer');var util=require(_0x040f('0x0'));var path=require(_0x040f('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x040f('0x2'));var interaction=require(_0x040f('0x3'));var config=require(_0x040f('0x4'));var controller=require(_0x040f('0x5'));router[_0x040f('0x6')]('/',auth[_0x040f('0x7')](),controller['index']);router[_0x040f('0x6')]('/describe',auth[_0x040f('0x7')](),controller[_0x040f('0x8')]);router[_0x040f('0x6')](_0x040f('0x9'),auth[_0x040f('0x7')](),controller['show']);router['get'](_0x040f('0xa'),auth[_0x040f('0x7')](),controller['getSections']);router['get'](_0x040f('0xb'),auth[_0x040f('0x7')](),controller[_0x040f('0xc')]);router[_0x040f('0xd')]('/',auth[_0x040f('0x7')](),controller[_0x040f('0xe')]);router[_0x040f('0xd')](_0x040f('0xf'),auth[_0x040f('0x7')](),controller[_0x040f('0x10')]);router[_0x040f('0xd')](_0x040f('0xa'),auth[_0x040f('0x7')](),controller[_0x040f('0x11')]);router['post'](_0x040f('0xb'),auth[_0x040f('0x7')](),controller[_0x040f('0x12')]);router[_0x040f('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x040f('0x14')]);router[_0x040f('0x15')](_0x040f('0x9'),auth[_0x040f('0x7')](),controller['destroy']);router['delete']('/:id/sections',auth[_0x040f('0x7')](),controller['removeSections']);router[_0x040f('0x15')](_0x040f('0xb'),auth[_0x040f('0x7')](),controller['removeResources']);module[_0x040f('0x16')]=router;