Built motion from commit 3c2ce842.|2.6.31
[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 _0x769b=['../../config/environment','get','isAuthenticated','index','/describe','describe','show','/:id/sections','getSections','/:id/resources','getResources','post','create','/:id/clone','clone','addSections','put','/:id','update','delete','exports','multer','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0x267c52,_0x3c0df3){var _0x46c47b=function(_0x3c3740){while(--_0x3c3740){_0x267c52['push'](_0x267c52['shift']());}};_0x46c47b(++_0x3c0df3);}(_0x769b,0x123));var _0xb769=function(_0x27c2f8,_0x5948c1){_0x27c2f8=_0x27c2f8-0x0;var _0x5cc05f=_0x769b[_0x27c2f8];return _0x5cc05f;};'use strict';var multer=require(_0xb769('0x0'));var util=require(_0xb769('0x1'));var path=require(_0xb769('0x2'));var timeout=require(_0xb769('0x3'));var express=require('express');var router=express[_0xb769('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xb769('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xb769('0x6'));var controller=require('./userProfile.controller');router[_0xb769('0x7')]('/',auth[_0xb769('0x8')](),controller[_0xb769('0x9')]);router[_0xb769('0x7')](_0xb769('0xa'),auth[_0xb769('0x8')](),controller[_0xb769('0xb')]);router['get']('/:id',auth[_0xb769('0x8')](),controller[_0xb769('0xc')]);router['get'](_0xb769('0xd'),auth[_0xb769('0x8')](),controller[_0xb769('0xe')]);router[_0xb769('0x7')](_0xb769('0xf'),auth[_0xb769('0x8')](),controller[_0xb769('0x10')]);router[_0xb769('0x11')]('/',auth[_0xb769('0x8')](),controller[_0xb769('0x12')]);router['post'](_0xb769('0x13'),auth[_0xb769('0x8')](),controller[_0xb769('0x14')]);router[_0xb769('0x11')](_0xb769('0xd'),auth[_0xb769('0x8')](),controller[_0xb769('0x15')]);router[_0xb769('0x11')]('/:id/resources',auth[_0xb769('0x8')](),controller['addResources']);router[_0xb769('0x16')](_0xb769('0x17'),auth[_0xb769('0x8')](),controller[_0xb769('0x18')]);router[_0xb769('0x19')](_0xb769('0x17'),auth[_0xb769('0x8')](),controller['destroy']);router['delete'](_0xb769('0xd'),auth[_0xb769('0x8')](),controller['removeSections']);router[_0xb769('0x19')](_0xb769('0xf'),auth[_0xb769('0x8')](),controller['removeResources']);module[_0xb769('0x1a')]=router;