5791249072d18eabea2dbda21649b8bd923da7fe
[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 _0xbcff=['Descriptions','type','key','keyContent','variableName','Fields','nameField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','remoteUri','serverUrl','FreshdeskConfiguration','Tag','FreshdeskField','Subjects','content','Variable'];(function(_0x599582,_0x44d882){var _0x452182=function(_0x15d2ce){while(--_0x15d2ce){_0x599582['push'](_0x599582['shift']());}};_0x452182(++_0x44d882);}(_0xbcff,0x12e));var _0xfbcf=function(_0xe3341e,_0x5cd5f6){_0xe3341e=_0xe3341e-0x0;var _0x3b898b=_0xbcff[_0xe3341e];return _0x3b898b;};'use strict';var client=require(_0xfbcf('0x0'));exports[_0xfbcf('0x1')]=function(){return function(_0x15bd55){return client['Request'](_0xfbcf('0x2'),{'options':{'raw':![],'attributes':['id',_0xfbcf('0x3'),_0xfbcf('0x4'),'apiKey',_0xfbcf('0x5'),_0xfbcf('0x6')],'include':[{'model':_0xfbcf('0x7'),'as':'Configurations','attributes':['id',_0xfbcf('0x3')],'include':[{'model':_0xfbcf('0x8'),'attributes':['id','name']},{'model':_0xfbcf('0x9'),'as':_0xfbcf('0xa'),'attributes':['id','type',_0xfbcf('0xb'),'variableName'],'include':[{'model':_0xfbcf('0xc'),'as':_0xfbcf('0xc'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xfbcf('0xd'),'attributes':['id',_0xfbcf('0xe'),_0xfbcf('0xb'),_0xfbcf('0xf'),'keyType',_0xfbcf('0x10'),_0xfbcf('0x11')],'include':[{'model':_0xfbcf('0xc'),'as':_0xfbcf('0xc'),'attributes':['id',_0xfbcf('0x3')]}]},{'model':_0xfbcf('0x9'),'as':_0xfbcf('0x12'),'attributes':['id','type',_0xfbcf('0xb'),'idField',_0xfbcf('0x13'),_0xfbcf('0x14'),_0xfbcf('0x11')],'include':[{'model':_0xfbcf('0xc'),'as':_0xfbcf('0xc'),'attributes':['id',_0xfbcf('0x3')]}]}]}]},'log':_0xfbcf('0x2')});};};