b6d3fbb5c4b5bb6602943af7771bf6799f8dac8a
[motion2.git] / server / api / cmCustomField / 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 _0xf41a=['create','put','update','delete','destroy','exports','multer','util','path','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/:id'];(function(_0x570964,_0xcce17d){var _0x3b5d67=function(_0x47f164){while(--_0x47f164){_0x570964['push'](_0x570964['shift']());}};_0x3b5d67(++_0xcce17d);}(_0xf41a,0x1d4));var _0xaf41=function(_0x4c8890,_0x34c779){_0x4c8890=_0x4c8890-0x0;var _0x2e7ed5=_0xf41a[_0x4c8890];return _0x2e7ed5;};'use strict';var multer=require(_0xaf41('0x0'));var util=require(_0xaf41('0x1'));var path=require(_0xaf41('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xaf41('0x3'));var interaction=require(_0xaf41('0x4'));var config=require('../../config/environment');var controller=require('./cmCustomField.controller');router['get']('/',auth[_0xaf41('0x5')](),controller['index']);router[_0xaf41('0x6')](_0xaf41('0x7'),auth[_0xaf41('0x5')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xaf41('0x8')]);router[_0xaf41('0x9')](_0xaf41('0x7'),auth[_0xaf41('0x5')](),controller[_0xaf41('0xa')]);router[_0xaf41('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xaf41('0xc')]);module[_0xaf41('0xd')]=router;