Built motion from commit (unavailable).|2.5.6
[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 _0xe28b=['remoteUri','Tag','FreshdeskField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','idField','nameField','customField','GetFreshdeskAccount','name','username'];(function(_0x31dd7e,_0x72d5da){var _0x2a6bfd=function(_0x34a241){while(--_0x34a241){_0x31dd7e['push'](_0x31dd7e['shift']());}};_0x2a6bfd(++_0x72d5da);}(_0xe28b,0x153));var _0xbe28=function(_0x1777a6,_0xf00e5c){_0x1777a6=_0x1777a6-0x0;var _0x9a7adf=_0xe28b[_0x1777a6];return _0x9a7adf;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x47957f){return client['Request'](_0xbe28('0x0'),{'options':{'raw':![],'attributes':['id',_0xbe28('0x1'),_0xbe28('0x2'),'apiKey',_0xbe28('0x3'),'serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0xbe28('0x1')],'include':[{'model':_0xbe28('0x4'),'attributes':['id',_0xbe28('0x1')]},{'model':_0xbe28('0x5'),'as':_0xbe28('0x6'),'attributes':['id','type',_0xbe28('0x7'),_0xbe28('0x8')],'include':[{'model':_0xbe28('0x9'),'as':_0xbe28('0x9'),'attributes':['id',_0xbe28('0x1')]}]},{'model':_0xbe28('0x5'),'as':_0xbe28('0xa'),'attributes':['id',_0xbe28('0xb'),_0xbe28('0x7'),_0xbe28('0xc'),_0xbe28('0xd'),_0xbe28('0xe'),_0xbe28('0x8')],'include':[{'model':_0xbe28('0x9'),'as':_0xbe28('0x9'),'attributes':['id',_0xbe28('0x1')]}]},{'model':_0xbe28('0x5'),'as':'Fields','attributes':['id',_0xbe28('0xb'),_0xbe28('0x7'),_0xbe28('0xf'),_0xbe28('0x10'),_0xbe28('0x11'),'variableName'],'include':[{'model':'Variable','as':_0xbe28('0x9'),'attributes':['id','name']}]}]}]},'log':_0xbe28('0x0')});};};