Built motion from commit 87cd5f02.|2.5.48
[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 _0x79de=['exports','define','SquareMessage','lodash','util','moment','bluebird','request-promise','path','../../config/environment','./squareMessage.attributes'];(function(_0x3f25db,_0x1d3686){var _0x54f29d=function(_0x2963bb){while(--_0x2963bb){_0x3f25db['push'](_0x3f25db['shift']());}};_0x54f29d(++_0x1d3686);}(_0x79de,0x1bb));var _0xe79d=function(_0x11eeb4,_0x39942f){_0x11eeb4=_0x11eeb4-0x0;var _0x781bd=_0x79de[_0x11eeb4];return _0x781bd;};'use strict';var _=require(_0xe79d('0x0'));var util=require(_0xe79d('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xe79d('0x2'));var BPromise=require(_0xe79d('0x3'));var rp=require(_0xe79d('0x4'));var fs=require('fs');var path=require(_0xe79d('0x5'));var rimraf=require('rimraf');var config=require(_0xe79d('0x6'));var attributes=require(_0xe79d('0x7'));module[_0xe79d('0x8')]=function(_0x1f22d9,_0x280792){return _0x1f22d9[_0xe79d('0x9')](_0xe79d('0xa'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};