51fd6dc15ab2d33b308ca429cb056c7d0c542416
[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 _0xee23=['../../config/environment','./intZendeskAccount.attributes','../../components/integrations/configuration','define','ZendeskAccount','int_zendesk_accounts','lodash','util','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x59328b,_0x3e1186){var _0x2593ea=function(_0x11ba1e){while(--_0x11ba1e){_0x59328b['push'](_0x59328b['shift']());}};_0x2593ea(++_0x3e1186);}(_0xee23,0x1a6));var _0x3ee2=function(_0x37aaa5,_0x261baf){_0x37aaa5=_0x37aaa5-0x0;var _0x2f22eb=_0xee23[_0x37aaa5];return _0x2f22eb;};'use strict';var _=require(_0x3ee2('0x0'));var util=require(_0x3ee2('0x1'));var logger=require(_0x3ee2('0x2'))('api');var moment=require(_0x3ee2('0x3'));var BPromise=require(_0x3ee2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3ee2('0x5'));var rimraf=require(_0x3ee2('0x6'));var config=require(_0x3ee2('0x7'));var attributes=require(_0x3ee2('0x8'));var integrations=require(_0x3ee2('0x9'));module['exports']=function(_0x1c596b,_0x148616){return _0x1c596b[_0x3ee2('0xa')](_0x3ee2('0xb'),attributes,{'tableName':_0x3ee2('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};