970a9b0b66cc93579c07c88e15ac45c746405f13
[motion2.git] / server / api / intFreshsalesConfiguration / 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 _0xc20a=['Router','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','index','/:id','isAuthenticated','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0xd3b0ac,_0x2f5065){var _0x3d773e=function(_0x2e10d1){while(--_0x2e10d1){_0xd3b0ac['push'](_0xd3b0ac['shift']());}};_0x3d773e(++_0x2f5065);}(_0xc20a,0x10f));var _0xac20=function(_0x52b0b2,_0xf6dbf9){_0x52b0b2=_0x52b0b2-0x0;var _0x322769=_0xc20a[_0x52b0b2];return _0x322769;};'use strict';var multer=require(_0xac20('0x0'));var util=require(_0xac20('0x1'));var path=require(_0xac20('0x2'));var timeout=require(_0xac20('0x3'));var express=require(_0xac20('0x4'));var router=express[_0xac20('0x5')]();var auth=require(_0xac20('0x6'));var interaction=require(_0xac20('0x7'));var config=require('../../config/environment');var controller=require(_0xac20('0x8'));router[_0xac20('0x9')]('/',auth['isAuthenticated'](),controller[_0xac20('0xa')]);router[_0xac20('0x9')](_0xac20('0xb'),auth[_0xac20('0xc')](),controller['show']);router[_0xac20('0x9')](_0xac20('0xd'),auth[_0xac20('0xc')](),controller[_0xac20('0xe')]);router[_0xac20('0x9')](_0xac20('0xf'),auth[_0xac20('0xc')](),controller[_0xac20('0x10')]);router[_0xac20('0x9')](_0xac20('0x11'),auth[_0xac20('0xc')](),controller[_0xac20('0x12')]);router[_0xac20('0x13')]('/',auth[_0xac20('0xc')](),controller['create']);router['put'](_0xac20('0xb'),auth[_0xac20('0xc')](),controller['update']);router[_0xac20('0x14')](_0xac20('0xb'),auth[_0xac20('0xc')](),controller[_0xac20('0x15')]);module[_0xac20('0x16')]=router;