Built motion from commit (unavailable).|2.5.0
[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 _0x0c1c=['index','/:id','show','post','create','put','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0c1c,0xd5));var _0xc0c1=function(_0x21c6b8,_0x16d6f6){_0x21c6b8=_0x21c6b8-0x0;var _0x39d474=_0x0c1c[_0x21c6b8];return _0x39d474;};'use strict';var multer=require(_0xc0c1('0x0'));var util=require('util');var path=require(_0xc0c1('0x1'));var timeout=require(_0xc0c1('0x2'));var express=require('express');var router=express[_0xc0c1('0x3')]();var auth=require(_0xc0c1('0x4'));var interaction=require(_0xc0c1('0x5'));var config=require('../../config/environment');var controller=require('./cmCustomField.controller');router[_0xc0c1('0x6')]('/',auth[_0xc0c1('0x7')](),controller[_0xc0c1('0x8')]);router[_0xc0c1('0x6')](_0xc0c1('0x9'),auth[_0xc0c1('0x7')](),controller[_0xc0c1('0xa')]);router[_0xc0c1('0xb')]('/',auth[_0xc0c1('0x7')](),controller[_0xc0c1('0xc')]);router[_0xc0c1('0xd')](_0xc0c1('0x9'),auth[_0xc0c1('0x7')](),controller['update']);router[_0xc0c1('0xe')](_0xc0c1('0x9'),auth[_0xc0c1('0x7')](),controller[_0xc0c1('0xf')]);module[_0xc0c1('0x10')]=router;