5a0d2d578da211c933f5cb6e4a4d69d17c0cd711
[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 _0x82ed=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','post','addConfiguration','put','update','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x241de8,_0x24c165){var _0x19fb75=function(_0x3f1515){while(--_0x3f1515){_0x241de8['push'](_0x241de8['shift']());}};_0x19fb75(++_0x24c165);}(_0x82ed,0xd8));var _0xd82e=function(_0x5816bf,_0x3f0cd7){_0x5816bf=_0x5816bf-0x0;var _0x1cd8a3=_0x82ed[_0x5816bf];return _0x1cd8a3;};'use strict';var multer=require('multer');var util=require(_0xd82e('0x0'));var path=require(_0xd82e('0x1'));var timeout=require(_0xd82e('0x2'));var express=require(_0xd82e('0x3'));var router=express['Router']();var auth=require(_0xd82e('0x4'));var interaction=require(_0xd82e('0x5'));var config=require(_0xd82e('0x6'));var controller=require(_0xd82e('0x7'));router[_0xd82e('0x8')]('/',auth['isAuthenticated'](),controller[_0xd82e('0x9')]);router[_0xd82e('0x8')](_0xd82e('0xa'),auth[_0xd82e('0xb')](),controller['show']);router[_0xd82e('0x8')](_0xd82e('0xc'),auth[_0xd82e('0xb')](),controller[_0xd82e('0xd')]);router['get'](_0xd82e('0xe'),auth[_0xd82e('0xb')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xd82e('0xf')](_0xd82e('0xc'),auth['isAuthenticated'](),controller[_0xd82e('0x10')]);router[_0xd82e('0x11')]('/:id',auth[_0xd82e('0xb')](),controller[_0xd82e('0x12')]);router[_0xd82e('0x13')](_0xd82e('0xa'),auth['isAuthenticated'](),controller[_0xd82e('0x14')]);module[_0xd82e('0x15')]=router;