Built motion from commit 4c579f6b.|2.5.32
[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 _0x8688=['/:id/resources','getResources','post','create','/:id/clone','clone','addSections','addResources','put','/:id','update','delete','destroy','removeSections','removeResources','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','index','/describe','show','/:id/sections','getSections'];(function(_0xd816e2,_0x5edac2){var _0x1f5924=function(_0x1bcbf0){while(--_0x1bcbf0){_0xd816e2['push'](_0xd816e2['shift']());}};_0x1f5924(++_0x5edac2);}(_0x8688,0x1f0));var _0x8868=function(_0x4a231c,_0x232ce3){_0x4a231c=_0x4a231c-0x0;var _0x988ede=_0x8688[_0x4a231c];return _0x988ede;};'use strict';var multer=require(_0x8868('0x0'));var util=require(_0x8868('0x1'));var path=require('path');var timeout=require(_0x8868('0x2'));var express=require(_0x8868('0x3'));var router=express[_0x8868('0x4')]();var fs_extra=require(_0x8868('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8868('0x6'));var config=require(_0x8868('0x7'));var controller=require(_0x8868('0x8'));router[_0x8868('0x9')]('/',auth[_0x8868('0xa')](),controller[_0x8868('0xb')]);router['get'](_0x8868('0xc'),auth['isAuthenticated'](),controller['describe']);router[_0x8868('0x9')]('/:id',auth[_0x8868('0xa')](),controller[_0x8868('0xd')]);router[_0x8868('0x9')](_0x8868('0xe'),auth[_0x8868('0xa')](),controller[_0x8868('0xf')]);router['get'](_0x8868('0x10'),auth[_0x8868('0xa')](),controller[_0x8868('0x11')]);router[_0x8868('0x12')]('/',auth['isAuthenticated'](),controller[_0x8868('0x13')]);router[_0x8868('0x12')](_0x8868('0x14'),auth['isAuthenticated'](),controller[_0x8868('0x15')]);router['post'](_0x8868('0xe'),auth[_0x8868('0xa')](),controller[_0x8868('0x16')]);router[_0x8868('0x12')](_0x8868('0x10'),auth[_0x8868('0xa')](),controller[_0x8868('0x17')]);router[_0x8868('0x18')](_0x8868('0x19'),auth[_0x8868('0xa')](),controller[_0x8868('0x1a')]);router[_0x8868('0x1b')](_0x8868('0x19'),auth[_0x8868('0xa')](),controller[_0x8868('0x1c')]);router[_0x8868('0x1b')](_0x8868('0xe'),auth[_0x8868('0xa')](),controller[_0x8868('0x1d')]);router[_0x8868('0x1b')](_0x8868('0x10'),auth[_0x8868('0xa')](),controller[_0x8868('0x1e')]);module[_0x8868('0x1f')]=router;