Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / crmNation / 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 _0x6871=['connect-timeout','express','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','post','exports','multer','util','path'];(function(_0x4d4e4e,_0x3154d0){var _0x23c642=function(_0x1ead74){while(--_0x1ead74){_0x4d4e4e['push'](_0x4d4e4e['shift']());}};_0x23c642(++_0x3154d0);}(_0x6871,0xf9));var _0x1687=function(_0x1e1d99,_0x115f67){_0x1e1d99=_0x1e1d99-0x0;var _0x564706=_0x6871[_0x1e1d99];return _0x564706;};'use strict';var multer=require(_0x1687('0x0'));var util=require(_0x1687('0x1'));var path=require(_0x1687('0x2'));var timeout=require(_0x1687('0x3'));var express=require(_0x1687('0x4'));var router=express['Router']();var auth=require(_0x1687('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1687('0x6'));var controller=require('./crmNation.controller');router['get']('/',auth[_0x1687('0x7')](),controller['index']);router[_0x1687('0x8')](_0x1687('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x1687('0xa')]('/',auth['isAuthenticated'](),controller['create']);module[_0x1687('0xb')]=router;