Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / chatInteraction / chatInteraction.model.js
index 4a5d5e4..8327994 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd90b=['closedAt','format','YYYY-MM-DD\x20HH:mm:ss','lodash','util','moment','bluebird','request-promise','path','../../config/environment','./chatInteraction.attributes','exports','define','ChatInteraction','chat_interactions','changed'];(function(_0x383d4b,_0x530b55){var _0x5cf4e0=function(_0x340876){while(--_0x340876){_0x383d4b['push'](_0x383d4b['shift']());}};_0x5cf4e0(++_0x530b55);}(_0xd90b,0x93));var _0xbd90=function(_0x4f976c,_0x3bd1cd){_0x4f976c=_0x4f976c-0x0;var _0x517f05=_0xd90b[_0x4f976c];return _0x517f05;};'use strict';var _=require(_0xbd90('0x0'));var util=require(_0xbd90('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xbd90('0x2'));var BPromise=require(_0xbd90('0x3'));var rp=require(_0xbd90('0x4'));var fs=require('fs');var path=require(_0xbd90('0x5'));var rimraf=require('rimraf');var config=require(_0xbd90('0x6'));var attributes=require(_0xbd90('0x7'));module[_0xbd90('0x8')]=function(_0x27e247,_0x3bdf10){return _0x27e247[_0xbd90('0x9')](_0xbd90('0xa'),attributes,{'tableName':_0xbd90('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x10d922,_0x28ade1,_0x755d9d){if(_0x10d922[_0xbd90('0xc')]('closed')){_0x10d922[_0xbd90('0xd')]=moment()[_0xbd90('0xe')](_0xbd90('0xf'));}_0x755d9d(null,_0x10d922);}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};
\ No newline at end of file
+var _0x0f28=['format','YYYY-MM-DD\x20HH:mm:ss','utf8mb4','utf8mb4_unicode_ci','lodash','api','moment','bluebird','path','../../config/environment','exports','define','chat_interactions','closedAt'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x0f28,0x170));var _0x80f2=function(_0x52980f,_0x47b3b0){_0x52980f=_0x52980f-0x0;var _0x1f52a1=_0x0f28[_0x52980f];return _0x1f52a1;};'use strict';var _=require(_0x80f2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x80f2('0x1'));var moment=require(_0x80f2('0x2'));var BPromise=require(_0x80f2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x80f2('0x4'));var rimraf=require('rimraf');var config=require(_0x80f2('0x5'));var attributes=require('./chatInteraction.attributes');module[_0x80f2('0x6')]=function(_0x279862,_0x4a47e3){return _0x279862[_0x80f2('0x7')]('ChatInteraction',attributes,{'tableName':_0x80f2('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4a299c,_0x236dc5,_0x22cf2c){if(_0x4a299c['changed']('closed')){_0x4a299c[_0x80f2('0x9')]=moment()[_0x80f2('0xa')](_0x80f2('0xb'));}_0x22cf2c(null,_0x4a299c);}},'charset':_0x80f2('0xc'),'collate':_0x80f2('0xd')});};
\ No newline at end of file