Built motion from commit f7863d46.|2.5.41
[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 _0x943a=['serverUrl','Configurations','VtigerField','Subjects','type','Variable','content','key','keyContent','variableName','Fields','idField','nameField','../../client','GetVtigerAccount','name','description','username','accessKey','remoteUri'];(function(_0x2b2b48,_0x434c7c){var _0x459579=function(_0x36ccd2){while(--_0x36ccd2){_0x2b2b48['push'](_0x2b2b48['shift']());}};_0x459579(++_0x434c7c);}(_0x943a,0x125));var _0xa943=function(_0x140a94,_0x2c1be9){_0x140a94=_0x140a94-0x0;var _0x3613e8=_0x943a[_0x140a94];return _0x3613e8;};'use strict';var client=require(_0xa943('0x0'));exports['getVtigerAccounts']=function(){return function(_0x3303ec){return client['Request'](_0xa943('0x1'),{'options':{'raw':![],'attributes':['id',_0xa943('0x2'),_0xa943('0x3'),_0xa943('0x4'),_0xa943('0x5'),_0xa943('0x6'),_0xa943('0x7')],'include':[{'model':'VtigerConfiguration','as':_0xa943('0x8'),'attributes':['id',_0xa943('0x2')],'include':[{'model':_0xa943('0x9'),'as':_0xa943('0xa'),'attributes':['id',_0xa943('0xb'),'content','variableName'],'include':[{'model':_0xa943('0xc'),'as':_0xa943('0xc'),'attributes':['id',_0xa943('0x2')]}]},{'model':_0xa943('0x9'),'as':'Descriptions','attributes':['id',_0xa943('0xb'),_0xa943('0xd'),_0xa943('0xe'),'keyType',_0xa943('0xf'),_0xa943('0x10')],'include':[{'model':_0xa943('0xc'),'as':_0xa943('0xc'),'attributes':['id','name']}]},{'model':'VtigerField','as':_0xa943('0x11'),'attributes':['id','type',_0xa943('0xd'),_0xa943('0x12'),_0xa943('0x13'),'customField','variableName'],'include':[{'model':_0xa943('0xc'),'as':_0xa943('0xc'),'attributes':['id',_0xa943('0x2')]}]}]}]},'log':_0xa943('0x1')});};};