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 _0x2373=['../../config/logger','api','moment','request-promise','path','rimraf','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash'];(function(_0x525fc5,_0x26fa34){var _0x136895=function(_0x4f768f){while(--_0x4f768f){_0x525fc5['push'](_0x525fc5['shift']());}};_0x136895(++_0x26fa34);}(_0x2373,0x144));var _0x3237=function(_0x4d160b,_0x58f127){_0x4d160b=_0x4d160b-0x0;var _0x40fe58=_0x2373[_0x4d160b];return _0x40fe58;};'use strict';var _=require(_0x3237('0x0'));var util=require('util');var logger=require(_0x3237('0x1'))(_0x3237('0x2'));var moment=require(_0x3237('0x3'));var BPromise=require('bluebird');var rp=require(_0x3237('0x4'));var fs=require('fs');var path=require(_0x3237('0x5'));var rimraf=require(_0x3237('0x6'));var config=require('../../config/environment');var attributes=require('./intFreshsalesField.attributes');module[_0x3237('0x7')]=function(_0x10d049,_0x3e1027){return _0x10d049['define'](_0x3237('0x8'),attributes,{'tableName':_0x3237('0x9'),'paranoid':![],'indexes':[{'name':_0x3237('0xa'),'fields':[_0x3237('0xb'),_0x3237('0xc')],'unique':!![]}],'timestamps':!![]});};