7d97ff3875cb145a45a2667580ed4e31b679925e
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.model.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 _0x92ca=['lodash','util','../../config/logger','moment','request-promise','path','../../config/environment','exports','define','FreshsalesField','int_freshsales_fields','idField','FieldId'];(function(_0x3d1c2a,_0x2ac29c){var _0x503dd4=function(_0xd2a322){while(--_0xd2a322){_0x3d1c2a['push'](_0x3d1c2a['shift']());}};_0x503dd4(++_0x2ac29c);}(_0x92ca,0xf7));var _0xa92c=function(_0x11c1a1,_0x17ba8c){_0x11c1a1=_0x11c1a1-0x0;var _0x483746=_0x92ca[_0x11c1a1];return _0x483746;};'use strict';var _=require(_0xa92c('0x0'));var util=require(_0xa92c('0x1'));var logger=require(_0xa92c('0x2'))('api');var moment=require(_0xa92c('0x3'));var BPromise=require('bluebird');var rp=require(_0xa92c('0x4'));var fs=require('fs');var path=require(_0xa92c('0x5'));var rimraf=require('rimraf');var config=require(_0xa92c('0x6'));var attributes=require('./intFreshsalesField.attributes');module[_0xa92c('0x7')]=function(_0x5680ae,_0x20772f){return _0x5680ae[_0xa92c('0x8')](_0xa92c('0x9'),attributes,{'tableName':_0xa92c('0xa'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xa92c('0xb'),_0xa92c('0xc')],'unique':!![]}],'timestamps':!![]});};