3026db3230fced0a5b594c2b65349644dcd6e036
[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 _0xafb7=['delete','exports','multer','util','express','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','/:id','show','post','create','put','update'];(function(_0xe09b12,_0x535e1f){var _0x6a2392=function(_0x24b4ae){while(--_0x24b4ae){_0xe09b12['push'](_0xe09b12['shift']());}};_0x6a2392(++_0x535e1f);}(_0xafb7,0x19a));var _0x7afb=function(_0x45ebab,_0x4eb13a){_0x45ebab=_0x45ebab-0x0;var _0x55816f=_0xafb7[_0x45ebab];return _0x55816f;};'use strict';var multer=require(_0x7afb('0x0'));var util=require(_0x7afb('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7afb('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x7afb('0x3'));var config=require(_0x7afb('0x4'));var controller=require(_0x7afb('0x5'));router[_0x7afb('0x6')]('/',auth[_0x7afb('0x7')](),controller[_0x7afb('0x8')]);router['get'](_0x7afb('0x9'),auth['isAuthenticated'](),controller[_0x7afb('0xa')]);router[_0x7afb('0xb')]('/',auth[_0x7afb('0x7')](),controller[_0x7afb('0xc')]);router[_0x7afb('0xd')](_0x7afb('0x9'),auth['isAuthenticated'](),controller[_0x7afb('0xe')]);router[_0x7afb('0xf')](_0x7afb('0x9'),auth[_0x7afb('0x7')](),controller['destroy']);module[_0x7afb('0x10')]=router;