Built motion from commit 00bf23f6.|2.6.16
[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 _0x8009=['./squareMessage.attributes','exports','define','SquareMessage','square_messages','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x185563,_0x4214ab){var _0x3a455e=function(_0x397dc8){while(--_0x397dc8){_0x185563['push'](_0x185563['shift']());}};_0x3a455e(++_0x4214ab);}(_0x8009,0x179));var _0x9800=function(_0x2f0699,_0x143cd7){_0x2f0699=_0x2f0699-0x0;var _0xa8533b=_0x8009[_0x2f0699];return _0xa8533b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9800('0x0'))('api');var moment=require(_0x9800('0x1'));var BPromise=require(_0x9800('0x2'));var rp=require(_0x9800('0x3'));var fs=require('fs');var path=require(_0x9800('0x4'));var rimraf=require(_0x9800('0x5'));var config=require(_0x9800('0x6'));var attributes=require(_0x9800('0x7'));module[_0x9800('0x8')]=function(_0x42e7e0,_0xfa073e){return _0x42e7e0[_0x9800('0x9')](_0x9800('0xa'),attributes,{'tableName':_0x9800('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};