Built motion from commit (unavailable).|2.3.4
[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 _0x6fbc=['create','/:id/clone','/:id/sections','addSections','addResources','put','update','delete','removeSections','removeResources','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./userProfile.controller','get','/describe','describe','/:id','/:id/resources','isAuthenticated','getResources','post'];(function(_0x5a79e2,_0x319b1a){var _0x266c45=function(_0x172478){while(--_0x172478){_0x5a79e2['push'](_0x5a79e2['shift']());}};_0x266c45(++_0x319b1a);}(_0x6fbc,0x185));var _0xc6fb=function(_0x14b7a5,_0xadfaf){_0x14b7a5=_0x14b7a5-0x0;var _0x1894c3=_0x6fbc[_0x14b7a5];return _0x1894c3;};'use strict';var multer=require(_0xc6fb('0x0'));var util=require(_0xc6fb('0x1'));var path=require(_0xc6fb('0x2'));var timeout=require('connect-timeout');var express=require(_0xc6fb('0x3'));var router=express[_0xc6fb('0x4')]();var auth=require(_0xc6fb('0x5'));var interaction=require(_0xc6fb('0x6'));var config=require('../../config/environment');var controller=require(_0xc6fb('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xc6fb('0x8')](_0xc6fb('0x9'),auth['isAuthenticated'](),controller[_0xc6fb('0xa')]);router[_0xc6fb('0x8')](_0xc6fb('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xc6fb('0x8')](_0xc6fb('0xc'),auth[_0xc6fb('0xd')](),controller[_0xc6fb('0xe')]);router[_0xc6fb('0xf')]('/',auth[_0xc6fb('0xd')](),controller[_0xc6fb('0x10')]);router[_0xc6fb('0xf')](_0xc6fb('0x11'),auth[_0xc6fb('0xd')](),controller['clone']);router['post'](_0xc6fb('0x12'),auth['isAuthenticated'](),controller[_0xc6fb('0x13')]);router['post'](_0xc6fb('0xc'),auth[_0xc6fb('0xd')](),controller[_0xc6fb('0x14')]);router[_0xc6fb('0x15')]('/:id',auth[_0xc6fb('0xd')](),controller[_0xc6fb('0x16')]);router[_0xc6fb('0x17')](_0xc6fb('0xb'),auth['isAuthenticated'](),controller['destroy']);router[_0xc6fb('0x17')](_0xc6fb('0x12'),auth[_0xc6fb('0xd')](),controller[_0xc6fb('0x18')]);router['delete'](_0xc6fb('0xc'),auth['isAuthenticated'](),controller[_0xc6fb('0x19')]);module[_0xc6fb('0x1a')]=router;