8bb84fc17d881deda02c688e3b8cd922d7458ced
[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 _0x39bb=['show','post','update','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','isAuthenticated','index','/:id'];(function(_0x36b2b6,_0x566144){var _0x25aebd=function(_0x25e542){while(--_0x25e542){_0x36b2b6['push'](_0x36b2b6['shift']());}};_0x25aebd(++_0x566144);}(_0x39bb,0x1a6));var _0xb39b=function(_0x412686,_0x3fde24){_0x412686=_0x412686-0x0;var _0x18619e=_0x39bb[_0x412686];return _0x18619e;};'use strict';var multer=require(_0xb39b('0x0'));var util=require('util');var path=require(_0xb39b('0x1'));var timeout=require(_0xb39b('0x2'));var express=require('express');var router=express[_0xb39b('0x3')]();var auth=require(_0xb39b('0x4'));var interaction=require(_0xb39b('0x5'));var config=require('../../config/environment');var controller=require(_0xb39b('0x6'));router['get']('/',auth[_0xb39b('0x7')](),controller[_0xb39b('0x8')]);router['get'](_0xb39b('0x9'),auth[_0xb39b('0x7')](),controller[_0xb39b('0xa')]);router[_0xb39b('0xb')]('/',auth[_0xb39b('0x7')](),controller['create']);router['put'](_0xb39b('0x9'),auth['isAuthenticated'](),controller[_0xb39b('0xc')]);router[_0xb39b('0xd')](_0xb39b('0x9'),auth[_0xb39b('0x7')](),controller[_0xb39b('0xe')]);module[_0xb39b('0xf')]=router;