1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8ae9=['int_freshsales_fields','freshsales_unique_index','idField','lodash','util','bluebird','request-promise','path','./intFreshsalesField.attributes','exports','FreshsalesField'];(function(_0x3382f4,_0x32b70b){var _0x3a3368=function(_0x1bdc71){while(--_0x1bdc71){_0x3382f4['push'](_0x3382f4['shift']());}};_0x3a3368(++_0x32b70b);}(_0x8ae9,0x179));var _0x98ae=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8ae9[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x98ae('0x0'));var util=require(_0x98ae('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x98ae('0x2'));var rp=require(_0x98ae('0x3'));var fs=require('fs');var path=require(_0x98ae('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x98ae('0x5'));module[_0x98ae('0x6')]=function(_0x237dd0,_0x3a6b37){return _0x237dd0['define'](_0x98ae('0x7'),attributes,{'tableName':_0x98ae('0x8'),'paranoid':![],'indexes':[{'name':_0x98ae('0x9'),'fields':[_0x98ae('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};