beabac22772845940da136095a560c407ddf5908
[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 _0x50b0=['/:id','show','/:id/dispositions','/:id/contacts','getContacts','getContactsCsv','/:id/users','getAgents','post','addContacts','addAgents','put','delete','destroy','removeDispositions','removeAgents','exports','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./cmList.controller','get','index','/describe','isAuthenticated','/global_fields','getGlobalCustomFields'];(function(_0x32179c,_0x32fb68){var _0xad3766=function(_0x597f3f){while(--_0x597f3f){_0x32179c['push'](_0x32179c['shift']());}};_0xad3766(++_0x32fb68);}(_0x50b0,0xa7));var _0x050b=function(_0x6cf23e,_0x448101){_0x6cf23e=_0x6cf23e-0x0;var _0x1be1d6=_0x50b0[_0x6cf23e];return _0x1be1d6;};'use strict';var multer=require('multer');var util=require(_0x050b('0x0'));var path=require('path');var timeout=require(_0x050b('0x1'));var express=require(_0x050b('0x2'));var router=express['Router']();var fs_extra=require(_0x050b('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x050b('0x4'));var config=require(_0x050b('0x5'));var controller=require(_0x050b('0x6'));router[_0x050b('0x7')]('/',auth['isAuthenticated'](),controller[_0x050b('0x8')]);router[_0x050b('0x7')](_0x050b('0x9'),auth[_0x050b('0xa')](),controller['describe']);router['get'](_0x050b('0xb'),auth[_0x050b('0xa')](),controller[_0x050b('0xc')]);router[_0x050b('0x7')](_0x050b('0xd'),auth[_0x050b('0xa')](),controller[_0x050b('0xe')]);router[_0x050b('0x7')](_0x050b('0xf'),auth['isAuthenticated'](),controller['getDispositions']);router[_0x050b('0x7')](_0x050b('0x10'),auth[_0x050b('0xa')](),controller[_0x050b('0x11')]);router[_0x050b('0x7')]('/:id/contacts/csv',auth[_0x050b('0xa')](),controller[_0x050b('0x12')]);router[_0x050b('0x7')]('/:id/fields',auth[_0x050b('0xa')](),controller['getCustomFields']);router[_0x050b('0x7')](_0x050b('0x13'),auth[_0x050b('0xa')](),controller[_0x050b('0x14')]);router[_0x050b('0x15')]('/',auth[_0x050b('0xa')](),controller['create']);router[_0x050b('0x15')](_0x050b('0xf'),auth['isAuthenticated'](),controller['addDisposition']);router['post'](_0x050b('0x10'),auth[_0x050b('0xa')](),controller[_0x050b('0x16')]);router[_0x050b('0x15')]('/:id/fields',auth[_0x050b('0xa')](),controller['addCustomField']);router['post']('/:id/users',auth[_0x050b('0xa')](),controller[_0x050b('0x17')]);router[_0x050b('0x18')]('/:id',auth[_0x050b('0xa')](),controller['update']);router[_0x050b('0x19')](_0x050b('0xd'),auth[_0x050b('0xa')](),controller[_0x050b('0x1a')]);router['delete']('/:id/dispositions',auth['isAuthenticated'](),controller[_0x050b('0x1b')]);router[_0x050b('0x19')](_0x050b('0x13'),auth[_0x050b('0xa')](),controller[_0x050b('0x1c')]);module[_0x050b('0x1d')]=router;