3e9ddd741a63899d3630ace1bd9d873eff0c672e
[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 _0xc7f7=['ZendeskAccount','../../config/logger','api','moment','bluebird','path','../../config/environment','./intZendeskAccount.attributes','../../components/integrations/configuration','exports','define'];(function(_0x2582af,_0x3409f7){var _0x38c9c6=function(_0x2695e4){while(--_0x2695e4){_0x2582af['push'](_0x2582af['shift']());}};_0x38c9c6(++_0x3409f7);}(_0xc7f7,0x1c4));var _0x7c7f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc7f7[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7c7f('0x0'))(_0x7c7f('0x1'));var moment=require(_0x7c7f('0x2'));var BPromise=require(_0x7c7f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7c7f('0x4'));var rimraf=require('rimraf');var config=require(_0x7c7f('0x5'));var attributes=require(_0x7c7f('0x6'));var integrations=require(_0x7c7f('0x7'));module[_0x7c7f('0x8')]=function(_0x40e1da,_0x282663){return _0x40e1da[_0x7c7f('0x9')](_0x7c7f('0xa'),attributes,{'tableName':'int_zendesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};