Built motion from commit (unavailable).|2.5.26
[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 _0x2f5d=['/:id','show','post','create','put','update','delete','destroy','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe'];(function(_0x5a2291,_0x3ddda7){var _0x10e3f5=function(_0xc510cc){while(--_0xc510cc){_0x5a2291['push'](_0x5a2291['shift']());}};_0x10e3f5(++_0x3ddda7);}(_0x2f5d,0xf8));var _0xd2f5=function(_0x5c26ca,_0x2d96fd){_0x5c26ca=_0x5c26ca-0x0;var _0x77d0fc=_0x2f5d[_0x5c26ca];return _0x77d0fc;};'use strict';var multer=require(_0xd2f5('0x0'));var util=require('util');var path=require(_0xd2f5('0x1'));var timeout=require(_0xd2f5('0x2'));var express=require(_0xd2f5('0x3'));var router=express[_0xd2f5('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xd2f5('0x5'));var config=require(_0xd2f5('0x6'));var controller=require('./userProfileSection.controller');router[_0xd2f5('0x7')]('/',auth['isAuthenticated'](),controller[_0xd2f5('0x8')]);router[_0xd2f5('0x7')](_0xd2f5('0x9'),auth[_0xd2f5('0xa')](),controller[_0xd2f5('0xb')]);router[_0xd2f5('0x7')](_0xd2f5('0xc'),auth[_0xd2f5('0xa')](),controller[_0xd2f5('0xd')]);router[_0xd2f5('0xe')]('/',auth[_0xd2f5('0xa')](),controller[_0xd2f5('0xf')]);router[_0xd2f5('0x10')]('/:id',auth[_0xd2f5('0xa')](),controller[_0xd2f5('0x11')]);router[_0xd2f5('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xd2f5('0x13')]);module['exports']=router;