61d0e7a74c16d06457b6b2223cebaae5682f45b8
[motion2.git] / server / api / intVtigerConfiguration / 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 _0x6f27=['/:id/descriptions','getDescriptions','post','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects'];(function(_0x36a410,_0x4b16c1){var _0x5ef5ab=function(_0x32560a){while(--_0x32560a){_0x36a410['push'](_0x36a410['shift']());}};_0x5ef5ab(++_0x4b16c1);}(_0x6f27,0x73));var _0x76f2=function(_0x6b888e,_0x420fed){_0x6b888e=_0x6b888e-0x0;var _0x17d0f6=_0x6f27[_0x6b888e];return _0x17d0f6;};'use strict';var multer=require(_0x76f2('0x0'));var util=require(_0x76f2('0x1'));var path=require(_0x76f2('0x2'));var timeout=require(_0x76f2('0x3'));var express=require(_0x76f2('0x4'));var router=express[_0x76f2('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x76f2('0x6'));var interaction=require(_0x76f2('0x7'));var config=require(_0x76f2('0x8'));var controller=require(_0x76f2('0x9'));router[_0x76f2('0xa')]('/',auth[_0x76f2('0xb')](),controller['index']);router[_0x76f2('0xa')](_0x76f2('0xc'),auth['isAuthenticated'](),controller[_0x76f2('0xd')]);router[_0x76f2('0xa')](_0x76f2('0xe'),auth[_0x76f2('0xb')](),controller[_0x76f2('0xf')]);router[_0x76f2('0xa')](_0x76f2('0x10'),auth['isAuthenticated'](),controller['getSubjects']);router[_0x76f2('0xa')](_0x76f2('0x11'),auth[_0x76f2('0xb')](),controller[_0x76f2('0x12')]);router[_0x76f2('0x13')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x76f2('0xc'),auth['isAuthenticated'](),controller[_0x76f2('0x14')]);router['delete'](_0x76f2('0xc'),auth[_0x76f2('0xb')](),controller[_0x76f2('0x15')]);module['exports']=router;