Built motion from commit (unavailable).|2.5.14
[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 _0x9a3f=['Descriptions','key','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','name','username','remoteUri','Configurations','Tag','type','content','variableName','Variable','FreshdeskField'];(function(_0x2e164b,_0x486623){var _0xdf5443=function(_0x418e93){while(--_0x418e93){_0x2e164b['push'](_0x2e164b['shift']());}};_0xdf5443(++_0x486623);}(_0x9a3f,0x93));var _0xf9a3=function(_0x303295,_0x14350b){_0x303295=_0x303295-0x0;var _0x46f13e=_0x9a3f[_0x303295];return _0x46f13e;};'use strict';var client=require(_0xf9a3('0x0'));exports[_0xf9a3('0x1')]=function(){return function(_0x25da0b){return client[_0xf9a3('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xf9a3('0x3'),_0xf9a3('0x4'),'apiKey',_0xf9a3('0x5'),'serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':_0xf9a3('0x6'),'attributes':['id',_0xf9a3('0x3')],'include':[{'model':_0xf9a3('0x7'),'attributes':['id','name']},{'model':'FreshdeskField','as':'Subjects','attributes':['id',_0xf9a3('0x8'),_0xf9a3('0x9'),_0xf9a3('0xa')],'include':[{'model':_0xf9a3('0xb'),'as':_0xf9a3('0xb'),'attributes':['id','name']}]},{'model':_0xf9a3('0xc'),'as':_0xf9a3('0xd'),'attributes':['id',_0xf9a3('0x8'),_0xf9a3('0x9'),_0xf9a3('0xe'),'keyType',_0xf9a3('0xf'),_0xf9a3('0xa')],'include':[{'model':_0xf9a3('0xb'),'as':'Variable','attributes':['id',_0xf9a3('0x3')]}]},{'model':_0xf9a3('0xc'),'as':_0xf9a3('0x10'),'attributes':['id',_0xf9a3('0x8'),'content',_0xf9a3('0x11'),_0xf9a3('0x12'),_0xf9a3('0x13'),_0xf9a3('0xa')],'include':[{'model':_0xf9a3('0xb'),'as':'Variable','attributes':['id',_0xf9a3('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};