Built motion from commit (unavailable).|2.4.21
[motion2.git] / server / api / faxAccount / 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 _0x1a18=['send','/:id','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxAccount.controller','isAuthenticated','index','get','/describe','describe','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/messages','getMessages','/:id/users','getAgents','post','addDisposition','addAnswer','addInteraction','addApplications','/addaccountapplications','addAccountApplications','/updateaccountapplications','updateAccountApplications','/:id/send'];(function(_0xbf400c,_0x37e1e7){var _0x2ee697=function(_0x3c2668){while(--_0x3c2668){_0xbf400c['push'](_0xbf400c['shift']());}};_0x2ee697(++_0x37e1e7);}(_0x1a18,0x8a));var _0x81a1=function(_0x13137e,_0x29c0f3){_0x13137e=_0x13137e-0x0;var _0x346261=_0x1a18[_0x13137e];return _0x346261;};'use strict';var multer=require(_0x81a1('0x0'));var util=require(_0x81a1('0x1'));var path=require(_0x81a1('0x2'));var timeout=require(_0x81a1('0x3'));var express=require(_0x81a1('0x4'));var router=express['Router']();var auth=require(_0x81a1('0x5'));var interaction=require(_0x81a1('0x6'));var config=require(_0x81a1('0x7'));var controller=require(_0x81a1('0x8'));router['get']('/',auth[_0x81a1('0x9')](),controller[_0x81a1('0xa')]);router[_0x81a1('0xb')](_0x81a1('0xc'),auth[_0x81a1('0x9')](),controller[_0x81a1('0xd')]);router[_0x81a1('0xb')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x81a1('0xb')](_0x81a1('0xe'),auth[_0x81a1('0x9')](),controller[_0x81a1('0xf')]);router['get'](_0x81a1('0x10'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x11')]);router[_0x81a1('0xb')]('/:id/interactions',auth[_0x81a1('0x9')](),controller['getInteractions']);router[_0x81a1('0xb')](_0x81a1('0x12'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x13')]);router[_0x81a1('0xb')](_0x81a1('0x14'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x15')]);router[_0x81a1('0xb')](_0x81a1('0x16'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x17')]);router[_0x81a1('0x18')]('/',auth['isAuthenticated'](),controller['create']);router[_0x81a1('0x18')](_0x81a1('0xe'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x19')]);router[_0x81a1('0x18')](_0x81a1('0x10'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x1a')]);router[_0x81a1('0x18')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x81a1('0x1b')]);router[_0x81a1('0x18')](_0x81a1('0x12'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x1c')]);router['post'](_0x81a1('0x1d'),auth['isAuthenticated'](),controller[_0x81a1('0x1e')]);router[_0x81a1('0x18')](_0x81a1('0x1f'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x20')]);router[_0x81a1('0x18')](_0x81a1('0x21'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x22')]);router[_0x81a1('0x18')]('/:id/users',auth[_0x81a1('0x9')](),controller['addAgents']);router['put'](_0x81a1('0x23'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x24')]);router[_0x81a1('0x25')](_0x81a1('0x23'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x26')]);router[_0x81a1('0x25')](_0x81a1('0xe'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x27')]);router[_0x81a1('0x25')](_0x81a1('0x10'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x28')]);router[_0x81a1('0x25')](_0x81a1('0x16'),auth[_0x81a1('0x9')](),controller[_0x81a1('0x29')]);module[_0x81a1('0x2a')]=router;