681da18c189ac5b503c687dff4533f1972e27dc5
[motion2.git] / server / api / userProfileSection / 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 _0xd285=['/:id','exports','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./userProfileSection.controller','get','isAuthenticated','describe','show','post','create','update','delete'];(function(_0x20cb20,_0x256051){var _0x2fcf4b=function(_0x26200b){while(--_0x26200b){_0x20cb20['push'](_0x20cb20['shift']());}};_0x2fcf4b(++_0x256051);}(_0xd285,0x1a2));var _0x5d28=function(_0x39096d,_0x51f8a0){_0x39096d=_0x39096d-0x0;var _0x13da4f=_0xd285[_0x39096d];return _0x13da4f;};'use strict';var multer=require('multer');var util=require(_0x5d28('0x0'));var path=require('path');var timeout=require(_0x5d28('0x1'));var express=require('express');var router=express[_0x5d28('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x5d28('0x3'));var interaction=require(_0x5d28('0x4'));var config=require('../../config/environment');var controller=require(_0x5d28('0x5'));router[_0x5d28('0x6')]('/',auth[_0x5d28('0x7')](),controller['index']);router[_0x5d28('0x6')]('/describe',auth[_0x5d28('0x7')](),controller[_0x5d28('0x8')]);router[_0x5d28('0x6')]('/:id',auth[_0x5d28('0x7')](),controller[_0x5d28('0x9')]);router[_0x5d28('0xa')]('/',auth[_0x5d28('0x7')](),controller[_0x5d28('0xb')]);router['put']('/:id',auth[_0x5d28('0x7')](),controller[_0x5d28('0xc')]);router[_0x5d28('0xd')](_0x5d28('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x5d28('0xf')]=router;