Built motion from commit 19a84241.|2.5.34
[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 _0x5aa4=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x24f5f7,_0x5dae6f){var _0x5c0fef=function(_0x198cc1){while(--_0x198cc1){_0x24f5f7['push'](_0x24f5f7['shift']());}};_0x5c0fef(++_0x5dae6f);}(_0x5aa4,0xae));var _0x45aa=function(_0xbeb808,_0x881ddf){_0xbeb808=_0xbeb808-0x0;var _0x5d6909=_0x5aa4[_0xbeb808];return _0x5d6909;};'use strict';var multer=require(_0x45aa('0x0'));var util=require('util');var path=require(_0x45aa('0x1'));var timeout=require(_0x45aa('0x2'));var express=require(_0x45aa('0x3'));var router=express[_0x45aa('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x45aa('0x5'));var interaction=require(_0x45aa('0x6'));var config=require(_0x45aa('0x7'));var controller=require('./intSalesforceField.controller');router[_0x45aa('0x8')]('/',auth[_0x45aa('0x9')](),controller[_0x45aa('0xa')]);router[_0x45aa('0x8')](_0x45aa('0xb'),auth[_0x45aa('0x9')](),controller[_0x45aa('0xc')]);router[_0x45aa('0xd')]('/',auth[_0x45aa('0x9')](),controller[_0x45aa('0xe')]);router[_0x45aa('0xf')](_0x45aa('0xb'),auth['isAuthenticated'](),controller[_0x45aa('0x10')]);router[_0x45aa('0x11')](_0x45aa('0xb'),auth[_0x45aa('0x9')](),controller[_0x45aa('0x12')]);module[_0x45aa('0x13')]=router;