Built motion from commit d1eab355.|2.6.28
[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 _0xa81e=['moment','bluebird','path','../../config/environment','exports','define','util','../../config/logger'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa81e,0x1a6));var _0xea81=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0xa81e[_0x19950b];return _0x3c6b41;};'use strict';var _=require('lodash');var util=require(_0xea81('0x0'));var logger=require(_0xea81('0x1'))('api');var moment=require(_0xea81('0x2'));var BPromise=require(_0xea81('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xea81('0x4'));var rimraf=require('rimraf');var config=require(_0xea81('0x5'));var attributes=require('./intFreshdeskField.attributes');module[_0xea81('0x6')]=function(_0x9582cf,_0x52408d){return _0x9582cf[_0xea81('0x7')]('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};