6f9f321363360abd0e22a015c85f97c450f03e02
[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 _0xf43d=['../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','/:id','show','post','create','put','destroy','exports','util','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x28484b,_0x3912fd){var _0x34eab0=function(_0x3ed094){while(--_0x3ed094){_0x28484b['push'](_0x28484b['shift']());}};_0x34eab0(++_0x3912fd);}(_0xf43d,0xc7));var _0xdf43=function(_0x5f4fc0,_0x3281cf){_0x5f4fc0=_0x5f4fc0-0x0;var _0x3c2ae9=_0xf43d[_0x5f4fc0];return _0x3c2ae9;};'use strict';var multer=require('multer');var util=require(_0xdf43('0x0'));var path=require('path');var timeout=require(_0xdf43('0x1'));var express=require(_0xdf43('0x2'));var router=express['Router']();var fs_extra=require(_0xdf43('0x3'));var auth=require(_0xdf43('0x4'));var interaction=require(_0xdf43('0x5'));var config=require(_0xdf43('0x6'));var controller=require('./userProfileSection.controller');router[_0xdf43('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xdf43('0x7')]('/describe',auth[_0xdf43('0x8')](),controller[_0xdf43('0x9')]);router[_0xdf43('0x7')](_0xdf43('0xa'),auth[_0xdf43('0x8')](),controller[_0xdf43('0xb')]);router[_0xdf43('0xc')]('/',auth[_0xdf43('0x8')](),controller[_0xdf43('0xd')]);router[_0xdf43('0xe')](_0xdf43('0xa'),auth[_0xdf43('0x8')](),controller['update']);router['delete'](_0xdf43('0xa'),auth[_0xdf43('0x8')](),controller[_0xdf43('0xf')]);module[_0xdf43('0x10')]=router;