Built motion from commit (unavailable).|2.4.4
[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 _0xc4ed=['isAuthenticated','index','getConfigurations','/:id/fields','post','create','/:id/configurations','put','update','delete','exports','util','path','express','Router','../../components/auth/service','../../config/environment','./intVtigerAccount.controller','get'];(function(_0x496605,_0x2f3b86){var _0x4a9966=function(_0x1e3cff){while(--_0x1e3cff){_0x496605['push'](_0x496605['shift']());}};_0x4a9966(++_0x2f3b86);}(_0xc4ed,0xdc));var _0xdc4e=function(_0x1017c3,_0x7127ba){_0x1017c3=_0x1017c3-0x0;var _0x335335=_0xc4ed[_0x1017c3];return _0x335335;};'use strict';var multer=require('multer');var util=require(_0xdc4e('0x0'));var path=require(_0xdc4e('0x1'));var timeout=require('connect-timeout');var express=require(_0xdc4e('0x2'));var router=express[_0xdc4e('0x3')]();var auth=require(_0xdc4e('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdc4e('0x5'));var controller=require(_0xdc4e('0x6'));router[_0xdc4e('0x7')]('/',auth[_0xdc4e('0x8')](),controller[_0xdc4e('0x9')]);router[_0xdc4e('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xdc4e('0x7')]('/:id/configurations',auth[_0xdc4e('0x8')](),controller[_0xdc4e('0xa')]);router[_0xdc4e('0x7')](_0xdc4e('0xb'),auth['isAuthenticated'](),controller['getFields']);router[_0xdc4e('0xc')]('/',auth[_0xdc4e('0x8')](),controller[_0xdc4e('0xd')]);router['post'](_0xdc4e('0xe'),auth[_0xdc4e('0x8')](),controller['addConfiguration']);router[_0xdc4e('0xf')]('/:id',auth[_0xdc4e('0x8')](),controller[_0xdc4e('0x10')]);router[_0xdc4e('0x11')]('/:id',auth[_0xdc4e('0x8')](),controller['destroy']);module[_0xdc4e('0x12')]=router;