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