Built motion from commit (unavailable).|2.5.22
[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 _0xa829=['FreshdeskField','Subjects','content','variableName','Variable','key','keyContent','Fields','type','idField','customField','../../client','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag'];(function(_0x3c2407,_0x3c9a47){var _0x5d2eac=function(_0xb33bf8){while(--_0xb33bf8){_0x3c2407['push'](_0x3c2407['shift']());}};_0x5d2eac(++_0x3c9a47);}(_0xa829,0x123));var _0x9a82=function(_0x2baf20,_0xff8782){_0x2baf20=_0x2baf20-0x0;var _0x30d0fa=_0xa829[_0x2baf20];return _0x30d0fa;};'use strict';var client=require(_0x9a82('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x25b42d){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x9a82('0x1'),_0x9a82('0x2'),_0x9a82('0x3'),_0x9a82('0x4')],'include':[{'model':_0x9a82('0x5'),'as':_0x9a82('0x6'),'attributes':['id',_0x9a82('0x7')],'include':[{'model':_0x9a82('0x8'),'attributes':['id',_0x9a82('0x7')]},{'model':_0x9a82('0x9'),'as':_0x9a82('0xa'),'attributes':['id','type',_0x9a82('0xb'),_0x9a82('0xc')],'include':[{'model':_0x9a82('0xd'),'as':_0x9a82('0xd'),'attributes':['id','name']}]},{'model':_0x9a82('0x9'),'as':'Descriptions','attributes':['id','type',_0x9a82('0xb'),_0x9a82('0xe'),'keyType',_0x9a82('0xf'),_0x9a82('0xc')],'include':[{'model':'Variable','as':_0x9a82('0xd'),'attributes':['id',_0x9a82('0x7')]}]},{'model':_0x9a82('0x9'),'as':_0x9a82('0x10'),'attributes':['id',_0x9a82('0x11'),_0x9a82('0xb'),_0x9a82('0x12'),'nameField',_0x9a82('0x13'),_0x9a82('0xc')],'include':[{'model':_0x9a82('0xd'),'as':'Variable','attributes':['id',_0x9a82('0x7')]}]}]}]},'log':'GetFreshdeskAccount'});};};