68a23e26281471da68da68836606c7b444d6f256
[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 _0x088e=['../../config/environment','./cmCustomField.controller','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4d4da2,_0x3a5402){var _0x41185a=function(_0x1029e5){while(--_0x1029e5){_0x4d4da2['push'](_0x4d4da2['shift']());}};_0x41185a(++_0x3a5402);}(_0x088e,0x172));var _0xe088=function(_0x6c2a02,_0x52d4bb){_0x6c2a02=_0x6c2a02-0x0;var _0x2473a1=_0x088e[_0x6c2a02];return _0x2473a1;};'use strict';var multer=require(_0xe088('0x0'));var util=require(_0xe088('0x1'));var path=require(_0xe088('0x2'));var timeout=require('connect-timeout');var express=require(_0xe088('0x3'));var router=express[_0xe088('0x4')]();var fs_extra=require(_0xe088('0x5'));var auth=require(_0xe088('0x6'));var interaction=require(_0xe088('0x7'));var config=require(_0xe088('0x8'));var controller=require(_0xe088('0x9'));router['get']('/',auth[_0xe088('0xa')](),controller[_0xe088('0xb')]);router['get'](_0xe088('0xc'),auth[_0xe088('0xa')](),controller[_0xe088('0xd')]);router[_0xe088('0xe')]('/',auth['isAuthenticated'](),controller[_0xe088('0xf')]);router[_0xe088('0x10')](_0xe088('0xc'),auth['isAuthenticated'](),controller[_0xe088('0x11')]);router[_0xe088('0x12')](_0xe088('0xc'),auth[_0xe088('0xa')](),controller[_0xe088('0x13')]);module[_0xe088('0x14')]=router;