Built motion from commit (unavailable).|2.4.17
[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 _0xe62f=['FreshdeskField','Subjects','type','content','Variable','key','keyType','idField','variableName','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','apiKey','FreshdeskConfiguration','Configurations','Tag'];(function(_0x4ae232,_0x40b1b2){var _0xd3a633=function(_0xfaa70c){while(--_0xfaa70c){_0x4ae232['push'](_0x4ae232['shift']());}};_0xd3a633(++_0x40b1b2);}(_0xe62f,0x14e));var _0xfe62=function(_0x7e03d6,_0x109dd5){_0x7e03d6=_0x7e03d6-0x0;var _0x41a819=_0xe62f[_0x7e03d6];return _0x41a819;};'use strict';var client=require(_0xfe62('0x0'));exports[_0xfe62('0x1')]=function(){return function(_0x233adb){return client[_0xfe62('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xfe62('0x3'),'username',_0xfe62('0x4'),'remoteUri','serverUrl'],'include':[{'model':_0xfe62('0x5'),'as':_0xfe62('0x6'),'attributes':['id',_0xfe62('0x3')],'include':[{'model':_0xfe62('0x7'),'attributes':['id',_0xfe62('0x3')]},{'model':_0xfe62('0x8'),'as':_0xfe62('0x9'),'attributes':['id',_0xfe62('0xa'),_0xfe62('0xb'),'variableName'],'include':[{'model':_0xfe62('0xc'),'as':_0xfe62('0xc'),'attributes':['id',_0xfe62('0x3')]}]},{'model':_0xfe62('0x8'),'as':'Descriptions','attributes':['id',_0xfe62('0xa'),_0xfe62('0xb'),_0xfe62('0xd'),_0xfe62('0xe'),'keyContent','variableName'],'include':[{'model':_0xfe62('0xc'),'as':_0xfe62('0xc'),'attributes':['id',_0xfe62('0x3')]}]},{'model':_0xfe62('0x8'),'as':'Fields','attributes':['id',_0xfe62('0xa'),_0xfe62('0xb'),_0xfe62('0xf'),'nameField','customField',_0xfe62('0x10')],'include':[{'model':_0xfe62('0xc'),'as':_0xfe62('0xc'),'attributes':['id',_0xfe62('0x3')]}]}]}]},'log':_0xfe62('0x11')});};};