2a152e6a335e939294fe22b58edbecd5f99e3f72
[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 _0xa6f4=['delete','/:id','destroy','exports','multer','util','path','../../components/interaction/service','./intVtigerAccount.controller','get','isAuthenticated','index','/:id/configurations','getConfigurations','/:id/fields','post','create','update'];(function(_0x4d0662,_0x145963){var _0x6eea6d=function(_0x2def06){while(--_0x2def06){_0x4d0662['push'](_0x4d0662['shift']());}};_0x6eea6d(++_0x145963);}(_0xa6f4,0x1c6));var _0x4a6f=function(_0x570367,_0x3ab7fc){_0x570367=_0x570367-0x0;var _0x14331d=_0xa6f4[_0x570367];return _0x14331d;};'use strict';var multer=require(_0x4a6f('0x0'));var util=require(_0x4a6f('0x1'));var path=require(_0x4a6f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x4a6f('0x3'));var config=require('../../config/environment');var controller=require(_0x4a6f('0x4'));router[_0x4a6f('0x5')]('/',auth[_0x4a6f('0x6')](),controller[_0x4a6f('0x7')]);router[_0x4a6f('0x5')]('/:id',auth[_0x4a6f('0x6')](),controller['show']);router[_0x4a6f('0x5')](_0x4a6f('0x8'),auth[_0x4a6f('0x6')](),controller[_0x4a6f('0x9')]);router['get'](_0x4a6f('0xa'),auth['isAuthenticated'](),controller['getFields']);router[_0x4a6f('0xb')]('/',auth[_0x4a6f('0x6')](),controller[_0x4a6f('0xc')]);router[_0x4a6f('0xb')]('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']);router['put']('/:id',auth[_0x4a6f('0x6')](),controller[_0x4a6f('0xd')]);router[_0x4a6f('0xe')](_0x4a6f('0xf'),auth[_0x4a6f('0x6')](),controller[_0x4a6f('0x10')]);module[_0x4a6f('0x11')]=router;