1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5e7d=['bluebird','path','rimraf','../../config/environment','exports','define','ChatProactiveAction','chat_proactive_actions','util','../../config/logger'];(function(_0x26c475,_0x59b54b){var _0x1b640c=function(_0x16f47f){while(--_0x16f47f){_0x26c475['push'](_0x26c475['shift']());}};_0x1b640c(++_0x59b54b);}(_0x5e7d,0x1de));var _0xd5e7=function(_0x15821d,_0x3d3029){_0x15821d=_0x15821d-0x0;var _0x5e443c=_0x5e7d[_0x15821d];return _0x5e443c;};'use strict';var _=require('lodash');var util=require(_0xd5e7('0x0'));var logger=require(_0xd5e7('0x1'))('api');var moment=require('moment');var BPromise=require(_0xd5e7('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd5e7('0x3'));var rimraf=require(_0xd5e7('0x4'));var config=require(_0xd5e7('0x5'));var attributes=require('./chatProactiveAction.attributes');module[_0xd5e7('0x6')]=function(_0x454bea,_0x3d727a){return _0x454bea[_0xd5e7('0x7')](_0xd5e7('0x8'),attributes,{'tableName':_0xd5e7('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};