9330f30a5163a1e277ee4ef08d06d8d997822254
[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 _0xa2b5=['exports','define','SquareMessage','square_messages','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./squareMessage.attributes'];(function(_0x3d5755,_0x55ff94){var _0x4add3f=function(_0x901142){while(--_0x901142){_0x3d5755['push'](_0x3d5755['shift']());}};_0x4add3f(++_0x55ff94);}(_0xa2b5,0x79));var _0x5a2b=function(_0x2192ae,_0x197b1e){_0x2192ae=_0x2192ae-0x0;var _0x5d8404=_0xa2b5[_0x2192ae];return _0x5d8404;};'use strict';var _=require(_0x5a2b('0x0'));var util=require(_0x5a2b('0x1'));var logger=require(_0x5a2b('0x2'))('api');var moment=require(_0x5a2b('0x3'));var BPromise=require(_0x5a2b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5a2b('0x5'));var rimraf=require(_0x5a2b('0x6'));var config=require(_0x5a2b('0x7'));var attributes=require(_0x5a2b('0x8'));module[_0x5a2b('0x9')]=function(_0x27e907,_0x37688b){return _0x27e907[_0x5a2b('0xa')](_0x5a2b('0xb'),attributes,{'tableName':_0x5a2b('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};