Built motion from commit (unavailable).|2.5.25
[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 _0x37f4=['GetFreshdeskAccount','../../client','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','variableName','Descriptions','key','keyType','keyContent','Variable','Fields','idField','customField'];(function(_0xe5a174,_0x164298){var _0x58df7f=function(_0x558fd2){while(--_0x558fd2){_0xe5a174['push'](_0xe5a174['shift']());}};_0x58df7f(++_0x164298);}(_0x37f4,0x85));var _0x437f=function(_0x455c5f,_0x2979c0){_0x455c5f=_0x455c5f-0x0;var _0x1bcae9=_0x37f4[_0x455c5f];return _0x1bcae9;};'use strict';var client=require(_0x437f('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x4fcecb){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x437f('0x1'),_0x437f('0x2'),_0x437f('0x3'),_0x437f('0x4'),_0x437f('0x5')],'include':[{'model':_0x437f('0x6'),'as':_0x437f('0x7'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x437f('0x1')]},{'model':_0x437f('0x8'),'as':_0x437f('0x9'),'attributes':['id',_0x437f('0xa'),_0x437f('0xb'),_0x437f('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x437f('0x1')]}]},{'model':_0x437f('0x8'),'as':_0x437f('0xd'),'attributes':['id','type',_0x437f('0xb'),_0x437f('0xe'),_0x437f('0xf'),_0x437f('0x10'),_0x437f('0xc')],'include':[{'model':_0x437f('0x11'),'as':_0x437f('0x11'),'attributes':['id','name']}]},{'model':_0x437f('0x8'),'as':_0x437f('0x12'),'attributes':['id',_0x437f('0xa'),_0x437f('0xb'),_0x437f('0x13'),'nameField',_0x437f('0x14'),_0x437f('0xc')],'include':[{'model':_0x437f('0x11'),'as':_0x437f('0x11'),'attributes':['id','name']}]}]}]},'log':_0x437f('0x15')});};};