a14c52688b20737ad5c1a01e6ed72ae2b6cc8206
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xae04=['GetVtigerAccount','name','description','remoteUri','VtigerConfiguration','Configurations','Subjects','type','Variable','VtigerField','Descriptions','keyContent','variableName','Fields','content','idField','nameField','../../client','getVtigerAccounts','Request'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0xae04,0x151));var _0x4ae0=function(_0x58c50e,_0x573495){_0x58c50e=_0x58c50e-0x0;var _0x4a8199=_0xae04[_0x58c50e];return _0x4a8199;};'use strict';var client=require(_0x4ae0('0x0'));exports[_0x4ae0('0x1')]=function(){return function(_0xbab8cb){return client[_0x4ae0('0x2')](_0x4ae0('0x3'),{'options':{'raw':![],'attributes':['id',_0x4ae0('0x4'),_0x4ae0('0x5'),'username','accessKey',_0x4ae0('0x6'),'serverUrl'],'include':[{'model':_0x4ae0('0x7'),'as':_0x4ae0('0x8'),'attributes':['id',_0x4ae0('0x4')],'include':[{'model':'VtigerField','as':_0x4ae0('0x9'),'attributes':['id',_0x4ae0('0xa'),'content','variableName'],'include':[{'model':_0x4ae0('0xb'),'as':_0x4ae0('0xb'),'attributes':['id',_0x4ae0('0x4')]}]},{'model':_0x4ae0('0xc'),'as':_0x4ae0('0xd'),'attributes':['id',_0x4ae0('0xa'),'content','key','keyType',_0x4ae0('0xe'),_0x4ae0('0xf')],'include':[{'model':_0x4ae0('0xb'),'as':'Variable','attributes':['id','name']}]},{'model':_0x4ae0('0xc'),'as':_0x4ae0('0x10'),'attributes':['id',_0x4ae0('0xa'),_0x4ae0('0x11'),_0x4ae0('0x12'),_0x4ae0('0x13'),'customField',_0x4ae0('0xf')],'include':[{'model':_0x4ae0('0xb'),'as':_0x4ae0('0xb'),'attributes':['id',_0x4ae0('0x4')]}]}]}]},'log':_0x4ae0('0x3')});};};