da0d5b4c99e8af2700eaaf4797048d991ec80b38
[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 _0x5b0c=['/:id/sections','getSections','/:id/resources','getResources','create','post','/:id/clone','clone','addSections','addResources','put','removeSections','delete','exports','multer','util','connect-timeout','Router','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show'];(function(_0x3bfe11,_0x573678){var _0x19f6b2=function(_0x561817){while(--_0x561817){_0x3bfe11['push'](_0x3bfe11['shift']());}};_0x19f6b2(++_0x573678);}(_0x5b0c,0xa4));var _0xc5b0=function(_0xe455e7,_0x29fb65){_0xe455e7=_0xe455e7-0x0;var _0xfc683e=_0x5b0c[_0xe455e7];return _0xfc683e;};'use strict';var multer=require(_0xc5b0('0x0'));var util=require(_0xc5b0('0x1'));var path=require('path');var timeout=require(_0xc5b0('0x2'));var express=require('express');var router=express[_0xc5b0('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc5b0('0x4'));var controller=require('./userProfile.controller');router[_0xc5b0('0x5')]('/',auth[_0xc5b0('0x6')](),controller['index']);router['get'](_0xc5b0('0x7'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0x8')]);router['get'](_0xc5b0('0x9'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0xa')]);router[_0xc5b0('0x5')](_0xc5b0('0xb'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0xc')]);router[_0xc5b0('0x5')](_0xc5b0('0xd'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0xe')]);router['post']('/',auth[_0xc5b0('0x6')](),controller[_0xc5b0('0xf')]);router[_0xc5b0('0x10')](_0xc5b0('0x11'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0x12')]);router[_0xc5b0('0x10')](_0xc5b0('0xb'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0x13')]);router[_0xc5b0('0x10')](_0xc5b0('0xd'),auth[_0xc5b0('0x6')](),controller[_0xc5b0('0x14')]);router[_0xc5b0('0x15')](_0xc5b0('0x9'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xc5b0('0x9'),auth[_0xc5b0('0x6')](),controller['destroy']);router['delete'](_0xc5b0('0xb'),auth['isAuthenticated'](),controller[_0xc5b0('0x16')]);router[_0xc5b0('0x17')]('/:id/resources',auth[_0xc5b0('0x6')](),controller['removeResources']);module[_0xc5b0('0x18')]=router;