Built motion from commit (unavailable).|2.5.11
[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 _0x0513=['request-promise','rimraf','exports','SquareMessage','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x3a4e81,_0x453b4e){var _0x572874=function(_0x2956aa){while(--_0x2956aa){_0x3a4e81['push'](_0x3a4e81['shift']());}};_0x572874(++_0x453b4e);}(_0x0513,0xc2));var _0x3051=function(_0x1de14f,_0x3563cb){_0x1de14f=_0x1de14f-0x0;var _0x512594=_0x0513[_0x1de14f];return _0x512594;};'use strict';var _=require(_0x3051('0x0'));var util=require(_0x3051('0x1'));var logger=require(_0x3051('0x2'))(_0x3051('0x3'));var moment=require(_0x3051('0x4'));var BPromise=require(_0x3051('0x5'));var rp=require(_0x3051('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3051('0x7'));var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module[_0x3051('0x8')]=function(_0x6bdc94,_0x3f7938){return _0x6bdc94['define'](_0x3051('0x9'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};