4fc32906af4a33960a448fbad33766e4144b8547
[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 _0xff0d=['multer','path','connect-timeout','../../components/auth/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','show','getConfigurations','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy'];(function(_0x53da0f,_0x142ae4){var _0x56d563=function(_0x4e6f41){while(--_0x4e6f41){_0x53da0f['push'](_0x53da0f['shift']());}};_0x56d563(++_0x142ae4);}(_0xff0d,0x85));var _0xdff0=function(_0x1a89a1,_0x56d889){_0x1a89a1=_0x1a89a1-0x0;var _0x3d5b46=_0xff0d[_0x1a89a1];return _0x3d5b46;};'use strict';var multer=require(_0xdff0('0x0'));var util=require('util');var path=require(_0xdff0('0x1'));var timeout=require(_0xdff0('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xdff0('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xdff0('0x4'));var controller=require(_0xdff0('0x5'));router[_0xdff0('0x6')]('/',auth[_0xdff0('0x7')](),controller['index']);router[_0xdff0('0x6')]('/:id',auth[_0xdff0('0x7')](),controller[_0xdff0('0x8')]);router['get']('/:id/configurations',auth[_0xdff0('0x7')](),controller[_0xdff0('0x9')]);router[_0xdff0('0x6')]('/:id/fields',auth['isAuthenticated'](),controller[_0xdff0('0xa')]);router[_0xdff0('0xb')]('/',auth[_0xdff0('0x7')](),controller[_0xdff0('0xc')]);router[_0xdff0('0xb')](_0xdff0('0xd'),auth[_0xdff0('0x7')](),controller[_0xdff0('0xe')]);router[_0xdff0('0xf')]('/:id',auth[_0xdff0('0x7')](),controller[_0xdff0('0x10')]);router[_0xdff0('0x11')]('/:id',auth[_0xdff0('0x7')](),controller[_0xdff0('0x12')]);module['exports']=router;