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 _0x40e1=['define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','FieldId','util','api','bluebird','request-promise','path','./intFreshsalesField.attributes','exports'];(function(_0x587152,_0x174e2d){var _0x285bf8=function(_0x57c80c){while(--_0x57c80c){_0x587152['push'](_0x587152['shift']());}};_0x285bf8(++_0x174e2d);}(_0x40e1,0x1f1));var _0x140e=function(_0x1c8314,_0x512e7e){_0x1c8314=_0x1c8314-0x0;var _0x4bfc4b=_0x40e1[_0x1c8314];return _0x4bfc4b;};'use strict';var _=require('lodash');var util=require(_0x140e('0x0'));var logger=require('../../config/logger')(_0x140e('0x1'));var moment=require('moment');var BPromise=require(_0x140e('0x2'));var rp=require(_0x140e('0x3'));var fs=require('fs');var path=require(_0x140e('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x140e('0x5'));module[_0x140e('0x6')]=function(_0x36cf7c,_0x515cd3){return _0x36cf7c[_0x140e('0x7')](_0x140e('0x8'),attributes,{'tableName':_0x140e('0x9'),'paranoid':![],'indexes':[{'name':_0x140e('0xa'),'fields':['idField',_0x140e('0xb')],'unique':!![]}],'timestamps':!![]});};