f467e4cef996c0948dc3c838021f82ddb7f4f3b7
[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 _0xa3e6=['destroy','multer','path','express','Router','fs-extra','../../components/interaction/service','./intVtigerAccount.controller','get','isAuthenticated','index','show','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','/:id','update','delete'];(function(_0x4bb66f,_0x3cd682){var _0xf2772f=function(_0x2e3698){while(--_0x2e3698){_0x4bb66f['push'](_0x4bb66f['shift']());}};_0xf2772f(++_0x3cd682);}(_0xa3e6,0xbe));var _0x6a3e=function(_0x50d7bd,_0x204af0){_0x50d7bd=_0x50d7bd-0x0;var _0x3ca7b8=_0xa3e6[_0x50d7bd];return _0x3ca7b8;};'use strict';var multer=require(_0x6a3e('0x0'));var util=require('util');var path=require(_0x6a3e('0x1'));var timeout=require('connect-timeout');var express=require(_0x6a3e('0x2'));var router=express[_0x6a3e('0x3')]();var fs_extra=require(_0x6a3e('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x6a3e('0x5'));var config=require('../../config/environment');var controller=require(_0x6a3e('0x6'));router[_0x6a3e('0x7')]('/',auth[_0x6a3e('0x8')](),controller[_0x6a3e('0x9')]);router[_0x6a3e('0x7')]('/:id',auth[_0x6a3e('0x8')](),controller[_0x6a3e('0xa')]);router['get']('/:id/configurations',auth[_0x6a3e('0x8')](),controller['getConfigurations']);router['get'](_0x6a3e('0xb'),auth['isAuthenticated'](),controller[_0x6a3e('0xc')]);router['post']('/',auth[_0x6a3e('0x8')](),controller[_0x6a3e('0xd')]);router[_0x6a3e('0xe')](_0x6a3e('0xf'),auth[_0x6a3e('0x8')](),controller[_0x6a3e('0x10')]);router['put'](_0x6a3e('0x11'),auth[_0x6a3e('0x8')](),controller[_0x6a3e('0x12')]);router[_0x6a3e('0x13')](_0x6a3e('0x11'),auth[_0x6a3e('0x8')](),controller[_0x6a3e('0x14')]);module['exports']=router;