Built motion from commit 753c950e.|2.5.42
[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 _0x6b72=['Tag','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields','idField','nameField','customField','GetFreshdeskAccount','../../client','Request','name','username','serverUrl','FreshdeskConfiguration','Configurations'];(function(_0x4632ef,_0x12f249){var _0x40aa60=function(_0x4e521a){while(--_0x4e521a){_0x4632ef['push'](_0x4632ef['shift']());}};_0x40aa60(++_0x12f249);}(_0x6b72,0x19d));var _0x26b7=function(_0x40f2c3,_0x483d2b){_0x40f2c3=_0x40f2c3-0x0;var _0x19bb9c=_0x6b72[_0x40f2c3];return _0x19bb9c;};'use strict';var client=require(_0x26b7('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x1d6896){return client[_0x26b7('0x1')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x26b7('0x2'),_0x26b7('0x3'),'apiKey','remoteUri',_0x26b7('0x4')],'include':[{'model':_0x26b7('0x5'),'as':_0x26b7('0x6'),'attributes':['id',_0x26b7('0x2')],'include':[{'model':_0x26b7('0x7'),'attributes':['id',_0x26b7('0x2')]},{'model':_0x26b7('0x8'),'as':_0x26b7('0x9'),'attributes':['id',_0x26b7('0xa'),_0x26b7('0xb'),_0x26b7('0xc')],'include':[{'model':'Variable','as':_0x26b7('0xd'),'attributes':['id',_0x26b7('0x2')]}]},{'model':_0x26b7('0x8'),'as':'Descriptions','attributes':['id',_0x26b7('0xa'),'content',_0x26b7('0xe'),'keyType',_0x26b7('0xf'),_0x26b7('0xc')],'include':[{'model':_0x26b7('0xd'),'as':_0x26b7('0xd'),'attributes':['id','name']}]},{'model':_0x26b7('0x8'),'as':_0x26b7('0x10'),'attributes':['id',_0x26b7('0xa'),_0x26b7('0xb'),_0x26b7('0x11'),_0x26b7('0x12'),_0x26b7('0x13'),_0x26b7('0xc')],'include':[{'model':_0x26b7('0xd'),'as':_0x26b7('0xd'),'attributes':['id','name']}]}]}]},'log':_0x26b7('0x14')});};};