Built motion from commit 9d1906d1.|2.5.40
[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 _0xd56f=['../../config/environment','isAuthenticated','index','get','/:id','show','post','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service'];(function(_0x31410d,_0x41d516){var _0x2e260e=function(_0x45ada1){while(--_0x45ada1){_0x31410d['push'](_0x31410d['shift']());}};_0x2e260e(++_0x41d516);}(_0xd56f,0xe8));var _0xfd56=function(_0xe59cff,_0x1a7dbe){_0xe59cff=_0xe59cff-0x0;var _0x26e8c1=_0xd56f[_0xe59cff];return _0x26e8c1;};'use strict';var multer=require(_0xfd56('0x0'));var util=require(_0xfd56('0x1'));var path=require(_0xfd56('0x2'));var timeout=require('connect-timeout');var express=require(_0xfd56('0x3'));var router=express['Router']();var fs_extra=require(_0xfd56('0x4'));var auth=require(_0xfd56('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xfd56('0x6'));var controller=require('./cmCustomField.controller');router['get']('/',auth[_0xfd56('0x7')](),controller[_0xfd56('0x8')]);router[_0xfd56('0x9')](_0xfd56('0xa'),auth[_0xfd56('0x7')](),controller[_0xfd56('0xb')]);router[_0xfd56('0xc')]('/',auth[_0xfd56('0x7')](),controller['create']);router['put'](_0xfd56('0xa'),auth[_0xfd56('0x7')](),controller[_0xfd56('0xd')]);router[_0xfd56('0xe')](_0xfd56('0xa'),auth[_0xfd56('0x7')](),controller[_0xfd56('0xf')]);module[_0xfd56('0x10')]=router;