8591762bfa3978a55f5a8cb3aa80586e595f759b
[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 _0xd20f=['get','/:id','show','/:id/configurations','/:id/fields','getFields','post','addConfiguration','put','delete','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service','isAuthenticated','index'];(function(_0x1dbddf,_0x59c4dd){var _0x4858ce=function(_0x104be7){while(--_0x104be7){_0x1dbddf['push'](_0x1dbddf['shift']());}};_0x4858ce(++_0x59c4dd);}(_0xd20f,0xbf));var _0xfd20=function(_0x367aa7,_0x2e677c){_0x367aa7=_0x367aa7-0x0;var _0x5958c7=_0xd20f[_0x367aa7];return _0x5958c7;};'use strict';var multer=require(_0xfd20('0x0'));var util=require(_0xfd20('0x1'));var path=require('path');var timeout=require(_0xfd20('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xfd20('0x3'));var auth=require(_0xfd20('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerAccount.controller');router['get']('/',auth[_0xfd20('0x5')](),controller[_0xfd20('0x6')]);router[_0xfd20('0x7')](_0xfd20('0x8'),auth[_0xfd20('0x5')](),controller[_0xfd20('0x9')]);router[_0xfd20('0x7')](_0xfd20('0xa'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0xfd20('0x7')](_0xfd20('0xb'),auth[_0xfd20('0x5')](),controller[_0xfd20('0xc')]);router[_0xfd20('0xd')]('/',auth[_0xfd20('0x5')](),controller['create']);router[_0xfd20('0xd')](_0xfd20('0xa'),auth[_0xfd20('0x5')](),controller[_0xfd20('0xe')]);router[_0xfd20('0xf')](_0xfd20('0x8'),auth[_0xfd20('0x5')](),controller['update']);router[_0xfd20('0x10')](_0xfd20('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0xfd20('0x11')]=router;