Built motion from commit ba71417a.|2.6.28
[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 _0xe04a=['destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmCompany.controller','get','isAuthenticated','/:id','/:id/contacts','getContacts','post','create','put','update','delete'];(function(_0x1cfa0d,_0x4391f2){var _0xe33279=function(_0x3ce7c1){while(--_0x3ce7c1){_0x1cfa0d['push'](_0x1cfa0d['shift']());}};_0xe33279(++_0x4391f2);}(_0xe04a,0xa2));var _0xae04=function(_0x17c932,_0x1d255c){_0x17c932=_0x17c932-0x0;var _0x58b95f=_0xe04a[_0x17c932];return _0x58b95f;};'use strict';var multer=require('multer');var util=require(_0xae04('0x0'));var path=require(_0xae04('0x1'));var timeout=require(_0xae04('0x2'));var express=require('express');var router=express[_0xae04('0x3')]();var fs_extra=require(_0xae04('0x4'));var auth=require(_0xae04('0x5'));var interaction=require(_0xae04('0x6'));var config=require('../../config/environment');var controller=require(_0xae04('0x7'));router[_0xae04('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xae04('0x8')]('/describe',auth[_0xae04('0x9')](),controller['describe']);router[_0xae04('0x8')](_0xae04('0xa'),auth[_0xae04('0x9')](),controller['show']);router[_0xae04('0x8')](_0xae04('0xb'),auth[_0xae04('0x9')](),controller[_0xae04('0xc')]);router[_0xae04('0xd')]('/',auth[_0xae04('0x9')](),controller[_0xae04('0xe')]);router[_0xae04('0xd')](_0xae04('0xb'),auth['isAuthenticated'](),controller['addContacts']);router[_0xae04('0xf')](_0xae04('0xa'),auth['isAuthenticated'](),controller[_0xae04('0x10')]);router[_0xae04('0x11')](_0xae04('0xa'),auth[_0xae04('0x9')](),controller[_0xae04('0x12')]);module[_0xae04('0x13')]=router;