0ec0cd88afc6ed1932ffbb8d8ebe7a8e5ac6557e
[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 _0x206d=['show','getSections','/:id/resources','getResources','post','/:id/clone','clone','addResources','put','update','delete','destroy','/:id/sections','removeSections','removeResources','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x156fd4,_0xd2f0bb){var _0x3eae58=function(_0x4d2630){while(--_0x4d2630){_0x156fd4['push'](_0x156fd4['shift']());}};_0x3eae58(++_0xd2f0bb);}(_0x206d,0x1b0));var _0xd206=function(_0x4b70c5,_0x52406c){_0x4b70c5=_0x4b70c5-0x0;var _0x2baf33=_0x206d[_0x4b70c5];return _0x2baf33;};'use strict';var multer=require(_0xd206('0x0'));var util=require(_0xd206('0x1'));var path=require(_0xd206('0x2'));var timeout=require(_0xd206('0x3'));var express=require(_0xd206('0x4'));var router=express[_0xd206('0x5')]();var auth=require(_0xd206('0x6'));var interaction=require(_0xd206('0x7'));var config=require(_0xd206('0x8'));var controller=require(_0xd206('0x9'));router[_0xd206('0xa')]('/',auth[_0xd206('0xb')](),controller[_0xd206('0xc')]);router[_0xd206('0xa')](_0xd206('0xd'),auth[_0xd206('0xb')](),controller[_0xd206('0xe')]);router[_0xd206('0xa')](_0xd206('0xf'),auth[_0xd206('0xb')](),controller[_0xd206('0x10')]);router[_0xd206('0xa')]('/:id/sections',auth[_0xd206('0xb')](),controller[_0xd206('0x11')]);router[_0xd206('0xa')](_0xd206('0x12'),auth[_0xd206('0xb')](),controller[_0xd206('0x13')]);router[_0xd206('0x14')]('/',auth[_0xd206('0xb')](),controller['create']);router[_0xd206('0x14')](_0xd206('0x15'),auth['isAuthenticated'](),controller[_0xd206('0x16')]);router[_0xd206('0x14')]('/:id/sections',auth[_0xd206('0xb')](),controller['addSections']);router[_0xd206('0x14')](_0xd206('0x12'),auth[_0xd206('0xb')](),controller[_0xd206('0x17')]);router[_0xd206('0x18')]('/:id',auth[_0xd206('0xb')](),controller[_0xd206('0x19')]);router[_0xd206('0x1a')](_0xd206('0xf'),auth[_0xd206('0xb')](),controller[_0xd206('0x1b')]);router[_0xd206('0x1a')](_0xd206('0x1c'),auth[_0xd206('0xb')](),controller[_0xd206('0x1d')]);router[_0xd206('0x1a')](_0xd206('0x12'),auth[_0xd206('0xb')](),controller[_0xd206('0x1e')]);module[_0xd206('0x1f')]=router;