9741862c6dd4c17a000c507866f78776e5318997
[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 _0xeff4=['create','put','update','destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','index','/:id'];(function(_0x474bc0,_0x26989c){var _0x4b24cf=function(_0x4be866){while(--_0x4be866){_0x474bc0['push'](_0x474bc0['shift']());}};_0x4b24cf(++_0x26989c);}(_0xeff4,0xe5));var _0x4eff=function(_0x424357,_0x9ebe3e){_0x424357=_0x424357-0x0;var _0x29c68e=_0xeff4[_0x424357];return _0x29c68e;};'use strict';var multer=require(_0x4eff('0x0'));var util=require(_0x4eff('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4eff('0x2'));var router=express[_0x4eff('0x3')]();var auth=require(_0x4eff('0x4'));var interaction=require(_0x4eff('0x5'));var config=require('../../config/environment');var controller=require(_0x4eff('0x6'));router[_0x4eff('0x7')]('/',auth[_0x4eff('0x8')](),controller[_0x4eff('0x9')]);router['get'](_0x4eff('0xa'),auth[_0x4eff('0x8')](),controller['show']);router['post']('/',auth[_0x4eff('0x8')](),controller[_0x4eff('0xb')]);router[_0x4eff('0xc')](_0x4eff('0xa'),auth[_0x4eff('0x8')](),controller[_0x4eff('0xd')]);router['delete'](_0x4eff('0xa'),auth[_0x4eff('0x8')](),controller[_0x4eff('0xe')]);module[_0x4eff('0xf')]=router;