Built motion from commit (unavailable).|2.5.8
[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 _0x37b4=['Tag','FreshdeskField','Subjects','type','content','Variable','key','keyType','keyContent','customField','variableName','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','username','apiKey','serverUrl','FreshdeskConfiguration','Configurations'];(function(_0x2ca298,_0x70686){var _0x4a3f8c=function(_0x49fc46){while(--_0x49fc46){_0x2ca298['push'](_0x2ca298['shift']());}};_0x4a3f8c(++_0x70686);}(_0x37b4,0x15c));var _0x437b=function(_0x5c2bef,_0x16806e){_0x5c2bef=_0x5c2bef-0x0;var _0xd60cc1=_0x37b4[_0x5c2bef];return _0xd60cc1;};'use strict';var client=require(_0x437b('0x0'));exports[_0x437b('0x1')]=function(){return function(_0x2302ae){return client[_0x437b('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x437b('0x3'),_0x437b('0x4'),_0x437b('0x5'),'remoteUri',_0x437b('0x6')],'include':[{'model':_0x437b('0x7'),'as':_0x437b('0x8'),'attributes':['id',_0x437b('0x3')],'include':[{'model':_0x437b('0x9'),'attributes':['id',_0x437b('0x3')]},{'model':_0x437b('0xa'),'as':_0x437b('0xb'),'attributes':['id',_0x437b('0xc'),_0x437b('0xd'),'variableName'],'include':[{'model':'Variable','as':_0x437b('0xe'),'attributes':['id',_0x437b('0x3')]}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id',_0x437b('0xc'),'content',_0x437b('0xf'),_0x437b('0x10'),_0x437b('0x11'),'variableName'],'include':[{'model':_0x437b('0xe'),'as':_0x437b('0xe'),'attributes':['id','name']}]},{'model':_0x437b('0xa'),'as':'Fields','attributes':['id',_0x437b('0xc'),_0x437b('0xd'),'idField','nameField',_0x437b('0x12'),_0x437b('0x13')],'include':[{'model':_0x437b('0xe'),'as':_0x437b('0xe'),'attributes':['id','name']}]}]}]},'log':_0x437b('0x14')});};};