Built motion from commit (unavailable).|2.5.4
[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 _0x73a2=['request-promise','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','util','../../config/logger','api','moment','bluebird'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x73a2,0xe9));var _0x273a=function(_0x13edd0,_0x43eb3a){_0x13edd0=_0x13edd0-0x0;var _0x18e125=_0x73a2[_0x13edd0];return _0x18e125;};'use strict';var _=require('lodash');var util=require(_0x273a('0x0'));var logger=require(_0x273a('0x1'))(_0x273a('0x2'));var moment=require(_0x273a('0x3'));var BPromise=require(_0x273a('0x4'));var rp=require(_0x273a('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x273a('0x6'));var config=require(_0x273a('0x7'));var attributes=require(_0x273a('0x8'));module[_0x273a('0x9')]=function(_0x1f2955,_0x4c627a){return _0x1f2955[_0x273a('0xa')](_0x273a('0xb'),attributes,{'tableName':_0x273a('0xc'),'paranoid':![],'indexes':[{'name':_0x273a('0xd'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};