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