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 _0x2f41=['../../components/interaction/service','../../config/environment','./cmCompany.controller','get','index','/:id','isAuthenticated','show','/:id/contacts','getContacts','create','post','update','delete','destroy','multer','util','express','Router'];(function(_0x4c59d5,_0x3e91e3){var _0x22b644=function(_0x2846c0){while(--_0x2846c0){_0x4c59d5['push'](_0x4c59d5['shift']());}};_0x22b644(++_0x3e91e3);}(_0x2f41,0x94));var _0x12f4=function(_0x5b7788,_0x309ae5){_0x5b7788=_0x5b7788-0x0;var _0x573871=_0x2f41[_0x5b7788];return _0x573871;};'use strict';var multer=require(_0x12f4('0x0'));var util=require(_0x12f4('0x1'));var path=require('path');var express=require(_0x12f4('0x2'));var router=express[_0x12f4('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x12f4('0x4'));var config=require(_0x12f4('0x5'));var controller=require(_0x12f4('0x6'));router[_0x12f4('0x7')]('/',auth['isAuthenticated'](),controller[_0x12f4('0x8')]);router['get'](_0x12f4('0x9'),auth[_0x12f4('0xa')](),controller[_0x12f4('0xb')]);router[_0x12f4('0x7')](_0x12f4('0xc'),auth[_0x12f4('0xa')](),controller[_0x12f4('0xd')]);router['post']('/',auth[_0x12f4('0xa')](),controller[_0x12f4('0xe')]);router[_0x12f4('0xf')](_0x12f4('0xc'),auth[_0x12f4('0xa')](),controller['addContacts']);router['put'](_0x12f4('0x9'),auth['isAuthenticated'](),controller[_0x12f4('0x10')]);router[_0x12f4('0x11')](_0x12f4('0x9'),auth[_0x12f4('0xa')](),controller[_0x12f4('0x12')]);module['exports']=router;