6eb6fae187adea9748cb3eaeddf5363d1056cf73
[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 _0x2384=['../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','index','/:id','show','post','create','put','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x1a30a1,_0x252366){var _0x4635c4=function(_0x29304d){while(--_0x29304d){_0x1a30a1['push'](_0x1a30a1['shift']());}};_0x4635c4(++_0x252366);}(_0x2384,0x1aa));var _0x4238=function(_0x49c756,_0x4da964){_0x49c756=_0x49c756-0x0;var _0x4f6e66=_0x2384[_0x49c756];return _0x4f6e66;};'use strict';var multer=require(_0x4238('0x0'));var util=require('util');var path=require(_0x4238('0x1'));var timeout=require(_0x4238('0x2'));var express=require(_0x4238('0x3'));var router=express[_0x4238('0x4')]();var fs_extra=require(_0x4238('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x4238('0x6'));var config=require('../../config/environment');var controller=require(_0x4238('0x7'));router[_0x4238('0x8')]('/',auth[_0x4238('0x9')](),controller[_0x4238('0xa')]);router[_0x4238('0x8')](_0x4238('0xb'),auth[_0x4238('0x9')](),controller[_0x4238('0xc')]);router[_0x4238('0xd')]('/',auth['isAuthenticated'](),controller[_0x4238('0xe')]);router[_0x4238('0xf')]('/:id',auth[_0x4238('0x9')](),controller['update']);router['delete'](_0x4238('0xb'),auth[_0x4238('0x9')](),controller[_0x4238('0x10')]);module[_0x4238('0x11')]=router;