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 _0x4faa=['multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./cmCompany.controller','get','index','/describe','describe','/:id','show','/:id/contacts','getContacts','post','isAuthenticated','put','update','delete','destroy','exports'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0x4faa,0x198));var _0xa4fa=function(_0x13e741,_0x5d3c24){_0x13e741=_0x13e741-0x0;var _0x3f8bb3=_0x4faa[_0x13e741];return _0x3f8bb3;};'use strict';var multer=require(_0xa4fa('0x0'));var util=require(_0xa4fa('0x1'));var path=require(_0xa4fa('0x2'));var timeout=require('connect-timeout');var express=require(_0xa4fa('0x3'));var router=express[_0xa4fa('0x4')]();var fs_extra=require(_0xa4fa('0x5'));var auth=require(_0xa4fa('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa4fa('0x7'));var controller=require(_0xa4fa('0x8'));router[_0xa4fa('0x9')]('/',auth['isAuthenticated'](),controller[_0xa4fa('0xa')]);router[_0xa4fa('0x9')](_0xa4fa('0xb'),auth['isAuthenticated'](),controller[_0xa4fa('0xc')]);router[_0xa4fa('0x9')](_0xa4fa('0xd'),auth['isAuthenticated'](),controller[_0xa4fa('0xe')]);router['get'](_0xa4fa('0xf'),auth['isAuthenticated'](),controller[_0xa4fa('0x10')]);router[_0xa4fa('0x11')]('/',auth[_0xa4fa('0x12')](),controller['create']);router['post'](_0xa4fa('0xf'),auth[_0xa4fa('0x12')](),controller['addContacts']);router[_0xa4fa('0x13')](_0xa4fa('0xd'),auth[_0xa4fa('0x12')](),controller[_0xa4fa('0x14')]);router[_0xa4fa('0x15')](_0xa4fa('0xd'),auth[_0xa4fa('0x12')](),controller[_0xa4fa('0x16')]);module[_0xa4fa('0x17')]=router;