3ba9c82b2795d33ffed6a5cbe40a549496c7b2fc
[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 _0x4714=['SquareMessage','square_messages','util','api','path','rimraf','../../config/environment','./squareMessage.attributes'];(function(_0x55d3c2,_0x3991e7){var _0x355980=function(_0x2a5143){while(--_0x2a5143){_0x55d3c2['push'](_0x55d3c2['shift']());}};_0x355980(++_0x3991e7);}(_0x4714,0x1c2));var _0x4471=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x4714[_0x167cc1];return _0x10bc4b;};'use strict';var _=require('lodash');var util=require(_0x4471('0x0'));var logger=require('../../config/logger')(_0x4471('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4471('0x2'));var rimraf=require(_0x4471('0x3'));var config=require(_0x4471('0x4'));var attributes=require(_0x4471('0x5'));module['exports']=function(_0x37e1a7,_0x313dc7){return _0x37e1a7['define'](_0x4471('0x6'),attributes,{'tableName':_0x4471('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};