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 _0x81a9=['show','create','post','/:id/contacts','addContacts','put','update','delete','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','get','describe','/:id'];(function(_0x22e9a5,_0x2a1c0e){var _0x393dda=function(_0x4d67eb){while(--_0x4d67eb){_0x22e9a5['push'](_0x22e9a5['shift']());}};_0x393dda(++_0x2a1c0e);}(_0x81a9,0xe4));var _0x981a=function(_0x1d840d,_0x4160f2){_0x1d840d=_0x1d840d-0x0;var _0x4f52c4=_0x81a9[_0x1d840d];return _0x4f52c4;};'use strict';var multer=require(_0x981a('0x0'));var util=require(_0x981a('0x1'));var path=require('path');var timeout=require(_0x981a('0x2'));var express=require('express');var router=express[_0x981a('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x981a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x981a('0x5'));var controller=require(_0x981a('0x6'));router['get']('/',auth[_0x981a('0x7')](),controller[_0x981a('0x8')]);router[_0x981a('0x9')]('/describe',auth[_0x981a('0x7')](),controller[_0x981a('0xa')]);router[_0x981a('0x9')](_0x981a('0xb'),auth['isAuthenticated'](),controller[_0x981a('0xc')]);router['get']('/:id/contacts',auth[_0x981a('0x7')](),controller['getContacts']);router['post']('/',auth[_0x981a('0x7')](),controller[_0x981a('0xd')]);router[_0x981a('0xe')](_0x981a('0xf'),auth['isAuthenticated'](),controller[_0x981a('0x10')]);router[_0x981a('0x11')](_0x981a('0xb'),auth[_0x981a('0x7')](),controller[_0x981a('0x12')]);router[_0x981a('0x13')]('/:id',auth[_0x981a('0x7')](),controller['destroy']);module['exports']=router;