Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x5a63=['freshdesk_unique_index','lodash','util','../../config/logger','api','bluebird','rimraf','../../config/environment','define','FreshdeskField','int_freshdesk_fields'];(function(_0x31611f,_0x1e6d20){var _0x3185e6=function(_0x4d8ec1){while(--_0x4d8ec1){_0x31611f['push'](_0x31611f['shift']());}};_0x3185e6(++_0x1e6d20);}(_0x5a63,0x1ae));var _0x35a6=function(_0x5e2dec,_0x2d9acf){_0x5e2dec=_0x5e2dec-0x0;var _0x131d38=_0x5a63[_0x5e2dec];return _0x131d38;};'use strict';var _=require(_0x35a6('0x0'));var util=require(_0x35a6('0x1'));var logger=require(_0x35a6('0x2'))(_0x35a6('0x3'));var moment=require('moment');var BPromise=require(_0x35a6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x35a6('0x5'));var config=require(_0x35a6('0x6'));var attributes=require('./intFreshdeskField.attributes');module['exports']=function(_0x149a7e,_0x18fb3a){return _0x149a7e[_0x35a6('0x7')](_0x35a6('0x8'),attributes,{'tableName':_0x35a6('0x9'),'paranoid':![],'indexes':[{'name':_0x35a6('0xa'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};