Built motion from commit (unavailable).|2.5.3
[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 _0x8b5f=['getFreshdeskAccounts','GetFreshdeskAccount','apiKey','remoteUri','FreshdeskConfiguration','Configurations','name','Tag','Subjects','content','Variable','FreshdeskField','Descriptions','type','key','keyType','keyContent','Fields','idField','variableName','../../client'];(function(_0x2519d7,_0x13c5ef){var _0x579eda=function(_0x14a8b2){while(--_0x14a8b2){_0x2519d7['push'](_0x2519d7['shift']());}};_0x579eda(++_0x13c5ef);}(_0x8b5f,0x7d));var _0xf8b5=function(_0x473380,_0x24c940){_0x473380=_0x473380-0x0;var _0x26d47b=_0x8b5f[_0x473380];return _0x26d47b;};'use strict';var client=require(_0xf8b5('0x0'));exports[_0xf8b5('0x1')]=function(){return function(_0x336e95){return client['Request'](_0xf8b5('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0xf8b5('0x3'),_0xf8b5('0x4'),'serverUrl'],'include':[{'model':_0xf8b5('0x5'),'as':_0xf8b5('0x6'),'attributes':['id',_0xf8b5('0x7')],'include':[{'model':_0xf8b5('0x8'),'attributes':['id',_0xf8b5('0x7')]},{'model':'FreshdeskField','as':_0xf8b5('0x9'),'attributes':['id','type',_0xf8b5('0xa'),'variableName'],'include':[{'model':_0xf8b5('0xb'),'as':_0xf8b5('0xb'),'attributes':['id',_0xf8b5('0x7')]}]},{'model':_0xf8b5('0xc'),'as':_0xf8b5('0xd'),'attributes':['id',_0xf8b5('0xe'),_0xf8b5('0xa'),_0xf8b5('0xf'),_0xf8b5('0x10'),_0xf8b5('0x11'),'variableName'],'include':[{'model':_0xf8b5('0xb'),'as':_0xf8b5('0xb'),'attributes':['id',_0xf8b5('0x7')]}]},{'model':_0xf8b5('0xc'),'as':_0xf8b5('0x12'),'attributes':['id',_0xf8b5('0xe'),'content',_0xf8b5('0x13'),'nameField','customField',_0xf8b5('0x14')],'include':[{'model':_0xf8b5('0xb'),'as':_0xf8b5('0xb'),'attributes':['id','name']}]}]}]},'log':'GetFreshdeskAccount'});};};