Built motion from commit 3e059bc2.|2.5.32
[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 _0xa18c=['SquareMessage','lodash','util','../../config/logger','api','moment','path','exports','define'];(function(_0x577519,_0x346daf){var _0x5b12f7=function(_0x4aecb6){while(--_0x4aecb6){_0x577519['push'](_0x577519['shift']());}};_0x5b12f7(++_0x346daf);}(_0xa18c,0x160));var _0xca18=function(_0x361f5f,_0x55b8bc){_0x361f5f=_0x361f5f-0x0;var _0x286f78=_0xa18c[_0x361f5f];return _0x286f78;};'use strict';var _=require(_0xca18('0x0'));var util=require(_0xca18('0x1'));var logger=require(_0xca18('0x2'))(_0xca18('0x3'));var moment=require(_0xca18('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xca18('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module[_0xca18('0x6')]=function(_0x544423,_0x3404a2){return _0x544423[_0xca18('0x7')](_0xca18('0x8'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};