Built motion from commit (unavailable).|2.5.26
[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 _0xf8e1=['../../config/environment','./cmCompany.controller','get','index','/describe','isAuthenticated','describe','/:id','/:id/contacts','getContacts','post','create','addContacts','put','delete','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service'];(function(_0x36ce6c,_0x390f67){var _0x4fb0b6=function(_0x318846){while(--_0x318846){_0x36ce6c['push'](_0x36ce6c['shift']());}};_0x4fb0b6(++_0x390f67);}(_0xf8e1,0x13c));var _0x1f8e=function(_0x1b3205,_0x110e7b){_0x1b3205=_0x1b3205-0x0;var _0x3a96e3=_0xf8e1[_0x1b3205];return _0x3a96e3;};'use strict';var multer=require('multer');var util=require(_0x1f8e('0x0'));var path=require(_0x1f8e('0x1'));var timeout=require(_0x1f8e('0x2'));var express=require('express');var router=express[_0x1f8e('0x3')]();var fs_extra=require(_0x1f8e('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x1f8e('0x5'));var config=require(_0x1f8e('0x6'));var controller=require(_0x1f8e('0x7'));router[_0x1f8e('0x8')]('/',auth['isAuthenticated'](),controller[_0x1f8e('0x9')]);router[_0x1f8e('0x8')](_0x1f8e('0xa'),auth[_0x1f8e('0xb')](),controller[_0x1f8e('0xc')]);router[_0x1f8e('0x8')](_0x1f8e('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x1f8e('0x8')](_0x1f8e('0xe'),auth[_0x1f8e('0xb')](),controller[_0x1f8e('0xf')]);router[_0x1f8e('0x10')]('/',auth[_0x1f8e('0xb')](),controller[_0x1f8e('0x11')]);router[_0x1f8e('0x10')](_0x1f8e('0xe'),auth[_0x1f8e('0xb')](),controller[_0x1f8e('0x12')]);router[_0x1f8e('0x13')](_0x1f8e('0xd'),auth[_0x1f8e('0xb')](),controller['update']);router[_0x1f8e('0x14')]('/:id',auth[_0x1f8e('0xb')](),controller[_0x1f8e('0x15')]);module[_0x1f8e('0x16')]=router;