915303a19c2ca08dd1ba2c0dcee4fd5ae428c892
[motion2.git] / server / api / intFreshdeskAccount / intFreshdeskAccount.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 _0x7b6f=['int_freshdesk_accounts','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./intFreshdeskAccount.attributes','../../components/integrations/configuration','exports','define','FreshdeskAccount'];(function(_0x29d94e,_0xf386d6){var _0x106237=function(_0x327501){while(--_0x327501){_0x29d94e['push'](_0x29d94e['shift']());}};_0x106237(++_0xf386d6);}(_0x7b6f,0x178));var _0xf7b6=function(_0x564bec,_0x4e98e2){_0x564bec=_0x564bec-0x0;var _0x8dc0f7=_0x7b6f[_0x564bec];return _0x8dc0f7;};'use strict';var _=require(_0xf7b6('0x0'));var util=require(_0xf7b6('0x1'));var logger=require(_0xf7b6('0x2'))(_0xf7b6('0x3'));var moment=require(_0xf7b6('0x4'));var BPromise=require(_0xf7b6('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf7b6('0x6'));var rimraf=require(_0xf7b6('0x7'));var config=require(_0xf7b6('0x8'));var attributes=require(_0xf7b6('0x9'));var integrations=require(_0xf7b6('0xa'));module[_0xf7b6('0xb')]=function(_0x8f1eb7,_0x4bcbc0){return _0x8f1eb7[_0xf7b6('0xc')](_0xf7b6('0xd'),attributes,{'tableName':_0xf7b6('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};