7323096d0ed78269fd7724f989b1d57bc89de0e0
[motion2.git] / server / api / intSalesforceField / 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 _0xa057=['isAuthenticated','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSalesforceField.controller','index','get','/:id','show','post'];(function(_0xa95e8d,_0x5a061a){var _0x99a9db=function(_0x4ed1bf){while(--_0x4ed1bf){_0xa95e8d['push'](_0xa95e8d['shift']());}};_0x99a9db(++_0x5a061a);}(_0xa057,0x123));var _0x7a05=function(_0x2b75cc,_0x17c826){_0x2b75cc=_0x2b75cc-0x0;var _0x573d19=_0xa057[_0x2b75cc];return _0x573d19;};'use strict';var multer=require(_0x7a05('0x0'));var util=require(_0x7a05('0x1'));var path=require('path');var timeout=require(_0x7a05('0x2'));var express=require(_0x7a05('0x3'));var router=express[_0x7a05('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x7a05('0x5'));var interaction=require(_0x7a05('0x6'));var config=require('../../config/environment');var controller=require(_0x7a05('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x7a05('0x8')]);router[_0x7a05('0x9')](_0x7a05('0xa'),auth['isAuthenticated'](),controller[_0x7a05('0xb')]);router[_0x7a05('0xc')]('/',auth[_0x7a05('0xd')](),controller['create']);router[_0x7a05('0xe')](_0x7a05('0xa'),auth[_0x7a05('0xd')](),controller[_0x7a05('0xf')]);router[_0x7a05('0x10')](_0x7a05('0xa'),auth['isAuthenticated'](),controller[_0x7a05('0x11')]);module[_0x7a05('0x12')]=router;