Built motion from commit (unavailable).|2.5.0
[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 _0xcacc=['delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/:id','show','/:id/fields','getFields','create','post','addConfiguration','update'];(function(_0x408ef1,_0x5713e1){var _0x3fd3df=function(_0xbfe6cf){while(--_0xbfe6cf){_0x408ef1['push'](_0x408ef1['shift']());}};_0x3fd3df(++_0x5713e1);}(_0xcacc,0x17f));var _0xccac=function(_0x10193c,_0xad970f){_0x10193c=_0x10193c-0x0;var _0x2a7ac6=_0xcacc[_0x10193c];return _0x2a7ac6;};'use strict';var multer=require(_0xccac('0x0'));var util=require(_0xccac('0x1'));var path=require(_0xccac('0x2'));var timeout=require(_0xccac('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xccac('0x4'));var interaction=require(_0xccac('0x5'));var config=require('../../config/environment');var controller=require('./intVtigerAccount.controller');router['get']('/',auth[_0xccac('0x6')](),controller['index']);router[_0xccac('0x7')](_0xccac('0x8'),auth[_0xccac('0x6')](),controller[_0xccac('0x9')]);router[_0xccac('0x7')]('/:id/configurations',auth['isAuthenticated'](),controller['getConfigurations']);router[_0xccac('0x7')](_0xccac('0xa'),auth[_0xccac('0x6')](),controller[_0xccac('0xb')]);router['post']('/',auth[_0xccac('0x6')](),controller[_0xccac('0xc')]);router[_0xccac('0xd')]('/:id/configurations',auth[_0xccac('0x6')](),controller[_0xccac('0xe')]);router['put'](_0xccac('0x8'),auth[_0xccac('0x6')](),controller[_0xccac('0xf')]);router[_0xccac('0x10')](_0xccac('0x8'),auth[_0xccac('0x6')](),controller[_0xccac('0x11')]);module[_0xccac('0x12')]=router;