Built motion from commit 9d7072cc.|2.5.39
[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 _0xd2f5=['freshsales_unique_index','idField','lodash','util','../../config/logger','api','bluebird','rimraf','../../config/environment','./intFreshsalesField.attributes','define','int_freshsales_fields'];(function(_0x4d3b41,_0x4281e1){var _0x2dc795=function(_0x106729){while(--_0x106729){_0x4d3b41['push'](_0x4d3b41['shift']());}};_0x2dc795(++_0x4281e1);}(_0xd2f5,0x12e));var _0x5d2f=function(_0x157b1c,_0x54f1bc){_0x157b1c=_0x157b1c-0x0;var _0x1833e6=_0xd2f5[_0x157b1c];return _0x1833e6;};'use strict';var _=require(_0x5d2f('0x0'));var util=require(_0x5d2f('0x1'));var logger=require(_0x5d2f('0x2'))(_0x5d2f('0x3'));var moment=require('moment');var BPromise=require(_0x5d2f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x5d2f('0x5'));var config=require(_0x5d2f('0x6'));var attributes=require(_0x5d2f('0x7'));module['exports']=function(_0x2f7121,_0x2157af){return _0x2f7121[_0x5d2f('0x8')]('FreshsalesField',attributes,{'tableName':_0x5d2f('0x9'),'paranoid':![],'indexes':[{'name':_0x5d2f('0xa'),'fields':[_0x5d2f('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};