Built motion from commit (unavailable).|2.4.4
[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 _0x3081=['path','exports','SquareMessage','lodash','util','../../config/logger','bluebird','request-promise'];(function(_0x53d578,_0x4ca37f){var _0x5ce805=function(_0x237705){while(--_0x237705){_0x53d578['push'](_0x53d578['shift']());}};_0x5ce805(++_0x4ca37f);}(_0x3081,0x153));var _0x1308=function(_0x283bef,_0x1f27f4){_0x283bef=_0x283bef-0x0;var _0xcd0ec8=_0x3081[_0x283bef];return _0xcd0ec8;};'use strict';var _=require(_0x1308('0x0'));var util=require(_0x1308('0x1'));var logger=require(_0x1308('0x2'))('api');var moment=require('moment');var BPromise=require(_0x1308('0x3'));var rp=require(_0x1308('0x4'));var fs=require('fs');var path=require(_0x1308('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module[_0x1308('0x6')]=function(_0x4696ab,_0x75b55f){return _0x4696ab['define'](_0x1308('0x7'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};