Built motion from commit (unavailable).|2.5.23
[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 _0x57df=['put','update','delete','destroy','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','create'];(function(_0xb1b38e,_0x51134c){var _0x41b557=function(_0x3014fd){while(--_0x3014fd){_0xb1b38e['push'](_0xb1b38e['shift']());}};_0x41b557(++_0x51134c);}(_0x57df,0xd4));var _0xf57d=function(_0x8e11a5,_0x2b0623){_0x8e11a5=_0x8e11a5-0x0;var _0x32f52a=_0x57df[_0x8e11a5];return _0x32f52a;};'use strict';var multer=require(_0xf57d('0x0'));var util=require('util');var path=require(_0xf57d('0x1'));var timeout=require('connect-timeout');var express=require(_0xf57d('0x2'));var router=express[_0xf57d('0x3')]();var auth=require(_0xf57d('0x4'));var interaction=require(_0xf57d('0x5'));var config=require('../../config/environment');var controller=require('./cmCustomField.controller');router[_0xf57d('0x6')]('/',auth[_0xf57d('0x7')](),controller[_0xf57d('0x8')]);router[_0xf57d('0x6')](_0xf57d('0x9'),auth[_0xf57d('0x7')](),controller[_0xf57d('0xa')]);router['post']('/',auth[_0xf57d('0x7')](),controller[_0xf57d('0xb')]);router[_0xf57d('0xc')](_0xf57d('0x9'),auth['isAuthenticated'](),controller[_0xf57d('0xd')]);router[_0xf57d('0xe')](_0xf57d('0x9'),auth[_0xf57d('0x7')](),controller[_0xf57d('0xf')]);module['exports']=router;