Built motion from commit (unavailable).|2.5.4
[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 _0x7217=['Router','../../components/auth/service','./cmCompany.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/contacts','post','create','addContacts','put','update','destroy','exports','multer','path','connect-timeout','express'];(function(_0x4134d6,_0x12a9cf){var _0x81e604=function(_0x535397){while(--_0x535397){_0x4134d6['push'](_0x4134d6['shift']());}};_0x81e604(++_0x12a9cf);}(_0x7217,0x19e));var _0x7721=function(_0x2576d7,_0x167624){_0x2576d7=_0x2576d7-0x0;var _0x16a08c=_0x7217[_0x2576d7];return _0x16a08c;};'use strict';var multer=require(_0x7721('0x0'));var util=require('util');var path=require(_0x7721('0x1'));var timeout=require(_0x7721('0x2'));var express=require(_0x7721('0x3'));var router=express[_0x7721('0x4')]();var auth=require(_0x7721('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x7721('0x6'));router[_0x7721('0x7')]('/',auth[_0x7721('0x8')](),controller[_0x7721('0x9')]);router[_0x7721('0x7')](_0x7721('0xa'),auth[_0x7721('0x8')](),controller[_0x7721('0xb')]);router[_0x7721('0x7')](_0x7721('0xc'),auth[_0x7721('0x8')](),controller[_0x7721('0xd')]);router[_0x7721('0x7')](_0x7721('0xe'),auth[_0x7721('0x8')](),controller['getContacts']);router[_0x7721('0xf')]('/',auth[_0x7721('0x8')](),controller[_0x7721('0x10')]);router[_0x7721('0xf')](_0x7721('0xe'),auth[_0x7721('0x8')](),controller[_0x7721('0x11')]);router[_0x7721('0x12')]('/:id',auth[_0x7721('0x8')](),controller[_0x7721('0x13')]);router['delete'](_0x7721('0xc'),auth[_0x7721('0x8')](),controller[_0x7721('0x14')]);module[_0x7721('0x15')]=router;