Built motion from commit 87cd5f02.|2.5.48
[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 _0x36a2=['exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./intFreshdeskField.attributes'];(function(_0x110c3d,_0x12ee06){var _0x226d67=function(_0x1fb6e1){while(--_0x1fb6e1){_0x110c3d['push'](_0x110c3d['shift']());}};_0x226d67(++_0x12ee06);}(_0x36a2,0x105));var _0x236a=function(_0x2c8d85,_0x590fef){_0x2c8d85=_0x2c8d85-0x0;var _0x277ef4=_0x36a2[_0x2c8d85];return _0x277ef4;};'use strict';var _=require(_0x236a('0x0'));var util=require(_0x236a('0x1'));var logger=require(_0x236a('0x2'))(_0x236a('0x3'));var moment=require(_0x236a('0x4'));var BPromise=require('bluebird');var rp=require(_0x236a('0x5'));var fs=require('fs');var path=require(_0x236a('0x6'));var rimraf=require(_0x236a('0x7'));var config=require('../../config/environment');var attributes=require(_0x236a('0x8'));module[_0x236a('0x9')]=function(_0x35f388,_0xc19022){return _0x35f388['define'](_0x236a('0xa'),attributes,{'tableName':_0x236a('0xb'),'paranoid':![],'indexes':[{'name':_0x236a('0xc'),'fields':[_0x236a('0xd'),_0x236a('0xe')],'unique':!![]}],'timestamps':!![]});};