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 _0xa9d0=['api','moment','bluebird','request-promise','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4_unicode_ci','lodash','util','../../config/logger'];(function(_0x5619c2,_0x4f90f9){var _0x1ff4f5=function(_0xbf9cc7){while(--_0xbf9cc7){_0x5619c2['push'](_0x5619c2['shift']());}};_0x1ff4f5(++_0x4f90f9);}(_0xa9d0,0x1eb));var _0x0a9d=function(_0x49d97d,_0x114b91){_0x49d97d=_0x49d97d-0x0;var _0x5bbfc3=_0xa9d0[_0x49d97d];return _0x5bbfc3;};'use strict';var _=require(_0x0a9d('0x0'));var util=require(_0x0a9d('0x1'));var logger=require(_0x0a9d('0x2'))(_0x0a9d('0x3'));var moment=require(_0x0a9d('0x4'));var BPromise=require(_0x0a9d('0x5'));var rp=require(_0x0a9d('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x0a9d('0x7'));module[_0x0a9d('0x8')]=function(_0x32aa13,_0x249828){return _0x32aa13[_0x0a9d('0x9')](_0x0a9d('0xa'),attributes,{'tableName':_0x0a9d('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x0a9d('0xc')});};