7ced396283ed09525720af099a88e58d73de8ec9
[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 _0x0439=['Subjects','content','Variable','Descriptions','type','keyType','keyContent','Fields','idField','nameField','variableName','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','remoteUri','serverUrl','FreshdeskConfiguration','FreshdeskField'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0x0439,0xdd));var _0x9043=function(_0xfaddc9,_0x5c9ad2){_0xfaddc9=_0xfaddc9-0x0;var _0x579846=_0x0439[_0xfaddc9];return _0x579846;};'use strict';var client=require(_0x9043('0x0'));exports[_0x9043('0x1')]=function(){return function(_0x1bef87){return client[_0x9043('0x2')](_0x9043('0x3'),{'options':{'raw':![],'attributes':['id',_0x9043('0x4'),_0x9043('0x5'),'apiKey',_0x9043('0x6'),_0x9043('0x7')],'include':[{'model':_0x9043('0x8'),'as':'Configurations','attributes':['id',_0x9043('0x4')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x9043('0x9'),'as':_0x9043('0xa'),'attributes':['id','type',_0x9043('0xb'),'variableName'],'include':[{'model':_0x9043('0xc'),'as':_0x9043('0xc'),'attributes':['id','name']}]},{'model':_0x9043('0x9'),'as':_0x9043('0xd'),'attributes':['id',_0x9043('0xe'),'content','key',_0x9043('0xf'),_0x9043('0x10'),'variableName'],'include':[{'model':_0x9043('0xc'),'as':_0x9043('0xc'),'attributes':['id',_0x9043('0x4')]}]},{'model':_0x9043('0x9'),'as':_0x9043('0x11'),'attributes':['id',_0x9043('0xe'),'content',_0x9043('0x12'),_0x9043('0x13'),'customField',_0x9043('0x14')],'include':[{'model':_0x9043('0xc'),'as':'Variable','attributes':['id',_0x9043('0x4')]}]}]}]},'log':_0x9043('0x3')});};};