153191a5b875b7567ff9a6476952343825df3d48
[motion2.git] / server / api / squareMessage / squareMessage.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 _0x5f95=['lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./squareMessage.attributes','define','SquareMessage'];(function(_0x454f02,_0x32ce79){var _0x3369f7=function(_0x4c455c){while(--_0x4c455c){_0x454f02['push'](_0x454f02['shift']());}};_0x3369f7(++_0x32ce79);}(_0x5f95,0x140));var _0x55f9=function(_0xad2004,_0x5e0638){_0xad2004=_0xad2004-0x0;var _0xbf120c=_0x5f95[_0xad2004];return _0xbf120c;};'use strict';var _=require(_0x55f9('0x0'));var util=require(_0x55f9('0x1'));var logger=require(_0x55f9('0x2'))('api');var moment=require('moment');var BPromise=require(_0x55f9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x55f9('0x4'));var rimraf=require(_0x55f9('0x5'));var config=require(_0x55f9('0x6'));var attributes=require(_0x55f9('0x7'));module['exports']=function(_0x45405e,_0x103e09){return _0x45405e[_0x55f9('0x8')](_0x55f9('0x9'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};