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 _0x11e3=['serverUrl','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','keyContent','Fields','idField','nameField','customField','../../client','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri'];(function(_0x138f59,_0x1b53fb){var _0x3d114d=function(_0x1f9461){while(--_0x1f9461){_0x138f59['push'](_0x138f59['shift']());}};_0x3d114d(++_0x1b53fb);}(_0x11e3,0x1b1));var _0x311e=function(_0x2c838f,_0x129b92){_0x2c838f=_0x2c838f-0x0;var _0x24e7f4=_0x11e3[_0x2c838f];return _0x24e7f4;};'use strict';var client=require(_0x311e('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x2dd659){return client[_0x311e('0x1')](_0x311e('0x2'),{'options':{'raw':![],'attributes':['id',_0x311e('0x3'),_0x311e('0x4'),_0x311e('0x5'),_0x311e('0x6'),_0x311e('0x7')],'include':[{'model':'FreshdeskConfiguration','as':_0x311e('0x8'),'attributes':['id',_0x311e('0x3')],'include':[{'model':_0x311e('0x9'),'attributes':['id','name']},{'model':_0x311e('0xa'),'as':_0x311e('0xb'),'attributes':['id',_0x311e('0xc'),_0x311e('0xd'),_0x311e('0xe')],'include':[{'model':'Variable','as':_0x311e('0xf'),'attributes':['id',_0x311e('0x3')]}]},{'model':'FreshdeskField','as':_0x311e('0x10'),'attributes':['id',_0x311e('0xc'),'content','key','keyType',_0x311e('0x11'),_0x311e('0xe')],'include':[{'model':_0x311e('0xf'),'as':_0x311e('0xf'),'attributes':['id',_0x311e('0x3')]}]},{'model':_0x311e('0xa'),'as':_0x311e('0x12'),'attributes':['id','type',_0x311e('0xd'),_0x311e('0x13'),_0x311e('0x14'),_0x311e('0x15'),_0x311e('0xe')],'include':[{'model':_0x311e('0xf'),'as':_0x311e('0xf'),'attributes':['id',_0x311e('0x3')]}]}]}]},'log':_0x311e('0x2')});};};