Built motion from commit (unavailable).|2.5.18
[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 _0x08fd=['../../client','getFreshdeskAccounts','GetFreshdeskAccount','apiKey','remoteUri','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField'];(function(_0x2d18c9,_0xa1d5ef){var _0x25b4c2=function(_0x334592){while(--_0x334592){_0x2d18c9['push'](_0x2d18c9['shift']());}};_0x25b4c2(++_0xa1d5ef);}(_0x08fd,0x159));var _0xd08f=function(_0x3957fa,_0x4b0034){_0x3957fa=_0x3957fa-0x0;var _0x1ccb0c=_0x08fd[_0x3957fa];return _0x1ccb0c;};'use strict';var client=require(_0xd08f('0x0'));exports[_0xd08f('0x1')]=function(){return function(_0x3b16da){return client['Request'](_0xd08f('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0xd08f('0x3'),_0xd08f('0x4'),'serverUrl'],'include':[{'model':_0xd08f('0x5'),'as':_0xd08f('0x6'),'attributes':['id',_0xd08f('0x7')],'include':[{'model':_0xd08f('0x8'),'attributes':['id',_0xd08f('0x7')]},{'model':_0xd08f('0x9'),'as':_0xd08f('0xa'),'attributes':['id',_0xd08f('0xb'),_0xd08f('0xc'),'variableName'],'include':[{'model':_0xd08f('0xd'),'as':_0xd08f('0xd'),'attributes':['id',_0xd08f('0x7')]}]},{'model':_0xd08f('0x9'),'as':_0xd08f('0xe'),'attributes':['id',_0xd08f('0xb'),_0xd08f('0xc'),_0xd08f('0xf'),_0xd08f('0x10'),_0xd08f('0x11'),_0xd08f('0x12')],'include':[{'model':'Variable','as':_0xd08f('0xd'),'attributes':['id','name']}]},{'model':_0xd08f('0x9'),'as':_0xd08f('0x13'),'attributes':['id',_0xd08f('0xb'),'content',_0xd08f('0x14'),_0xd08f('0x15'),_0xd08f('0x16'),_0xd08f('0x12')],'include':[{'model':'Variable','as':_0xd08f('0xd'),'attributes':['id','name']}]}]}]},'log':_0xd08f('0x2')});};};