Built motion from commit 14588770.|2.5.38
[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 _0x66a1=['../../config/environment','./squareMessage.attributes','exports','SquareMessage','square_messages','lodash','util','../../config/logger','path','rimraf'];(function(_0x67caf,_0x56a915){var _0x57118e=function(_0x298442){while(--_0x298442){_0x67caf['push'](_0x67caf['shift']());}};_0x57118e(++_0x56a915);}(_0x66a1,0x9b));var _0x166a=function(_0x47586d,_0xe129f){_0x47586d=_0x47586d-0x0;var _0x4c2ff0=_0x66a1[_0x47586d];return _0x4c2ff0;};'use strict';var _=require(_0x166a('0x0'));var util=require(_0x166a('0x1'));var logger=require(_0x166a('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x166a('0x3'));var rimraf=require(_0x166a('0x4'));var config=require(_0x166a('0x5'));var attributes=require(_0x166a('0x6'));module[_0x166a('0x7')]=function(_0x1f29f9,_0x273b84){return _0x1f29f9['define'](_0x166a('0x8'),attributes,{'tableName':_0x166a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};