54cefda9c1764211e98143e649d91c66cc5b0b15
[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 _0xab64=['describe','/:id','show','/:id/contacts','getContacts','create','delete','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','get'];(function(_0x2e1da7,_0x4e26dc){var _0x151559=function(_0x1002b2){while(--_0x1002b2){_0x2e1da7['push'](_0x2e1da7['shift']());}};_0x151559(++_0x4e26dc);}(_0xab64,0xa0));var _0x4ab6=function(_0x4c85c5,_0x38bcf8){_0x4c85c5=_0x4c85c5-0x0;var _0x148b9b=_0xab64[_0x4c85c5];return _0x148b9b;};'use strict';var multer=require(_0x4ab6('0x0'));var util=require(_0x4ab6('0x1'));var path=require(_0x4ab6('0x2'));var timeout=require(_0x4ab6('0x3'));var express=require('express');var router=express[_0x4ab6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x4ab6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x4ab6('0x6'));var controller=require(_0x4ab6('0x7'));router['get']('/',auth[_0x4ab6('0x8')](),controller[_0x4ab6('0x9')]);router[_0x4ab6('0xa')]('/describe',auth[_0x4ab6('0x8')](),controller[_0x4ab6('0xb')]);router[_0x4ab6('0xa')](_0x4ab6('0xc'),auth[_0x4ab6('0x8')](),controller[_0x4ab6('0xd')]);router[_0x4ab6('0xa')](_0x4ab6('0xe'),auth[_0x4ab6('0x8')](),controller[_0x4ab6('0xf')]);router['post']('/',auth[_0x4ab6('0x8')](),controller[_0x4ab6('0x10')]);router['post']('/:id/contacts',auth[_0x4ab6('0x8')](),controller['addContacts']);router['put'](_0x4ab6('0xc'),auth[_0x4ab6('0x8')](),controller['update']);router[_0x4ab6('0x11')](_0x4ab6('0xc'),auth[_0x4ab6('0x8')](),controller['destroy']);module[_0x4ab6('0x12')]=router;