Built motion from commit (unavailable).|2.5.9
[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 _0xe181=['exports','multer','path','../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','isAuthenticated','get','/:id','post','create','update','delete'];(function(_0x5c1345,_0x40116e){var _0x1c070d=function(_0x1e862f){while(--_0x1e862f){_0x5c1345['push'](_0x5c1345['shift']());}};_0x1c070d(++_0x40116e);}(_0xe181,0xeb));var _0x1e18=function(_0x443e72,_0x50737f){_0x443e72=_0x443e72-0x0;var _0x87c5e2=_0xe181[_0x443e72];return _0x87c5e2;};'use strict';var multer=require(_0x1e18('0x0'));var util=require('util');var path=require(_0x1e18('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x1e18('0x2'));var interaction=require(_0x1e18('0x3'));var config=require('../../config/environment');var controller=require(_0x1e18('0x4'));router['get']('/',auth[_0x1e18('0x5')](),controller['index']);router[_0x1e18('0x6')](_0x1e18('0x7'),auth[_0x1e18('0x5')](),controller['show']);router[_0x1e18('0x8')]('/',auth[_0x1e18('0x5')](),controller[_0x1e18('0x9')]);router['put'](_0x1e18('0x7'),auth[_0x1e18('0x5')](),controller[_0x1e18('0xa')]);router[_0x1e18('0xb')](_0x1e18('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0x1e18('0xc')]=router;