Built motion from commit 092f8824.|2.5.49
[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 _0x4c71=['type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects'];(function(_0x5427c8,_0x18f384){var _0x33a129=function(_0x1940e8){while(--_0x1940e8){_0x5427c8['push'](_0x5427c8['shift']());}};_0x33a129(++_0x18f384);}(_0x4c71,0x12b));var _0x14c7=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0x4c71[_0x3d42d8];return _0x27fc41;};'use strict';var client=require(_0x14c7('0x0'));exports[_0x14c7('0x1')]=function(){return function(_0x581a30){return client[_0x14c7('0x2')](_0x14c7('0x3'),{'options':{'raw':![],'attributes':['id',_0x14c7('0x4'),_0x14c7('0x5'),_0x14c7('0x6'),'remoteUri',_0x14c7('0x7')],'include':[{'model':_0x14c7('0x8'),'as':_0x14c7('0x9'),'attributes':['id',_0x14c7('0x4')],'include':[{'model':_0x14c7('0xa'),'attributes':['id','name']},{'model':_0x14c7('0xb'),'as':_0x14c7('0xc'),'attributes':['id',_0x14c7('0xd'),_0x14c7('0xe'),_0x14c7('0xf')],'include':[{'model':'Variable','as':_0x14c7('0x10'),'attributes':['id','name']}]},{'model':_0x14c7('0xb'),'as':_0x14c7('0x11'),'attributes':['id','type',_0x14c7('0xe'),_0x14c7('0x12'),_0x14c7('0x13'),_0x14c7('0x14'),_0x14c7('0xf')],'include':[{'model':_0x14c7('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':_0x14c7('0xb'),'as':_0x14c7('0x15'),'attributes':['id',_0x14c7('0xd'),_0x14c7('0xe'),_0x14c7('0x16'),_0x14c7('0x17'),'customField','variableName'],'include':[{'model':_0x14c7('0x10'),'as':_0x14c7('0x10'),'attributes':['id','name']}]}]}]},'log':_0x14c7('0x3')});};};