Built motion from commit da617fac.|2.6.6
[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 _0x76ed=['SquareMessage','lodash','api','request-promise','path','../../config/environment','./squareMessage.attributes','exports','define'];(function(_0x8bca3f,_0x158cf8){var _0x448ab5=function(_0x5b5537){while(--_0x5b5537){_0x8bca3f['push'](_0x8bca3f['shift']());}};_0x448ab5(++_0x158cf8);}(_0x76ed,0x1e7));var _0xd76e=function(_0x4c0699,_0x1f326d){_0x4c0699=_0x4c0699-0x0;var _0x472d6f=_0x76ed[_0x4c0699];return _0x472d6f;};'use strict';var _=require(_0xd76e('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xd76e('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd76e('0x2'));var fs=require('fs');var path=require(_0xd76e('0x3'));var rimraf=require('rimraf');var config=require(_0xd76e('0x4'));var attributes=require(_0xd76e('0x5'));module[_0xd76e('0x6')]=function(_0x4f367f,_0x4cc66b){return _0x4f367f[_0xd76e('0x7')](_0xd76e('0x8'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};