973dabd3827b447e416b70d789d26a984dffbd5b
[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 _0x2f91=['isAuthenticated','/:id','create','put','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./cmCustomField.controller','get'];(function(_0x44414f,_0x27a407){var _0x3edcc3=function(_0x51ed21){while(--_0x51ed21){_0x44414f['push'](_0x44414f['shift']());}};_0x3edcc3(++_0x27a407);}(_0x2f91,0x98));var _0x12f9=function(_0x1fe224,_0x110738){_0x1fe224=_0x1fe224-0x0;var _0x300515=_0x2f91[_0x1fe224];return _0x300515;};'use strict';var multer=require(_0x12f9('0x0'));var util=require(_0x12f9('0x1'));var path=require(_0x12f9('0x2'));var timeout=require('connect-timeout');var express=require(_0x12f9('0x3'));var router=express[_0x12f9('0x4')]();var fs_extra=require(_0x12f9('0x5'));var auth=require(_0x12f9('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x12f9('0x7'));var controller=require(_0x12f9('0x8'));router[_0x12f9('0x9')]('/',auth[_0x12f9('0xa')](),controller['index']);router[_0x12f9('0x9')](_0x12f9('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x12f9('0xa')](),controller[_0x12f9('0xc')]);router[_0x12f9('0xd')](_0x12f9('0xb'),auth[_0x12f9('0xa')](),controller[_0x12f9('0xe')]);router[_0x12f9('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x12f9('0x10')]);module[_0x12f9('0x11')]=router;