Built motion from commit (unavailable).|2.5.14
[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 _0xb6ef=['destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','/:id','update'];(function(_0x275caa,_0x166d5e){var _0x28d670=function(_0x2a20e1){while(--_0x2a20e1){_0x275caa['push'](_0x275caa['shift']());}};_0x28d670(++_0x166d5e);}(_0xb6ef,0x1b2));var _0xfb6e=function(_0x46966a,_0xfdadfc){_0x46966a=_0x46966a-0x0;var _0x24baf9=_0xb6ef[_0x46966a];return _0x24baf9;};'use strict';var multer=require('multer');var util=require(_0xfb6e('0x0'));var path=require(_0xfb6e('0x1'));var timeout=require(_0xfb6e('0x2'));var express=require(_0xfb6e('0x3'));var router=express[_0xfb6e('0x4')]();var auth=require(_0xfb6e('0x5'));var interaction=require(_0xfb6e('0x6'));var config=require(_0xfb6e('0x7'));var controller=require(_0xfb6e('0x8'));router[_0xfb6e('0x9')]('/',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0xb')]);router['get']('/:id',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0xc')]);router[_0xfb6e('0x9')](_0xfb6e('0xd'),auth[_0xfb6e('0xa')](),controller[_0xfb6e('0xe')]);router[_0xfb6e('0x9')]('/:id/fields',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0xf')]);router[_0xfb6e('0x10')]('/',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0x11')]);router[_0xfb6e('0x10')]('/:id/configurations',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0x12')]);router[_0xfb6e('0x13')](_0xfb6e('0x14'),auth['isAuthenticated'](),controller[_0xfb6e('0x15')]);router['delete']('/:id',auth[_0xfb6e('0xa')](),controller[_0xfb6e('0x16')]);module[_0xfb6e('0x17')]=router;