22f60b3a9a078b0ec84c8bd8631a24e586624e99
[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 _0x89b2=['addConfiguration','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','index','isAuthenticated','getConfigurations','/:id/fields','post','create'];(function(_0x110c54,_0xa3cfcb){var _0x58a348=function(_0x2ddb40){while(--_0x2ddb40){_0x110c54['push'](_0x110c54['shift']());}};_0x58a348(++_0xa3cfcb);}(_0x89b2,0xc6));var _0x289b=function(_0x4287cb,_0xe75c02){_0x4287cb=_0x4287cb-0x0;var _0x2b5fd3=_0x89b2[_0x4287cb];return _0x2b5fd3;};'use strict';var multer=require(_0x289b('0x0'));var util=require(_0x289b('0x1'));var path=require(_0x289b('0x2'));var timeout=require(_0x289b('0x3'));var express=require(_0x289b('0x4'));var router=express[_0x289b('0x5')]();var fs_extra=require(_0x289b('0x6'));var auth=require(_0x289b('0x7'));var interaction=require(_0x289b('0x8'));var config=require(_0x289b('0x9'));var controller=require(_0x289b('0xa'));router[_0x289b('0xb')]('/',auth['isAuthenticated'](),controller[_0x289b('0xc')]);router['get']('/:id',auth[_0x289b('0xd')](),controller['show']);router['get']('/:id/configurations',auth[_0x289b('0xd')](),controller[_0x289b('0xe')]);router[_0x289b('0xb')](_0x289b('0xf'),auth[_0x289b('0xd')](),controller['getFields']);router[_0x289b('0x10')]('/',auth['isAuthenticated'](),controller[_0x289b('0x11')]);router['post']('/:id/configurations',auth[_0x289b('0xd')](),controller[_0x289b('0x12')]);router['put'](_0x289b('0x13'),auth['isAuthenticated'](),controller[_0x289b('0x14')]);router[_0x289b('0x15')](_0x289b('0x13'),auth[_0x289b('0xd')](),controller[_0x289b('0x16')]);module[_0x289b('0x17')]=router;