78307a783dbd4b154c3e16b2d35a51888fd5fe8b
[motion2.git] / server / api / intVtigerAccount / 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 _0x8c39=['fs-extra','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','isAuthenticated','index','/:id','show','get','/:id/fields','post','create','/:id/configurations','put','update','delete','exports','multer','path','connect-timeout','express','Router'];(function(_0x50fb37,_0x30e9d5){var _0x995c5e=function(_0x449b03){while(--_0x449b03){_0x50fb37['push'](_0x50fb37['shift']());}};_0x995c5e(++_0x30e9d5);}(_0x8c39,0x1df));var _0x98c3=function(_0x224c8d,_0x2cc9dd){_0x224c8d=_0x224c8d-0x0;var _0xacf452=_0x8c39[_0x224c8d];return _0xacf452;};'use strict';var multer=require(_0x98c3('0x0'));var util=require('util');var path=require(_0x98c3('0x1'));var timeout=require(_0x98c3('0x2'));var express=require(_0x98c3('0x3'));var router=express[_0x98c3('0x4')]();var fs_extra=require(_0x98c3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x98c3('0x6'));var config=require(_0x98c3('0x7'));var controller=require(_0x98c3('0x8'));router['get']('/',auth[_0x98c3('0x9')](),controller[_0x98c3('0xa')]);router['get'](_0x98c3('0xb'),auth['isAuthenticated'](),controller[_0x98c3('0xc')]);router[_0x98c3('0xd')]('/:id/configurations',auth[_0x98c3('0x9')](),controller['getConfigurations']);router['get'](_0x98c3('0xe'),auth[_0x98c3('0x9')](),controller['getFields']);router[_0x98c3('0xf')]('/',auth[_0x98c3('0x9')](),controller[_0x98c3('0x10')]);router[_0x98c3('0xf')](_0x98c3('0x11'),auth[_0x98c3('0x9')](),controller['addConfiguration']);router[_0x98c3('0x12')]('/:id',auth[_0x98c3('0x9')](),controller[_0x98c3('0x13')]);router[_0x98c3('0x14')](_0x98c3('0xb'),auth[_0x98c3('0x9')](),controller['destroy']);module[_0x98c3('0x15')]=router;