c2bcc054f94c67ce557e0c3fda9834815db610cf
[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 _0x740a=['addConfiguration','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','show','getConfigurations','/:id/fields','post','/:id/configurations'];(function(_0x1b0652,_0x8f6d5f){var _0x475ce0=function(_0x26abee){while(--_0x26abee){_0x1b0652['push'](_0x1b0652['shift']());}};_0x475ce0(++_0x8f6d5f);}(_0x740a,0x175));var _0xa740=function(_0x4dac5a,_0x37d35b){_0x4dac5a=_0x4dac5a-0x0;var _0x3efaa0=_0x740a[_0x4dac5a];return _0x3efaa0;};'use strict';var multer=require(_0xa740('0x0'));var util=require(_0xa740('0x1'));var path=require(_0xa740('0x2'));var timeout=require(_0xa740('0x3'));var express=require(_0xa740('0x4'));var router=express[_0xa740('0x5')]();var fs_extra=require(_0xa740('0x6'));var auth=require(_0xa740('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xa740('0x8'));var controller=require('./intVtigerAccount.controller');router['get']('/',auth[_0xa740('0x9')](),controller[_0xa740('0xa')]);router[_0xa740('0xb')](_0xa740('0xc'),auth[_0xa740('0x9')](),controller[_0xa740('0xd')]);router[_0xa740('0xb')]('/:id/configurations',auth[_0xa740('0x9')](),controller[_0xa740('0xe')]);router[_0xa740('0xb')](_0xa740('0xf'),auth[_0xa740('0x9')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xa740('0x10')](_0xa740('0x11'),auth[_0xa740('0x9')](),controller[_0xa740('0x12')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xa740('0x13')]);router[_0xa740('0x14')](_0xa740('0xc'),auth[_0xa740('0x9')](),controller[_0xa740('0x15')]);module[_0xa740('0x16')]=router;