Built motion from commit (unavailable).|2.5.4
[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 _0x9609=['GetFreshdeskAccount','name','apiKey','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','variableName','Variable','key','content','idField','nameField','customField','../../client','getFreshdeskAccounts','Request'];(function(_0x909dfe,_0x36e38a){var _0x5cb58f=function(_0x3f3000){while(--_0x3f3000){_0x909dfe['push'](_0x909dfe['shift']());}};_0x5cb58f(++_0x36e38a);}(_0x9609,0x115));var _0x9960=function(_0x147af3,_0x3d1958){_0x147af3=_0x147af3-0x0;var _0x3c18b7=_0x9609[_0x147af3];return _0x3c18b7;};'use strict';var client=require(_0x9960('0x0'));exports[_0x9960('0x1')]=function(){return function(_0x36ac6d){return client[_0x9960('0x2')](_0x9960('0x3'),{'options':{'raw':![],'attributes':['id',_0x9960('0x4'),'username',_0x9960('0x5'),'remoteUri',_0x9960('0x6')],'include':[{'model':_0x9960('0x7'),'as':_0x9960('0x8'),'attributes':['id',_0x9960('0x4')],'include':[{'model':_0x9960('0x9'),'attributes':['id',_0x9960('0x4')]},{'model':_0x9960('0xa'),'as':_0x9960('0xb'),'attributes':['id',_0x9960('0xc'),'content',_0x9960('0xd')],'include':[{'model':_0x9960('0xe'),'as':_0x9960('0xe'),'attributes':['id',_0x9960('0x4')]}]},{'model':_0x9960('0xa'),'as':'Descriptions','attributes':['id','type','content',_0x9960('0xf'),'keyType','keyContent','variableName'],'include':[{'model':_0x9960('0xe'),'as':'Variable','attributes':['id',_0x9960('0x4')]}]},{'model':_0x9960('0xa'),'as':'Fields','attributes':['id',_0x9960('0xc'),_0x9960('0x10'),_0x9960('0x11'),_0x9960('0x12'),_0x9960('0x13'),_0x9960('0xd')],'include':[{'model':'Variable','as':_0x9960('0xe'),'attributes':['id',_0x9960('0x4')]}]}]}]},'log':_0x9960('0x3')});};};