Built motion from commit (unavailable).|2.5.21
[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 _0xa3e4=['FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','nameField','customField','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration'];(function(_0x4064ae,_0x3517b8){var _0x215842=function(_0x44c921){while(--_0x44c921){_0x4064ae['push'](_0x4064ae['shift']());}};_0x215842(++_0x3517b8);}(_0xa3e4,0xd3));var _0x4a3e=function(_0x5c6aeb,_0x1a3eda){_0x5c6aeb=_0x5c6aeb-0x0;var _0x518281=_0xa3e4[_0x5c6aeb];return _0x518281;};'use strict';var client=require('../../client');exports[_0x4a3e('0x0')]=function(){return function(_0x30025b){return client[_0x4a3e('0x1')](_0x4a3e('0x2'),{'options':{'raw':![],'attributes':['id',_0x4a3e('0x3'),_0x4a3e('0x4'),_0x4a3e('0x5'),_0x4a3e('0x6'),_0x4a3e('0x7')],'include':[{'model':_0x4a3e('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x4a3e('0x3')]},{'model':_0x4a3e('0x9'),'as':_0x4a3e('0xa'),'attributes':['id',_0x4a3e('0xb'),_0x4a3e('0xc'),_0x4a3e('0xd')],'include':[{'model':'Variable','as':_0x4a3e('0xe'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x4a3e('0xf'),'attributes':['id',_0x4a3e('0xb'),_0x4a3e('0xc'),_0x4a3e('0x10'),'keyType',_0x4a3e('0x11'),'variableName'],'include':[{'model':_0x4a3e('0xe'),'as':_0x4a3e('0xe'),'attributes':['id',_0x4a3e('0x3')]}]},{'model':_0x4a3e('0x9'),'as':_0x4a3e('0x12'),'attributes':['id',_0x4a3e('0xb'),'content',_0x4a3e('0x13'),_0x4a3e('0x14'),_0x4a3e('0x15'),_0x4a3e('0xd')],'include':[{'model':_0x4a3e('0xe'),'as':_0x4a3e('0xe'),'attributes':['id','name']}]}]}]},'log':_0x4a3e('0x2')});};};