Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0xe2cf=['FreshdeskField','content','variableName','Variable','Descriptions','key','keyType','keyContent','customField','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','FreshdeskConfiguration','Configurations'];(function(_0x56b05b,_0x203cc7){var _0x446110=function(_0x591d6e){while(--_0x591d6e){_0x56b05b['push'](_0x56b05b['shift']());}};_0x446110(++_0x203cc7);}(_0xe2cf,0x1a1));var _0xfe2c=function(_0x359bbe,_0x5b7fcc){_0x359bbe=_0x359bbe-0x0;var _0x1b3353=_0xe2cf[_0x359bbe];return _0x1b3353;};'use strict';var client=require('../../client');exports[_0xfe2c('0x0')]=function(){return function(_0x546786){return client[_0xfe2c('0x1')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xfe2c('0x2'),_0xfe2c('0x3'),_0xfe2c('0x4'),_0xfe2c('0x5'),'serverUrl'],'include':[{'model':_0xfe2c('0x6'),'as':_0xfe2c('0x7'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0xfe2c('0x2')]},{'model':_0xfe2c('0x8'),'as':'Subjects','attributes':['id','type',_0xfe2c('0x9'),_0xfe2c('0xa')],'include':[{'model':_0xfe2c('0xb'),'as':'Variable','attributes':['id','name']}]},{'model':_0xfe2c('0x8'),'as':_0xfe2c('0xc'),'attributes':['id','type',_0xfe2c('0x9'),_0xfe2c('0xd'),_0xfe2c('0xe'),_0xfe2c('0xf'),_0xfe2c('0xa')],'include':[{'model':_0xfe2c('0xb'),'as':_0xfe2c('0xb'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':'Fields','attributes':['id','type',_0xfe2c('0x9'),'idField','nameField',_0xfe2c('0x10'),_0xfe2c('0xa')],'include':[{'model':_0xfe2c('0xb'),'as':_0xfe2c('0xb'),'attributes':['id','name']}]}]}]},'log':'GetFreshdeskAccount'});};};