Built motion from commit 753c950e.|2.5.42
[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 _0x67f0=['bluebird','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','freshdesk_unique_index','idField','util','api'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x67f0,0x106));var _0x067f=function(_0x1f0679,_0x53d43c){_0x1f0679=_0x1f0679-0x0;var _0x3dc3a4=_0x67f0[_0x1f0679];return _0x3dc3a4;};'use strict';var _=require('lodash');var util=require(_0x067f('0x0'));var logger=require('../../config/logger')(_0x067f('0x1'));var moment=require('moment');var BPromise=require(_0x067f('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x067f('0x3'));var config=require(_0x067f('0x4'));var attributes=require(_0x067f('0x5'));module[_0x067f('0x6')]=function(_0x150be5,_0x5089a4){return _0x150be5[_0x067f('0x7')](_0x067f('0x8'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x067f('0x9'),'fields':[_0x067f('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};