Built motion from commit 14588770.|2.5.38
[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 _0xd6c9=['./squareOdbc.attributes','exports','define','SquareOdbc','square_odbc','util','../../config/logger','moment','bluebird','rimraf','../../config/environment'];(function(_0x47725b,_0x3f9e95){var _0x4940e1=function(_0x30251f){while(--_0x30251f){_0x47725b['push'](_0x47725b['shift']());}};_0x4940e1(++_0x3f9e95);}(_0xd6c9,0x191));var _0x9d6c=function(_0x2fd71a,_0x3b7db6){_0x2fd71a=_0x2fd71a-0x0;var _0x497a1f=_0xd6c9[_0x2fd71a];return _0x497a1f;};'use strict';var _=require('lodash');var util=require(_0x9d6c('0x0'));var logger=require(_0x9d6c('0x1'))('api');var moment=require(_0x9d6c('0x2'));var BPromise=require(_0x9d6c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9d6c('0x4'));var config=require(_0x9d6c('0x5'));var attributes=require(_0x9d6c('0x6'));module[_0x9d6c('0x7')]=function(_0x5d5a4d,_0x34ff61){return _0x5d5a4d[_0x9d6c('0x8')](_0x9d6c('0x9'),attributes,{'tableName':_0x9d6c('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};