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