Built motion from commit f3da74b7.|2.5.36
[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 _0x5e05=['util','../../config/logger','api','moment','path','../../config/environment','exports','define','SquareOdbc','square_odbc','lodash'];(function(_0x52f91e,_0x4491a7){var _0x553032=function(_0x9fddbf){while(--_0x9fddbf){_0x52f91e['push'](_0x52f91e['shift']());}};_0x553032(++_0x4491a7);}(_0x5e05,0x1b7));var _0x55e0=function(_0x4f385f,_0x52d090){_0x4f385f=_0x4f385f-0x0;var _0x521bfd=_0x5e05[_0x4f385f];return _0x521bfd;};'use strict';var _=require(_0x55e0('0x0'));var util=require(_0x55e0('0x1'));var logger=require(_0x55e0('0x2'))(_0x55e0('0x3'));var moment=require(_0x55e0('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x55e0('0x5'));var rimraf=require('rimraf');var config=require(_0x55e0('0x6'));var attributes=require('./squareOdbc.attributes');module[_0x55e0('0x7')]=function(_0x1828f3,_0x2d9b53){return _0x1828f3[_0x55e0('0x8')](_0x55e0('0x9'),attributes,{'tableName':_0x55e0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};