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