Built motion from commit da24aabd.|2.6.20
[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 _0xf4d9=['isAuthenticated','index','get','post','create','put','/:id','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmCustomField.controller'];(function(_0x1f038e,_0x37f443){var _0x32fdfd=function(_0x44e783){while(--_0x44e783){_0x1f038e['push'](_0x1f038e['shift']());}};_0x32fdfd(++_0x37f443);}(_0xf4d9,0x7c));var _0x9f4d=function(_0x2de263,_0x33d064){_0x2de263=_0x2de263-0x0;var _0x20dc09=_0xf4d9[_0x2de263];return _0x20dc09;};'use strict';var multer=require(_0x9f4d('0x0'));var util=require('util');var path=require(_0x9f4d('0x1'));var timeout=require(_0x9f4d('0x2'));var express=require(_0x9f4d('0x3'));var router=express[_0x9f4d('0x4')]();var fs_extra=require(_0x9f4d('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x9f4d('0x6'));var config=require(_0x9f4d('0x7'));var controller=require(_0x9f4d('0x8'));router['get']('/',auth[_0x9f4d('0x9')](),controller[_0x9f4d('0xa')]);router[_0x9f4d('0xb')]('/:id',auth[_0x9f4d('0x9')](),controller['show']);router[_0x9f4d('0xc')]('/',auth['isAuthenticated'](),controller[_0x9f4d('0xd')]);router[_0x9f4d('0xe')](_0x9f4d('0xf'),auth[_0x9f4d('0x9')](),controller['update']);router[_0x9f4d('0x10')](_0x9f4d('0xf'),auth[_0x9f4d('0x9')](),controller[_0x9f4d('0x11')]);module[_0x9f4d('0x12')]=router;