b61eda07a6c27fd96e90babd300c115fdfd004fd
[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 _0x711f=['express','Router','get','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x339a10,_0x5e18e4){var _0xd4db83=function(_0x5cd56a){while(--_0x5cd56a){_0x339a10['push'](_0x339a10['shift']());}};_0xd4db83(++_0x5e18e4);}(_0x711f,0x1c8));var _0xf711=function(_0x46759d,_0x13e994){_0x46759d=_0x46759d-0x0;var _0x3e7fe0=_0x711f[_0x46759d];return _0x3e7fe0;};'use strict';var multer=require(_0xf711('0x0'));var util=require(_0xf711('0x1'));var path=require(_0xf711('0x2'));var timeout=require(_0xf711('0x3'));var express=require(_0xf711('0x4'));var router=express[_0xf711('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerAccount.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xf711('0x6')]('/:id',auth[_0xf711('0x7')](),controller['show']);router[_0xf711('0x6')](_0xf711('0x8'),auth[_0xf711('0x7')](),controller[_0xf711('0x9')]);router[_0xf711('0x6')](_0xf711('0xa'),auth[_0xf711('0x7')](),controller[_0xf711('0xb')]);router[_0xf711('0xc')]('/',auth[_0xf711('0x7')](),controller[_0xf711('0xd')]);router[_0xf711('0xc')](_0xf711('0x8'),auth[_0xf711('0x7')](),controller['addConfiguration']);router[_0xf711('0xe')](_0xf711('0xf'),auth[_0xf711('0x7')](),controller[_0xf711('0x10')]);router[_0xf711('0x11')](_0xf711('0xf'),auth[_0xf711('0x7')](),controller[_0xf711('0x12')]);module[_0xf711('0x13')]=router;