Built motion from commit (unavailable).|2.5.8
[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 _0xaa8e=['int_freshdesk_fields','idField','FieldId','lodash','../../config/logger','api','moment','request-promise','path','rimraf','./intFreshdeskField.attributes','exports','define','FreshdeskField'];(function(_0x50c3ea,_0x313b19){var _0x4a3778=function(_0x53fb2c){while(--_0x53fb2c){_0x50c3ea['push'](_0x50c3ea['shift']());}};_0x4a3778(++_0x313b19);}(_0xaa8e,0xd5));var _0xeaa8=function(_0x2ddd73,_0x4eb549){_0x2ddd73=_0x2ddd73-0x0;var _0x477087=_0xaa8e[_0x2ddd73];return _0x477087;};'use strict';var _=require(_0xeaa8('0x0'));var util=require('util');var logger=require(_0xeaa8('0x1'))(_0xeaa8('0x2'));var moment=require(_0xeaa8('0x3'));var BPromise=require('bluebird');var rp=require(_0xeaa8('0x4'));var fs=require('fs');var path=require(_0xeaa8('0x5'));var rimraf=require(_0xeaa8('0x6'));var config=require('../../config/environment');var attributes=require(_0xeaa8('0x7'));module[_0xeaa8('0x8')]=function(_0x34ec0e,_0x444580){return _0x34ec0e[_0xeaa8('0x9')](_0xeaa8('0xa'),attributes,{'tableName':_0xeaa8('0xb'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0xeaa8('0xc'),_0xeaa8('0xd')],'unique':!![]}],'timestamps':!![]});};