Built motion from commit f7863d46.|2.5.41
[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 _0xc5bd=['../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','SquareMessage','lodash','util'];(function(_0x18477e,_0xed6fd5){var _0x3459a8=function(_0x1e4cb1){while(--_0x1e4cb1){_0x18477e['push'](_0x18477e['shift']());}};_0x3459a8(++_0xed6fd5);}(_0xc5bd,0x9a));var _0xdc5b=function(_0x37782c,_0x37547e){_0x37782c=_0x37782c-0x0;var _0x29fed7=_0xc5bd[_0x37782c];return _0x29fed7;};'use strict';var _=require(_0xdc5b('0x0'));var util=require(_0xdc5b('0x1'));var logger=require(_0xdc5b('0x2'))(_0xdc5b('0x3'));var moment=require(_0xdc5b('0x4'));var BPromise=require(_0xdc5b('0x5'));var rp=require(_0xdc5b('0x6'));var fs=require('fs');var path=require(_0xdc5b('0x7'));var rimraf=require(_0xdc5b('0x8'));var config=require(_0xdc5b('0x9'));var attributes=require('./squareMessage.attributes');module[_0xdc5b('0xa')]=function(_0x5962ce,_0x4cb21f){return _0x5962ce[_0xdc5b('0xb')](_0xdc5b('0xc'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};