Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / ami / rpc / integrations / freshsales.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 _0xd9fb=['serverUrl','Configurations','FreshsalesField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','remoteUri'];(function(_0x3b3e96,_0x1a99c3){var _0x86d225=function(_0x3e2dc0){while(--_0x3e2dc0){_0x3b3e96['push'](_0x3b3e96['shift']());}};_0x86d225(++_0x1a99c3);}(_0xd9fb,0x189));var _0xbd9f=function(_0x5c9307,_0x5b97e4){_0x5c9307=_0x5c9307-0x0;var _0x373e29=_0xd9fb[_0x5c9307];return _0x373e29;};'use strict';var client=require(_0xbd9f('0x0'));exports[_0xbd9f('0x1')]=function(){return function(_0x288314){return client[_0xbd9f('0x2')](_0xbd9f('0x3'),{'options':{'raw':![],'attributes':['id',_0xbd9f('0x4'),_0xbd9f('0x5'),'apiKey',_0xbd9f('0x6'),_0xbd9f('0x7')],'include':[{'model':'FreshsalesConfiguration','as':_0xbd9f('0x8'),'attributes':['id','name'],'include':[{'model':_0xbd9f('0x9'),'as':_0xbd9f('0xa'),'attributes':['id','type',_0xbd9f('0xb'),_0xbd9f('0xc')],'include':[{'model':_0xbd9f('0xd'),'as':_0xbd9f('0xd'),'attributes':['id','name']}]},{'model':_0xbd9f('0x9'),'as':_0xbd9f('0xe'),'attributes':['id',_0xbd9f('0xf'),_0xbd9f('0xb'),_0xbd9f('0x10'),_0xbd9f('0x11'),_0xbd9f('0x12'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xbd9f('0x13')});};};