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 _0x894a=['FieldId','lodash','util','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField'];(function(_0x42cad7,_0x25a514){var _0x4eefc6=function(_0x548c29){while(--_0x548c29){_0x42cad7['push'](_0x42cad7['shift']());}};_0x4eefc6(++_0x25a514);}(_0x894a,0xe1));var _0xa894=function(_0x272dcb,_0x53177b){_0x272dcb=_0x272dcb-0x0;var _0x6ea5ee=_0x894a[_0x272dcb];return _0x6ea5ee;};'use strict';var _=require(_0xa894('0x0'));var util=require(_0xa894('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xa894('0x2'));var BPromise=require(_0xa894('0x3'));var rp=require(_0xa894('0x4'));var fs=require('fs');var path=require(_0xa894('0x5'));var rimraf=require(_0xa894('0x6'));var config=require(_0xa894('0x7'));var attributes=require(_0xa894('0x8'));module[_0xa894('0x9')]=function(_0x3b679c,_0x13e72c){return _0x3b679c[_0xa894('0xa')](_0xa894('0xb'),attributes,{'tableName':_0xa894('0xc'),'paranoid':![],'indexes':[{'name':_0xa894('0xd'),'fields':[_0xa894('0xe'),_0xa894('0xf')],'unique':!![]}],'timestamps':!![]});};