Built motion from commit 3c2ce842.|2.6.31
[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 _0x06cf=['get','index','/describe','isAuthenticated','describe','/:id','show','/:id/contacts','getContacts','create','post','update','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x56916d,_0x37b935){var _0x2b7f1f=function(_0x206eb1){while(--_0x206eb1){_0x56916d['push'](_0x56916d['shift']());}};_0x2b7f1f(++_0x37b935);}(_0x06cf,0xce));var _0xf06c=function(_0x2028af,_0x17496f){_0x2028af=_0x2028af-0x0;var _0x4bb7aa=_0x06cf[_0x2028af];return _0x4bb7aa;};'use strict';var multer=require(_0xf06c('0x0'));var util=require(_0xf06c('0x1'));var path=require(_0xf06c('0x2'));var timeout=require(_0xf06c('0x3'));var express=require(_0xf06c('0x4'));var router=express[_0xf06c('0x5')]();var fs_extra=require(_0xf06c('0x6'));var auth=require(_0xf06c('0x7'));var interaction=require(_0xf06c('0x8'));var config=require(_0xf06c('0x9'));var controller=require('./cmCompany.controller');router[_0xf06c('0xa')]('/',auth['isAuthenticated'](),controller[_0xf06c('0xb')]);router[_0xf06c('0xa')](_0xf06c('0xc'),auth[_0xf06c('0xd')](),controller[_0xf06c('0xe')]);router[_0xf06c('0xa')](_0xf06c('0xf'),auth[_0xf06c('0xd')](),controller[_0xf06c('0x10')]);router[_0xf06c('0xa')](_0xf06c('0x11'),auth[_0xf06c('0xd')](),controller[_0xf06c('0x12')]);router['post']('/',auth[_0xf06c('0xd')](),controller[_0xf06c('0x13')]);router[_0xf06c('0x14')](_0xf06c('0x11'),auth['isAuthenticated'](),controller['addContacts']);router['put'](_0xf06c('0xf'),auth['isAuthenticated'](),controller[_0xf06c('0x15')]);router['delete'](_0xf06c('0xf'),auth[_0xf06c('0xd')](),controller[_0xf06c('0x16')]);module[_0xf06c('0x17')]=router;