Built motion from commit (unavailable).|2.5.23
[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 _0x256a=['create','post','addConfiguration','put','update','delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./intSalesforceAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','/:id/fields'];(function(_0x4af07f,_0x58167e){var _0x4fb6ed=function(_0x444ff1){while(--_0x444ff1){_0x4af07f['push'](_0x4af07f['shift']());}};_0x4fb6ed(++_0x58167e);}(_0x256a,0x170));var _0xa256=function(_0x1f92c9,_0x23919c){_0x1f92c9=_0x1f92c9-0x0;var _0x791ee3=_0x256a[_0x1f92c9];return _0x791ee3;};'use strict';var multer=require(_0xa256('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa256('0x1'));var express=require('express');var router=express[_0xa256('0x2')]();var auth=require(_0xa256('0x3'));var interaction=require(_0xa256('0x4'));var config=require('../../config/environment');var controller=require(_0xa256('0x5'));router[_0xa256('0x6')]('/',auth['isAuthenticated'](),controller[_0xa256('0x7')]);router[_0xa256('0x6')](_0xa256('0x8'),auth[_0xa256('0x9')](),controller['show']);router[_0xa256('0x6')](_0xa256('0xa'),auth[_0xa256('0x9')](),controller['getConfigurations']);router['get'](_0xa256('0xb'),auth[_0xa256('0x9')](),controller['getFields']);router['post']('/',auth[_0xa256('0x9')](),controller[_0xa256('0xc')]);router[_0xa256('0xd')](_0xa256('0xa'),auth['isAuthenticated'](),controller[_0xa256('0xe')]);router[_0xa256('0xf')]('/:id',auth[_0xa256('0x9')](),controller[_0xa256('0x10')]);router[_0xa256('0x11')](_0xa256('0x8'),auth[_0xa256('0x9')](),controller[_0xa256('0x12')]);module[_0xa256('0x13')]=router;