Built motion from commit (unavailable).|2.5.13
[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 _0x46e7=['/:id/fields','post','create','put','update','delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/subjects','/:id/descriptions','getDescriptions'];(function(_0x4200de,_0x3d415e){var _0x31adb9=function(_0x34d249){while(--_0x34d249){_0x4200de['push'](_0x4200de['shift']());}};_0x31adb9(++_0x3d415e);}(_0x46e7,0x1d6));var _0x746e=function(_0x449c84,_0x532612){_0x449c84=_0x449c84-0x0;var _0x3cbbd6=_0x46e7[_0x449c84];return _0x3cbbd6;};'use strict';var multer=require(_0x746e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x746e('0x1'));var express=require('express');var router=express[_0x746e('0x2')]();var auth=require(_0x746e('0x3'));var interaction=require(_0x746e('0x4'));var config=require('../../config/environment');var controller=require('./intFreshsalesConfiguration.controller');router[_0x746e('0x5')]('/',auth[_0x746e('0x6')](),controller[_0x746e('0x7')]);router[_0x746e('0x5')](_0x746e('0x8'),auth['isAuthenticated'](),controller[_0x746e('0x9')]);router[_0x746e('0x5')](_0x746e('0xa'),auth[_0x746e('0x6')](),controller['getSubjects']);router['get'](_0x746e('0xb'),auth[_0x746e('0x6')](),controller[_0x746e('0xc')]);router[_0x746e('0x5')](_0x746e('0xd'),auth['isAuthenticated'](),controller['getFields']);router[_0x746e('0xe')]('/',auth[_0x746e('0x6')](),controller[_0x746e('0xf')]);router[_0x746e('0x10')](_0x746e('0x8'),auth[_0x746e('0x6')](),controller[_0x746e('0x11')]);router[_0x746e('0x12')](_0x746e('0x8'),auth['isAuthenticated'](),controller[_0x746e('0x13')]);module[_0x746e('0x14')]=router;