4456a0779ac6ba977fb6c2c237cc9cf4bde66cc1
[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 _0x9f65=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','index','isAuthenticated','show','get','getConfigurations','/:id/fields','getFields','post','create','put','update','delete','/:id','destroy','exports','multer','path'];(function(_0x241099,_0x2997a9){var _0x164e96=function(_0x2975e4){while(--_0x2975e4){_0x241099['push'](_0x241099['shift']());}};_0x164e96(++_0x2997a9);}(_0x9f65,0x1a0));var _0x59f6=function(_0x189e27,_0x207e49){_0x189e27=_0x189e27-0x0;var _0x879fb4=_0x9f65[_0x189e27];return _0x879fb4;};'use strict';var multer=require(_0x59f6('0x0'));var util=require('util');var path=require(_0x59f6('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x59f6('0x2')]();var auth=require(_0x59f6('0x3'));var interaction=require(_0x59f6('0x4'));var config=require(_0x59f6('0x5'));var controller=require(_0x59f6('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x59f6('0x7')]);router['get']('/:id',auth[_0x59f6('0x8')](),controller[_0x59f6('0x9')]);router[_0x59f6('0xa')]('/:id/configurations',auth[_0x59f6('0x8')](),controller[_0x59f6('0xb')]);router[_0x59f6('0xa')](_0x59f6('0xc'),auth[_0x59f6('0x8')](),controller[_0x59f6('0xd')]);router[_0x59f6('0xe')]('/',auth[_0x59f6('0x8')](),controller[_0x59f6('0xf')]);router[_0x59f6('0xe')]('/:id/configurations',auth[_0x59f6('0x8')](),controller['addConfiguration']);router[_0x59f6('0x10')]('/:id',auth[_0x59f6('0x8')](),controller[_0x59f6('0x11')]);router[_0x59f6('0x12')](_0x59f6('0x13'),auth[_0x59f6('0x8')](),controller[_0x59f6('0x14')]);module[_0x59f6('0x15')]=router;