665a3a1bb02c70553dff780c088600c32fa5041d
[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 _0xdac9=['SquareMessage','../../config/logger','bluebird','path','./squareMessage.attributes','define'];(function(_0x3496d3,_0x4467a2){var _0x509096=function(_0xcc66bc){while(--_0xcc66bc){_0x3496d3['push'](_0x3496d3['shift']());}};_0x509096(++_0x4467a2);}(_0xdac9,0x1cf));var _0x9dac=function(_0x1b1f88,_0x3fe1cb){_0x1b1f88=_0x1b1f88-0x0;var _0x5045b9=_0xdac9[_0x1b1f88];return _0x5045b9;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9dac('0x0'))('api');var moment=require('moment');var BPromise=require(_0x9dac('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9dac('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x9dac('0x3'));module['exports']=function(_0x2022bf,_0x45ffec){return _0x2022bf[_0x9dac('0x4')](_0x9dac('0x5'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};