fb8de4fd7195d7e4b7ec03a271792a44db70382b
[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 _0xa332=['show','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intVtigerAccount.controller','get','isAuthenticated','index','/:id'];(function(_0x24e23d,_0x26684a){var _0x14db43=function(_0x23ff5a){while(--_0x23ff5a){_0x24e23d['push'](_0x24e23d['shift']());}};_0x14db43(++_0x26684a);}(_0xa332,0x1ee));var _0x2a33=function(_0x440609,_0x2dd9c6){_0x440609=_0x440609-0x0;var _0x336184=_0xa332[_0x440609];return _0x336184;};'use strict';var multer=require(_0x2a33('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2a33('0x1'));var express=require('express');var router=express[_0x2a33('0x2')]();var auth=require(_0x2a33('0x3'));var interaction=require(_0x2a33('0x4'));var config=require('../../config/environment');var controller=require(_0x2a33('0x5'));router[_0x2a33('0x6')]('/',auth[_0x2a33('0x7')](),controller[_0x2a33('0x8')]);router[_0x2a33('0x6')](_0x2a33('0x9'),auth['isAuthenticated'](),controller[_0x2a33('0xa')]);router[_0x2a33('0x6')](_0x2a33('0xb'),auth[_0x2a33('0x7')](),controller['getConfigurations']);router['get'](_0x2a33('0xc'),auth[_0x2a33('0x7')](),controller[_0x2a33('0xd')]);router[_0x2a33('0xe')]('/',auth[_0x2a33('0x7')](),controller[_0x2a33('0xf')]);router['post'](_0x2a33('0xb'),auth[_0x2a33('0x7')](),controller[_0x2a33('0x10')]);router[_0x2a33('0x11')](_0x2a33('0x9'),auth[_0x2a33('0x7')](),controller[_0x2a33('0x12')]);router[_0x2a33('0x13')]('/:id',auth[_0x2a33('0x7')](),controller[_0x2a33('0x14')]);module['exports']=router;