Built motion from commit (unavailable).|2.5.21
[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 _0xe74e=['type','content','key','keyType','keyContent','GetFreshsalesccount','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','FreshsalesField','Subjects','variableName','Variable','Descriptions'];(function(_0x314327,_0x951049){var _0x393d64=function(_0x315a50){while(--_0x315a50){_0x314327['push'](_0x314327['shift']());}};_0x393d64(++_0x951049);}(_0xe74e,0x10a));var _0xee74=function(_0x46390f,_0x478a39){_0x46390f=_0x46390f-0x0;var _0x27e863=_0xe74e[_0x46390f];return _0x27e863;};'use strict';var client=require('../../client');exports[_0xee74('0x0')]=function(){return function(_0x268524){return client[_0xee74('0x1')](_0xee74('0x2'),{'options':{'raw':![],'attributes':['id',_0xee74('0x3'),_0xee74('0x4'),_0xee74('0x5'),_0xee74('0x6'),_0xee74('0x7')],'include':[{'model':_0xee74('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xee74('0x9'),'as':_0xee74('0xa'),'attributes':['id','type','content',_0xee74('0xb')],'include':[{'model':_0xee74('0xc'),'as':_0xee74('0xc'),'attributes':['id','name']}]},{'model':'FreshsalesField','as':_0xee74('0xd'),'attributes':['id',_0xee74('0xe'),_0xee74('0xf'),_0xee74('0x10'),_0xee74('0x11'),_0xee74('0x12'),'variableName'],'include':[{'model':_0xee74('0xc'),'as':_0xee74('0xc'),'attributes':['id',_0xee74('0x3')]}]}]}]},'log':_0xee74('0x13')});};};