1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5817=['getProformaPDF','post','create','put','/:id','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./saProforma.controller','isAuthenticated','index','get','describe','show'];(function(_0x2999d1,_0x239815){var _0x20746b=function(_0x274477){while(--_0x274477){_0x2999d1['push'](_0x2999d1['shift']());}};_0x20746b(++_0x239815);}(_0x5817,0x13c));var _0x7581=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0x5817[_0x160c73];return _0xd9302;};'use strict';var multer=require('multer');var util=require(_0x7581('0x0'));var path=require(_0x7581('0x1'));var timeout=require(_0x7581('0x2'));var express=require(_0x7581('0x3'));var router=express[_0x7581('0x4')]();var auth=require(_0x7581('0x5'));var interaction=require(_0x7581('0x6'));var config=require(_0x7581('0x7'));var controller=require(_0x7581('0x8'));router['get']('/',auth[_0x7581('0x9')](),controller[_0x7581('0xa')]);router[_0x7581('0xb')]('/describe',auth['isAuthenticated'](),controller[_0x7581('0xc')]);router[_0x7581('0xb')]('/:id',auth[_0x7581('0x9')](),controller[_0x7581('0xd')]);router[_0x7581('0xb')]('/:id/download',auth[_0x7581('0x9')](),controller[_0x7581('0xe')]);router[_0x7581('0xf')]('/',auth[_0x7581('0x9')](),controller[_0x7581('0x10')]);router[_0x7581('0xf')]('/:id/cloneProforma',auth[_0x7581('0x9')](),controller['cloneProforma']);router[_0x7581('0x11')](_0x7581('0x12'),auth[_0x7581('0x9')](),controller[_0x7581('0x13')]);router['delete'](_0x7581('0x12'),auth[_0x7581('0x9')](),controller[_0x7581('0x14')]);module[_0x7581('0x15')]=router;