Built motion from commit 9d7072cc.|2.5.39
[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 _0x980c=['exports','define','SquareMessage','lodash','util','../../config/logger','moment','bluebird','path','rimraf','./squareMessage.attributes'];(function(_0x4a7995,_0x1b0149){var _0x46a6f9=function(_0x5b0337){while(--_0x5b0337){_0x4a7995['push'](_0x4a7995['shift']());}};_0x46a6f9(++_0x1b0149);}(_0x980c,0xdf));var _0xc980=function(_0x5ea379,_0x971760){_0x5ea379=_0x5ea379-0x0;var _0x11f2e4=_0x980c[_0x5ea379];return _0x11f2e4;};'use strict';var _=require(_0xc980('0x0'));var util=require(_0xc980('0x1'));var logger=require(_0xc980('0x2'))('api');var moment=require(_0xc980('0x3'));var BPromise=require(_0xc980('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc980('0x5'));var rimraf=require(_0xc980('0x6'));var config=require('../../config/environment');var attributes=require(_0xc980('0x7'));module[_0xc980('0x8')]=function(_0xec29e6,_0x31f83a){return _0xec29e6[_0xc980('0x9')](_0xc980('0xa'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};