ba96350489fa5f86a2111e0c9ae5cb0fcff5280b
[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 _0xe364=['put','update','delete','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','/:id','post'];(function(_0x5f0025,_0x262b05){var _0x1b2407=function(_0x4bd1e8){while(--_0x4bd1e8){_0x5f0025['push'](_0x5f0025['shift']());}};_0x1b2407(++_0x262b05);}(_0xe364,0x1c3));var _0x4e36=function(_0x1283d4,_0x36b6f1){_0x1283d4=_0x1283d4-0x0;var _0x433643=_0xe364[_0x1283d4];return _0x433643;};'use strict';var multer=require('multer');var util=require(_0x4e36('0x0'));var path=require(_0x4e36('0x1'));var timeout=require('connect-timeout');var express=require(_0x4e36('0x2'));var router=express['Router']();var fs_extra=require(_0x4e36('0x3'));var auth=require(_0x4e36('0x4'));var interaction=require(_0x4e36('0x5'));var config=require(_0x4e36('0x6'));var controller=require(_0x4e36('0x7'));router[_0x4e36('0x8')]('/',auth[_0x4e36('0x9')](),controller[_0x4e36('0xa')]);router[_0x4e36('0x8')](_0x4e36('0xb'),auth[_0x4e36('0x9')](),controller['show']);router[_0x4e36('0xc')]('/',auth[_0x4e36('0x9')](),controller['create']);router[_0x4e36('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x4e36('0xe')]);router[_0x4e36('0xf')](_0x4e36('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;