Built motion from commit (unavailable).|2.5.4
[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 _0x7209=['exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','FieldId','lodash','util','../../config/logger','request-promise','path','../../config/environment','./intFreshsalesField.attributes'];(function(_0x1d80be,_0x3a60ff){var _0xf9a4f3=function(_0x5b8a08){while(--_0x5b8a08){_0x1d80be['push'](_0x1d80be['shift']());}};_0xf9a4f3(++_0x3a60ff);}(_0x7209,0x6e));var _0x9720=function(_0x1117a6,_0x9199b3){_0x1117a6=_0x1117a6-0x0;var _0x505a67=_0x7209[_0x1117a6];return _0x505a67;};'use strict';var _=require(_0x9720('0x0'));var util=require(_0x9720('0x1'));var logger=require(_0x9720('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x9720('0x3'));var fs=require('fs');var path=require(_0x9720('0x4'));var rimraf=require('rimraf');var config=require(_0x9720('0x5'));var attributes=require(_0x9720('0x6'));module[_0x9720('0x7')]=function(_0x18b8b0,_0x51038f){return _0x18b8b0[_0x9720('0x8')](_0x9720('0x9'),attributes,{'tableName':_0x9720('0xa'),'paranoid':![],'indexes':[{'name':_0x9720('0xb'),'fields':['idField',_0x9720('0xc')],'unique':!![]}],'timestamps':!![]});};