X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FcmList%2Findex.js;h=42b8598ce041f9e1d4c7b4cbe7eeb94fc9c67fe0;hb=8cdeeda1196ee7d2ad7723378ea9a4f6c5d1e83a;hp=1ea314bf87e7e369193aa07815129f9ee92f1e99;hpb=b8feeab5a72cbb7651a1c603fc767034cd5922cc;p=motion2.git diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index 1ea314b..42b8598 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x20ff=['/:id/contacts','getContacts','/:id/contacts/csv','/:id/fields','getCustomFields','post','addContacts','addCustomField','/:id/users','addAgents','put','update','delete','removeDispositions','removeAgents','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmList.controller','isAuthenticated','get','/describe','describe','/global_fields','getGlobalCustomFields','/:id','show','/:id/dispositions','getDispositions'];(function(_0x517ca1,_0x1d1df5){var _0x2285e3=function(_0xa14319){while(--_0xa14319){_0x517ca1['push'](_0x517ca1['shift']());}};_0x2285e3(++_0x1d1df5);}(_0x20ff,0x16e));var _0xf20f=function(_0x3bfbac,_0x5cd9d7){_0x3bfbac=_0x3bfbac-0x0;var _0x63420b=_0x20ff[_0x3bfbac];return _0x63420b;};'use strict';var multer=require(_0xf20f('0x0'));var util=require(_0xf20f('0x1'));var path=require(_0xf20f('0x2'));var timeout=require(_0xf20f('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xf20f('0x4'));var auth=require(_0xf20f('0x5'));var interaction=require(_0xf20f('0x6'));var config=require(_0xf20f('0x7'));var controller=require(_0xf20f('0x8'));router['get']('/',auth[_0xf20f('0x9')](),controller['index']);router[_0xf20f('0xa')](_0xf20f('0xb'),auth[_0xf20f('0x9')](),controller[_0xf20f('0xc')]);router[_0xf20f('0xa')](_0xf20f('0xd'),auth['isAuthenticated'](),controller[_0xf20f('0xe')]);router[_0xf20f('0xa')](_0xf20f('0xf'),auth[_0xf20f('0x9')](),controller[_0xf20f('0x10')]);router[_0xf20f('0xa')](_0xf20f('0x11'),auth[_0xf20f('0x9')](),controller[_0xf20f('0x12')]);router[_0xf20f('0xa')](_0xf20f('0x13'),auth[_0xf20f('0x9')](),controller[_0xf20f('0x14')]);router[_0xf20f('0xa')](_0xf20f('0x15'),auth['isAuthenticated'](),controller['getContactsCsv']);router[_0xf20f('0xa')](_0xf20f('0x16'),auth['isAuthenticated'](),controller[_0xf20f('0x17')]);router[_0xf20f('0xa')]('/:id/users',auth[_0xf20f('0x9')](),controller['getAgents']);router[_0xf20f('0x18')]('/',auth[_0xf20f('0x9')](),controller['create']);router[_0xf20f('0x18')]('/:id/dispositions',auth[_0xf20f('0x9')](),controller['addDisposition']);router[_0xf20f('0x18')]('/:id/contacts',auth[_0xf20f('0x9')](),controller[_0xf20f('0x19')]);router[_0xf20f('0x18')]('/:id/fields',auth[_0xf20f('0x9')](),controller[_0xf20f('0x1a')]);router[_0xf20f('0x18')](_0xf20f('0x1b'),auth['isAuthenticated'](),controller[_0xf20f('0x1c')]);router[_0xf20f('0x1d')](_0xf20f('0xf'),auth['isAuthenticated'](),controller[_0xf20f('0x1e')]);router[_0xf20f('0x1f')](_0xf20f('0xf'),auth[_0xf20f('0x9')](),controller['destroy']);router[_0xf20f('0x1f')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xf20f('0x20')]);router[_0xf20f('0x1f')](_0xf20f('0x1b'),auth[_0xf20f('0x9')](),controller[_0xf20f('0x21')]);module[_0xf20f('0x22')]=router; \ No newline at end of file +var _0xb790=['/:id','update','delete','destroy','removeAgents','util','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/global_fields','getGlobalCustomFields','show','/:id/dispositions','getDispositions','/:id/contacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getCustomFields','getAgents','create','post','addDisposition','addCustomField','/:id/users','addAgents','put'];(function(_0x1fd973,_0x47e406){var _0x19fed6=function(_0x19e8b0){while(--_0x19e8b0){_0x1fd973['push'](_0x1fd973['shift']());}};_0x19fed6(++_0x47e406);}(_0xb790,0xe5));var _0x0b79=function(_0x5ea797,_0x2d39dd){_0x5ea797=_0x5ea797-0x0;var _0x500783=_0xb790[_0x5ea797];return _0x500783;};'use strict';var multer=require('multer');var util=require(_0x0b79('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0b79('0x1')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x0b79('0x2'));var config=require(_0x0b79('0x3'));var controller=require('./cmList.controller');router[_0x0b79('0x4')]('/',auth[_0x0b79('0x5')](),controller[_0x0b79('0x6')]);router[_0x0b79('0x4')](_0x0b79('0x7'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x8')]);router[_0x0b79('0x4')](_0x0b79('0x9'),auth[_0x0b79('0x5')](),controller[_0x0b79('0xa')]);router[_0x0b79('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x0b79('0xb')]);router[_0x0b79('0x4')](_0x0b79('0xc'),auth[_0x0b79('0x5')](),controller[_0x0b79('0xd')]);router['get'](_0x0b79('0xe'),auth[_0x0b79('0x5')](),controller['getContacts']);router[_0x0b79('0x4')](_0x0b79('0xf'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x10')]);router['get'](_0x0b79('0x11'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x12')]);router[_0x0b79('0x4')]('/:id/users',auth[_0x0b79('0x5')](),controller[_0x0b79('0x13')]);router['post']('/',auth[_0x0b79('0x5')](),controller[_0x0b79('0x14')]);router[_0x0b79('0x15')](_0x0b79('0xc'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x16')]);router[_0x0b79('0x15')](_0x0b79('0xe'),auth['isAuthenticated'](),controller['addContacts']);router['post'](_0x0b79('0x11'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x17')]);router['post'](_0x0b79('0x18'),auth['isAuthenticated'](),controller[_0x0b79('0x19')]);router[_0x0b79('0x1a')](_0x0b79('0x1b'),auth['isAuthenticated'](),controller[_0x0b79('0x1c')]);router[_0x0b79('0x1d')](_0x0b79('0x1b'),auth['isAuthenticated'](),controller[_0x0b79('0x1e')]);router['delete']('/:id/dispositions',auth[_0x0b79('0x5')](),controller['removeDispositions']);router[_0x0b79('0x1d')](_0x0b79('0x18'),auth[_0x0b79('0x5')](),controller[_0x0b79('0x1f')]);module['exports']=router; \ No newline at end of file