Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / smsAccount / 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 _0xf613=['../../components/auth/service','../../components/interaction/service','../../config/environment','./smsAccount.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/dispositions','getAnswers','/:id/applications','/:id/interactions','getInteractions','/:id/status','/:id/users','getAgents','post','create','addDisposition','/:id/canned_answers','/:id/notify','notify','addApplications','/:id/send','send','addAgents','put','delete','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','express','Router'];(function(_0x2112d4,_0x3c863c){var _0x434972=function(_0x477020){while(--_0x477020){_0x2112d4['push'](_0x2112d4['shift']());}};_0x434972(++_0x3c863c);}(_0xf613,0x70));var _0x3f61=function(_0x28fa6f,_0x1b22ac){_0x28fa6f=_0x28fa6f-0x0;var _0x1ae01b=_0xf613[_0x28fa6f];return _0x1ae01b;};'use strict';var multer=require(_0x3f61('0x0'));var util=require(_0x3f61('0x1'));var path=require(_0x3f61('0x2'));var timeout=require('connect-timeout');var express=require(_0x3f61('0x3'));var router=express[_0x3f61('0x4')]();var auth=require(_0x3f61('0x5'));var interaction=require(_0x3f61('0x6'));var config=require(_0x3f61('0x7'));var controller=require(_0x3f61('0x8'));router[_0x3f61('0x9')]('/',auth[_0x3f61('0xa')](),controller['index']);router['get'](_0x3f61('0xb'),auth['isAuthenticated'](),controller[_0x3f61('0xc')]);router[_0x3f61('0x9')](_0x3f61('0xd'),auth[_0x3f61('0xa')](),controller[_0x3f61('0xe')]);router[_0x3f61('0x9')](_0x3f61('0xf'),auth['isAuthenticated'](),controller['getDispositions']);router['get']('/:id/canned_answers',auth[_0x3f61('0xa')](),controller[_0x3f61('0x10')]);router[_0x3f61('0x9')](_0x3f61('0x11'),auth[_0x3f61('0xa')](),controller['getApplications']);router[_0x3f61('0x9')](_0x3f61('0x12'),auth[_0x3f61('0xa')](),controller[_0x3f61('0x13')]);router[_0x3f61('0x9')](_0x3f61('0x14'),controller['statusGet']);router['get'](_0x3f61('0x15'),auth['isAuthenticated'](),controller[_0x3f61('0x16')]);router[_0x3f61('0x17')]('/',auth[_0x3f61('0xa')](),controller[_0x3f61('0x18')]);router[_0x3f61('0x17')](_0x3f61('0xf'),auth['isAuthenticated'](),controller[_0x3f61('0x19')]);router[_0x3f61('0x17')](_0x3f61('0x1a'),auth[_0x3f61('0xa')](),controller['addAnswer']);router[_0x3f61('0x17')](_0x3f61('0x1b'),controller[_0x3f61('0x1c')]);router[_0x3f61('0x17')](_0x3f61('0x11'),auth[_0x3f61('0xa')](),controller[_0x3f61('0x1d')]);router[_0x3f61('0x17')](_0x3f61('0x1e'),auth[_0x3f61('0xa')](),controller[_0x3f61('0x1f')]);router[_0x3f61('0x17')](_0x3f61('0x14'),controller['status']);router['post'](_0x3f61('0x15'),auth[_0x3f61('0xa')](),controller[_0x3f61('0x20')]);router[_0x3f61('0x21')](_0x3f61('0xd'),auth[_0x3f61('0xa')](),controller['update']);router[_0x3f61('0x22')](_0x3f61('0xd'),auth[_0x3f61('0xa')](),controller['destroy']);router[_0x3f61('0x22')](_0x3f61('0xf'),auth[_0x3f61('0xa')](),controller[_0x3f61('0x23')]);router[_0x3f61('0x22')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x3f61('0x24')]);router[_0x3f61('0x22')]('/:id/users',auth[_0x3f61('0xa')](),controller[_0x3f61('0x25')]);module[_0x3f61('0x26')]=router;