1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe5f8=['util','../../config/logger','moment','bluebird','rimraf','exports','SquareMessage'];(function(_0x553fd6,_0x5bca1a){var _0x2aaa22=function(_0x1f5f72){while(--_0x1f5f72){_0x553fd6['push'](_0x553fd6['shift']());}};_0x2aaa22(++_0x5bca1a);}(_0xe5f8,0x157));var _0x8e5f=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0xe5f8[_0x19950b];return _0x3c6b41;};'use strict';var _=require('lodash');var util=require(_0x8e5f('0x0'));var logger=require(_0x8e5f('0x1'))('api');var moment=require(_0x8e5f('0x2'));var BPromise=require(_0x8e5f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8e5f('0x4'));var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module[_0x8e5f('0x5')]=function(_0x42f578,_0x306ee6){return _0x42f578['define'](_0x8e5f('0x6'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};