335fc8c94261c5f1daa94b5372d48a86774cc425
[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 _0xb92b=['/:id/configurations','addConfiguration','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','show','getConfigurations','/:id/fields','post','create'];(function(_0x3b6f7e,_0x2c6e88){var _0xa6608=function(_0x5ba576){while(--_0x5ba576){_0x3b6f7e['push'](_0x3b6f7e['shift']());}};_0xa6608(++_0x2c6e88);}(_0xb92b,0xdf));var _0xbb92=function(_0x6b12ab,_0x195cdf){_0x6b12ab=_0x6b12ab-0x0;var _0x4c1dc9=_0xb92b[_0x6b12ab];return _0x4c1dc9;};'use strict';var multer=require(_0xbb92('0x0'));var util=require(_0xbb92('0x1'));var path=require(_0xbb92('0x2'));var timeout=require('connect-timeout');var express=require(_0xbb92('0x3'));var router=express['Router']();var auth=require(_0xbb92('0x4'));var interaction=require(_0xbb92('0x5'));var config=require(_0xbb92('0x6'));var controller=require(_0xbb92('0x7'));router[_0xbb92('0x8')]('/',auth[_0xbb92('0x9')](),controller[_0xbb92('0xa')]);router[_0xbb92('0x8')](_0xbb92('0xb'),auth['isAuthenticated'](),controller[_0xbb92('0xc')]);router[_0xbb92('0x8')]('/:id/configurations',auth[_0xbb92('0x9')](),controller[_0xbb92('0xd')]);router['get'](_0xbb92('0xe'),auth['isAuthenticated'](),controller['getFields']);router[_0xbb92('0xf')]('/',auth[_0xbb92('0x9')](),controller[_0xbb92('0x10')]);router['post'](_0xbb92('0x11'),auth[_0xbb92('0x9')](),controller[_0xbb92('0x12')]);router['put'](_0xbb92('0xb'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xbb92('0xb'),auth[_0xbb92('0x9')](),controller['destroy']);module[_0xbb92('0x13')]=router;