717478559acfe7204852201b702be4a619eb3ad8
[motion2.git] / server / api / cmCompany / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x5f25=['delete','destroy','exports','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/contacts','getContacts','post','addContacts','put','update'];(function(_0x17e3c4,_0x821010){var _0x2211b9=function(_0x33ab42){while(--_0x33ab42){_0x17e3c4['push'](_0x17e3c4['shift']());}};_0x2211b9(++_0x821010);}(_0x5f25,0x13b));var _0x55f2=function(_0x2df2d0,_0x1d6ea8){_0x2df2d0=_0x2df2d0-0x0;var _0x3c4438=_0x5f25[_0x2df2d0];return _0x3c4438;};'use strict';var multer=require('multer');var util=require(_0x55f2('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x55f2('0x1'));var router=express[_0x55f2('0x2')]();var fs_extra=require(_0x55f2('0x3'));var auth=require(_0x55f2('0x4'));var interaction=require(_0x55f2('0x5'));var config=require(_0x55f2('0x6'));var controller=require(_0x55f2('0x7'));router[_0x55f2('0x8')]('/',auth[_0x55f2('0x9')](),controller[_0x55f2('0xa')]);router['get'](_0x55f2('0xb'),auth[_0x55f2('0x9')](),controller[_0x55f2('0xc')]);router['get'](_0x55f2('0xd'),auth[_0x55f2('0x9')](),controller[_0x55f2('0xe')]);router[_0x55f2('0x8')](_0x55f2('0xf'),auth[_0x55f2('0x9')](),controller[_0x55f2('0x10')]);router[_0x55f2('0x11')]('/',auth[_0x55f2('0x9')](),controller['create']);router[_0x55f2('0x11')](_0x55f2('0xf'),auth['isAuthenticated'](),controller[_0x55f2('0x12')]);router[_0x55f2('0x13')](_0x55f2('0xd'),auth[_0x55f2('0x9')](),controller[_0x55f2('0x14')]);router[_0x55f2('0x15')]('/:id',auth[_0x55f2('0x9')](),controller[_0x55f2('0x16')]);module[_0x55f2('0x17')]=router;