Built motion from commit (unavailable).|2.5.14
[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 _0x130f=['delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','/:id/configurations','getFields','post','create','addConfiguration','put'];(function(_0x41fdb2,_0x97b5eb){var _0x4644b6=function(_0x1b177b){while(--_0x1b177b){_0x41fdb2['push'](_0x41fdb2['shift']());}};_0x4644b6(++_0x97b5eb);}(_0x130f,0x10c));var _0xf130=function(_0x1eaa2e,_0xea2008){_0x1eaa2e=_0x1eaa2e-0x0;var _0x3a00ee=_0x130f[_0x1eaa2e];return _0x3a00ee;};'use strict';var multer=require(_0xf130('0x0'));var util=require('util');var path=require(_0xf130('0x1'));var timeout=require(_0xf130('0x2'));var express=require(_0xf130('0x3'));var router=express[_0xf130('0x4')]();var auth=require(_0xf130('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf130('0x6'));var controller=require('./intSalesforceAccount.controller');router['get']('/',auth[_0xf130('0x7')](),controller[_0xf130('0x8')]);router[_0xf130('0x9')](_0xf130('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xf130('0x9')](_0xf130('0xb'),auth[_0xf130('0x7')](),controller['getConfigurations']);router[_0xf130('0x9')]('/:id/fields',auth[_0xf130('0x7')](),controller[_0xf130('0xc')]);router[_0xf130('0xd')]('/',auth[_0xf130('0x7')](),controller[_0xf130('0xe')]);router[_0xf130('0xd')](_0xf130('0xb'),auth[_0xf130('0x7')](),controller[_0xf130('0xf')]);router[_0xf130('0x10')]('/:id',auth[_0xf130('0x7')](),controller['update']);router[_0xf130('0x11')](_0xf130('0xa'),auth[_0xf130('0x7')](),controller['destroy']);module[_0xf130('0x12')]=router;