44bdd20f9fd3037309daf15171cef2b07b7e8673
[motion2.git] / server / api / intSalesforceAccount / 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 _0xb027=['put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration'];(function(_0x7b9c9,_0x6018c2){var _0x2f4b80=function(_0xcaa816){while(--_0xcaa816){_0x7b9c9['push'](_0x7b9c9['shift']());}};_0x2f4b80(++_0x6018c2);}(_0xb027,0xbd));var _0x7b02=function(_0x2e1946,_0x491df7){_0x2e1946=_0x2e1946-0x0;var _0x51a593=_0xb027[_0x2e1946];return _0x51a593;};'use strict';var multer=require(_0x7b02('0x0'));var util=require(_0x7b02('0x1'));var path=require('path');var timeout=require(_0x7b02('0x2'));var express=require(_0x7b02('0x3'));var router=express[_0x7b02('0x4')]();var auth=require(_0x7b02('0x5'));var interaction=require(_0x7b02('0x6'));var config=require('../../config/environment');var controller=require('./intSalesforceAccount.controller');router[_0x7b02('0x7')]('/',auth[_0x7b02('0x8')](),controller[_0x7b02('0x9')]);router[_0x7b02('0x7')](_0x7b02('0xa'),auth[_0x7b02('0x8')](),controller[_0x7b02('0xb')]);router[_0x7b02('0x7')]('/:id/configurations',auth[_0x7b02('0x8')](),controller[_0x7b02('0xc')]);router[_0x7b02('0x7')](_0x7b02('0xd'),auth[_0x7b02('0x8')](),controller[_0x7b02('0xe')]);router[_0x7b02('0xf')]('/',auth[_0x7b02('0x8')](),controller['create']);router[_0x7b02('0xf')](_0x7b02('0x10'),auth['isAuthenticated'](),controller[_0x7b02('0x11')]);router[_0x7b02('0x12')](_0x7b02('0xa'),auth[_0x7b02('0x8')](),controller[_0x7b02('0x13')]);router[_0x7b02('0x14')](_0x7b02('0xa'),auth[_0x7b02('0x8')](),controller[_0x7b02('0x15')]);module[_0x7b02('0x16')]=router;