fcb55187b7ec113fb6e6f31fbb8f221455942335
[motion2.git] / server / api / intZendeskAccount / intZendeskAccount.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 _0xd371=['exports','define','ZendeskAccount','int_zendesk_accounts','moment','path','rimraf'];(function(_0x39a2fc,_0x2636e2){var _0x461d00=function(_0x13a043){while(--_0x13a043){_0x39a2fc['push'](_0x39a2fc['shift']());}};_0x461d00(++_0x2636e2);}(_0xd371,0x1d2));var _0x1d37=function(_0x2c6991,_0x4b5775){_0x2c6991=_0x2c6991-0x0;var _0x4de9fa=_0xd371[_0x2c6991];return _0x4de9fa;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x1d37('0x0'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1d37('0x1'));var rimraf=require(_0x1d37('0x2'));var config=require('../../config/environment');var attributes=require('./intZendeskAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0x1d37('0x3')]=function(_0x4b3df0,_0x389891){return _0x4b3df0[_0x1d37('0x4')](_0x1d37('0x5'),attributes,{'tableName':_0x1d37('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};