b9866623aa0d291c96224d8b0387ce87dab32918
[motion2.git] / server / api / squareOdbc / squareOdbc.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 _0xf1f3=['exports','define','SquareOdbc','square_odbc','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','./squareOdbc.attributes'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xf1f3,0xee));var _0x3f1f=function(_0x3a2100,_0x3bd58b){_0x3a2100=_0x3a2100-0x0;var _0x15424d=_0xf1f3[_0x3a2100];return _0x15424d;};'use strict';var _=require(_0x3f1f('0x0'));var util=require(_0x3f1f('0x1'));var logger=require(_0x3f1f('0x2'))(_0x3f1f('0x3'));var moment=require(_0x3f1f('0x4'));var BPromise=require(_0x3f1f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3f1f('0x6'));var rimraf=require(_0x3f1f('0x7'));var config=require('../../config/environment');var attributes=require(_0x3f1f('0x8'));module[_0x3f1f('0x9')]=function(_0xeb6df,_0x3c5f0f){return _0xeb6df[_0x3f1f('0xa')](_0x3f1f('0xb'),attributes,{'tableName':_0x3f1f('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};