Built motion from commit (unavailable).|2.4.17
[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 _0x983c=['Configurations','name','Subjects','type','content','variableName','Descriptions','key','keyType','keyContent','Variable','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration'];(function(_0x290fa6,_0x16d017){var _0x47f1f3=function(_0x2b5eb8){while(--_0x2b5eb8){_0x290fa6['push'](_0x290fa6['shift']());}};_0x47f1f3(++_0x16d017);}(_0x983c,0xf3));var _0xc983=function(_0x1612e9,_0x272ff8){_0x1612e9=_0x1612e9-0x0;var _0x5a39fd=_0x983c[_0x1612e9];return _0x5a39fd;};'use strict';var client=require(_0xc983('0x0'));exports[_0xc983('0x1')]=function(){return function(_0x44ec62){return client[_0xc983('0x2')](_0xc983('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xc983('0x4'),_0xc983('0x5'),_0xc983('0x6'),_0xc983('0x7')],'include':[{'model':_0xc983('0x8'),'as':_0xc983('0x9'),'attributes':['id',_0xc983('0xa')],'include':[{'model':'FreshsalesField','as':_0xc983('0xb'),'attributes':['id',_0xc983('0xc'),_0xc983('0xd'),_0xc983('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':'FreshsalesField','as':_0xc983('0xf'),'attributes':['id',_0xc983('0xc'),_0xc983('0xd'),_0xc983('0x10'),_0xc983('0x11'),_0xc983('0x12'),_0xc983('0xe')],'include':[{'model':_0xc983('0x13'),'as':_0xc983('0x13'),'attributes':['id','name']}]}]}]},'log':_0xc983('0x14')});};};