35ba7deea64c07f9fe2039d55924c311c29e0db5
[motion2.git] / server / api / intDynamics365Field / 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 _0x6f24=['isAuthenticated','index','/:id','show','put','update','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get'];(function(_0x759d1d,_0x49ab9d){var _0x306e57=function(_0x1a870d){while(--_0x1a870d){_0x759d1d['push'](_0x759d1d['shift']());}};_0x306e57(++_0x49ab9d);}(_0x6f24,0x129));var _0x46f2=function(_0x4c06a3,_0x1e6b6f){_0x4c06a3=_0x4c06a3-0x0;var _0x7ff53c=_0x6f24[_0x4c06a3];return _0x7ff53c;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x46f2('0x0'));var express=require(_0x46f2('0x1'));var router=express[_0x46f2('0x2')]();var fs_extra=require(_0x46f2('0x3'));var auth=require(_0x46f2('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x46f2('0x5'));var controller=require('./intDynamics365Field.controller');router[_0x46f2('0x6')]('/',auth[_0x46f2('0x7')](),controller[_0x46f2('0x8')]);router[_0x46f2('0x6')](_0x46f2('0x9'),auth['isAuthenticated'](),controller[_0x46f2('0xa')]);router['post']('/',auth[_0x46f2('0x7')](),controller['create']);router[_0x46f2('0xb')](_0x46f2('0x9'),auth[_0x46f2('0x7')](),controller[_0x46f2('0xc')]);router[_0x46f2('0xd')](_0x46f2('0x9'),auth['isAuthenticated'](),controller[_0x46f2('0xe')]);module[_0x46f2('0xf')]=router;