4e548fba0b4d555346e71aa496f4f06d9fd7b157
[motion2.git] / server / api / saQuotation / 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 _0x37cb=['path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./saQuotation.controller','get','index','/describe','isAuthenticated','describe','/:id','show','post','create','/:id/movequotationassets','moveQuotationAsset','update','delete','util'];(function(_0x4e2370,_0x3c2601){var _0x3a9f59=function(_0x120b51){while(--_0x120b51){_0x4e2370['push'](_0x4e2370['shift']());}};_0x3a9f59(++_0x3c2601);}(_0x37cb,0x164));var _0xb37c=function(_0x3e5086,_0x48f4a2){_0x3e5086=_0x3e5086-0x0;var _0xfeb102=_0x37cb[_0x3e5086];return _0xfeb102;};'use strict';var multer=require('multer');var util=require(_0xb37c('0x0'));var path=require(_0xb37c('0x1'));var timeout=require(_0xb37c('0x2'));var express=require('express');var router=express[_0xb37c('0x3')]();var auth=require(_0xb37c('0x4'));var interaction=require(_0xb37c('0x5'));var config=require(_0xb37c('0x6'));var controller=require(_0xb37c('0x7'));router[_0xb37c('0x8')]('/',auth['isAuthenticated'](),controller[_0xb37c('0x9')]);router[_0xb37c('0x8')](_0xb37c('0xa'),auth[_0xb37c('0xb')](),controller[_0xb37c('0xc')]);router[_0xb37c('0x8')](_0xb37c('0xd'),auth[_0xb37c('0xb')](),controller[_0xb37c('0xe')]);router[_0xb37c('0xf')]('/',auth[_0xb37c('0xb')](),controller[_0xb37c('0x10')]);router[_0xb37c('0xf')](_0xb37c('0x11'),auth[_0xb37c('0xb')](),controller[_0xb37c('0x12')]);router['put'](_0xb37c('0xd'),auth[_0xb37c('0xb')](),controller[_0xb37c('0x13')]);router[_0xb37c('0x14')](_0xb37c('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;