75308e6b581ac870fd6597c6bbde09712f4dbff9
[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 _0x494e=['isAuthenticated','show','post','create','delete','destroy','multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','/:id'];(function(_0x1f4793,_0x53dfba){var _0x2078d9=function(_0x5a1ee5){while(--_0x5a1ee5){_0x1f4793['push'](_0x1f4793['shift']());}};_0x2078d9(++_0x53dfba);}(_0x494e,0xd6));var _0xe494=function(_0x41167c,_0x2cf96e){_0x41167c=_0x41167c-0x0;var _0x927aa0=_0x494e[_0x41167c];return _0x927aa0;};'use strict';var multer=require(_0xe494('0x0'));var util=require('util');var path=require(_0xe494('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe494('0x2')]();var fs_extra=require(_0xe494('0x3'));var auth=require(_0xe494('0x4'));var interaction=require(_0xe494('0x5'));var config=require(_0xe494('0x6'));var controller=require(_0xe494('0x7'));router[_0xe494('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xe494('0x8')](_0xe494('0x9'),auth[_0xe494('0xa')](),controller[_0xe494('0xb')]);router[_0xe494('0xc')]('/',auth[_0xe494('0xa')](),controller[_0xe494('0xd')]);router['put'](_0xe494('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xe494('0xe')](_0xe494('0x9'),auth[_0xe494('0xa')](),controller[_0xe494('0xf')]);module['exports']=router;