Built motion from commit (unavailable).|2.5.4
[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 _0xc425=['show','post','put','destroy','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id'];(function(_0xa8c447,_0x181dbe){var _0x87bdfa=function(_0x74dd56){while(--_0x74dd56){_0xa8c447['push'](_0xa8c447['shift']());}};_0x87bdfa(++_0x181dbe);}(_0xc425,0x149));var _0x5c42=function(_0x2ea985,_0x566d48){_0x2ea985=_0x2ea985-0x0;var _0x39db0a=_0xc425[_0x2ea985];return _0x39db0a;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x5c42('0x0'));var express=require(_0x5c42('0x1'));var router=express[_0x5c42('0x2')]();var auth=require(_0x5c42('0x3'));var interaction=require(_0x5c42('0x4'));var config=require('../../config/environment');var controller=require('./cmCustomField.controller');router[_0x5c42('0x5')]('/',auth[_0x5c42('0x6')](),controller[_0x5c42('0x7')]);router[_0x5c42('0x5')](_0x5c42('0x8'),auth[_0x5c42('0x6')](),controller[_0x5c42('0x9')]);router[_0x5c42('0xa')]('/',auth[_0x5c42('0x6')](),controller['create']);router[_0x5c42('0xb')](_0x5c42('0x8'),auth[_0x5c42('0x6')](),controller['update']);router['delete'](_0x5c42('0x8'),auth['isAuthenticated'](),controller[_0x5c42('0xc')]);module['exports']=router;