Built motion from commit (unavailable).|2.5.1
[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 _0x5f38=['/:id/configurations','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','path','express','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','show'];(function(_0x4b44b6,_0x16cf9b){var _0x533c51=function(_0x5321d8){while(--_0x5321d8){_0x4b44b6['push'](_0x4b44b6['shift']());}};_0x533c51(++_0x16cf9b);}(_0x5f38,0x106));var _0x85f3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5f38[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x85f3('0x0'));var util=require('util');var path=require(_0x85f3('0x1'));var timeout=require('connect-timeout');var express=require(_0x85f3('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x85f3('0x3'));var config=require(_0x85f3('0x4'));var controller=require(_0x85f3('0x5'));router[_0x85f3('0x6')]('/',auth[_0x85f3('0x7')](),controller[_0x85f3('0x8')]);router[_0x85f3('0x6')](_0x85f3('0x9'),auth[_0x85f3('0x7')](),controller[_0x85f3('0xa')]);router[_0x85f3('0x6')](_0x85f3('0xb'),auth[_0x85f3('0x7')](),controller['getConfigurations']);router[_0x85f3('0x6')]('/:id/fields',auth[_0x85f3('0x7')](),controller[_0x85f3('0xc')]);router[_0x85f3('0xd')]('/',auth[_0x85f3('0x7')](),controller[_0x85f3('0xe')]);router['post'](_0x85f3('0xb'),auth['isAuthenticated'](),controller[_0x85f3('0xf')]);router[_0x85f3('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x85f3('0x11')]);router[_0x85f3('0x12')](_0x85f3('0x9'),auth['isAuthenticated'](),controller[_0x85f3('0x13')]);module[_0x85f3('0x14')]=router;