b1be54e38ca9d7f6bd29d91c411b705c8078b36f
[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 _0xe64a=['express','Router','fs-extra','../../components/auth/service','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','create','post','addConfiguration','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x275375,_0x49b883){var _0x3436e7=function(_0x263893){while(--_0x263893){_0x275375['push'](_0x275375['shift']());}};_0x3436e7(++_0x49b883);}(_0xe64a,0x1e0));var _0xae64=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xe64a[_0x42cae2];return _0x5f256f;};'use strict';var multer=require(_0xae64('0x0'));var util=require(_0xae64('0x1'));var path=require(_0xae64('0x2'));var timeout=require(_0xae64('0x3'));var express=require(_0xae64('0x4'));var router=express[_0xae64('0x5')]();var fs_extra=require(_0xae64('0x6'));var auth=require(_0xae64('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intVtigerAccount.controller');router['get']('/',auth[_0xae64('0x8')](),controller[_0xae64('0x9')]);router[_0xae64('0xa')](_0xae64('0xb'),auth[_0xae64('0x8')](),controller[_0xae64('0xc')]);router[_0xae64('0xa')](_0xae64('0xd'),auth[_0xae64('0x8')](),controller[_0xae64('0xe')]);router[_0xae64('0xa')]('/:id/fields',auth[_0xae64('0x8')](),controller['getFields']);router['post']('/',auth[_0xae64('0x8')](),controller[_0xae64('0xf')]);router[_0xae64('0x10')](_0xae64('0xd'),auth['isAuthenticated'](),controller[_0xae64('0x11')]);router['put']('/:id',auth[_0xae64('0x8')](),controller[_0xae64('0x12')]);router[_0xae64('0x13')]('/:id',auth[_0xae64('0x8')](),controller[_0xae64('0x14')]);module[_0xae64('0x15')]=router;