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