Built motion from commit 5ae82ce5.|2.6.7
[motion2.git] / server / api / cmList / 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 _0x6efe=['isAuthenticated','/:id/dispositions','getDispositions','/:id/contacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getCustomFields','/:id/users','post','create','addDisposition','update','delete','removeDispositions','exports','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','/describe','describe','get','getGlobalCustomFields','/:id'];(function(_0x264b9b,_0xa1181e){var _0x4c7a0e=function(_0x4b77a0){while(--_0x4b77a0){_0x264b9b['push'](_0x264b9b['shift']());}};_0x4c7a0e(++_0xa1181e);}(_0x6efe,0x1a5));var _0xe6ef=function(_0x5e3683,_0x41bc90){_0x5e3683=_0x5e3683-0x0;var _0x5c4fc3=_0x6efe[_0x5e3683];return _0x5c4fc3;};'use strict';var multer=require('multer');var util=require(_0xe6ef('0x0'));var path=require('path');var timeout=require(_0xe6ef('0x1'));var express=require(_0xe6ef('0x2'));var router=express[_0xe6ef('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe6ef('0x4'));var config=require(_0xe6ef('0x5'));var controller=require('./cmList.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xe6ef('0x6'),auth['isAuthenticated'](),controller[_0xe6ef('0x7')]);router[_0xe6ef('0x8')]('/global_fields',auth['isAuthenticated'](),controller[_0xe6ef('0x9')]);router[_0xe6ef('0x8')](_0xe6ef('0xa'),auth[_0xe6ef('0xb')](),controller['show']);router[_0xe6ef('0x8')](_0xe6ef('0xc'),auth[_0xe6ef('0xb')](),controller[_0xe6ef('0xd')]);router['get'](_0xe6ef('0xe'),auth[_0xe6ef('0xb')](),controller['getContacts']);router[_0xe6ef('0x8')](_0xe6ef('0xf'),auth[_0xe6ef('0xb')](),controller[_0xe6ef('0x10')]);router['get'](_0xe6ef('0x11'),auth['isAuthenticated'](),controller[_0xe6ef('0x12')]);router[_0xe6ef('0x8')](_0xe6ef('0x13'),auth[_0xe6ef('0xb')](),controller['getAgents']);router[_0xe6ef('0x14')]('/',auth[_0xe6ef('0xb')](),controller[_0xe6ef('0x15')]);router['post'](_0xe6ef('0xc'),auth[_0xe6ef('0xb')](),controller[_0xe6ef('0x16')]);router['post'](_0xe6ef('0xe'),auth[_0xe6ef('0xb')](),controller['addContacts']);router[_0xe6ef('0x14')](_0xe6ef('0x11'),auth[_0xe6ef('0xb')](),controller['addCustomField']);router[_0xe6ef('0x14')](_0xe6ef('0x13'),auth[_0xe6ef('0xb')](),controller['addAgents']);router['put'](_0xe6ef('0xa'),auth[_0xe6ef('0xb')](),controller[_0xe6ef('0x17')]);router[_0xe6ef('0x18')](_0xe6ef('0xa'),auth[_0xe6ef('0xb')](),controller['destroy']);router[_0xe6ef('0x18')](_0xe6ef('0xc'),auth[_0xe6ef('0xb')](),controller[_0xe6ef('0x19')]);router[_0xe6ef('0x18')](_0xe6ef('0x13'),auth['isAuthenticated'](),controller['removeAgents']);module[_0xe6ef('0x1a')]=router;