e2dbc17afa6ba8f7a4e6eefcb52fe1fa46bd946e
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x1fc6=['util','../../config/logger','api','moment','request-promise','path','../../config/environment','./cannedAnswer.attributes','exports','CannedAnswer','utf8mb4_unicode_ci','lodash'];(function(_0x9ba57c,_0x5ecc0d){var _0x627a6e=function(_0x3c702d){while(--_0x3c702d){_0x9ba57c['push'](_0x9ba57c['shift']());}};_0x627a6e(++_0x5ecc0d);}(_0x1fc6,0x11f));var _0x61fc=function(_0x378b4,_0x5ca7fa){_0x378b4=_0x378b4-0x0;var _0x11d07b=_0x1fc6[_0x378b4];return _0x11d07b;};'use strict';var _=require(_0x61fc('0x0'));var util=require(_0x61fc('0x1'));var logger=require(_0x61fc('0x2'))(_0x61fc('0x3'));var moment=require(_0x61fc('0x4'));var BPromise=require('bluebird');var rp=require(_0x61fc('0x5'));var fs=require('fs');var path=require(_0x61fc('0x6'));var rimraf=require('rimraf');var config=require(_0x61fc('0x7'));var attributes=require(_0x61fc('0x8'));module[_0x61fc('0x9')]=function(_0x1873e3,_0x145d3c){return _0x1873e3['define'](_0x61fc('0xa'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x61fc('0xb')});};