2bab527989d9fb53b8280405ced73d33307e2371
[motion2.git] / server / api / userProfileResource / 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 _0x304a=['create','put','/:id','update','delete','destroy','multer','util','connect-timeout','express','Router','./userProfileResource.controller','get','index','/describe','isAuthenticated','show','post'];(function(_0x5508e8,_0x306bd6){var _0x39a844=function(_0x20f8d4){while(--_0x20f8d4){_0x5508e8['push'](_0x5508e8['shift']());}};_0x39a844(++_0x306bd6);}(_0x304a,0x96));var _0xa304=function(_0x4ccda5,_0x528887){_0x4ccda5=_0x4ccda5-0x0;var _0x5f38cd=_0x304a[_0x4ccda5];return _0x5f38cd;};'use strict';var multer=require(_0xa304('0x0'));var util=require(_0xa304('0x1'));var path=require('path');var timeout=require(_0xa304('0x2'));var express=require(_0xa304('0x3'));var router=express[_0xa304('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa304('0x5'));router[_0xa304('0x6')]('/',auth['isAuthenticated'](),controller[_0xa304('0x7')]);router[_0xa304('0x6')](_0xa304('0x8'),auth[_0xa304('0x9')](),controller['describe']);router[_0xa304('0x6')]('/:id',auth[_0xa304('0x9')](),controller[_0xa304('0xa')]);router[_0xa304('0xb')]('/',auth['isAuthenticated'](),controller[_0xa304('0xc')]);router[_0xa304('0xd')](_0xa304('0xe'),auth[_0xa304('0x9')](),controller[_0xa304('0xf')]);router[_0xa304('0x10')](_0xa304('0xe'),auth[_0xa304('0x9')](),controller[_0xa304('0x11')]);module['exports']=router;