586767e7f04308b64d1519460dbdf4d9a3369a3e
[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 _0xc79f=['exports','define','tools_canned_answers','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./cannedAnswer.attributes'];(function(_0x27b77f,_0x381ac8){var _0xd790d6=function(_0x8f3511){while(--_0x8f3511){_0x27b77f['push'](_0x27b77f['shift']());}};_0xd790d6(++_0x381ac8);}(_0xc79f,0x82));var _0xfc79=function(_0x4d9442,_0x1e784a){_0x4d9442=_0x4d9442-0x0;var _0x5b0d83=_0xc79f[_0x4d9442];return _0x5b0d83;};'use strict';var _=require(_0xfc79('0x0'));var util=require(_0xfc79('0x1'));var logger=require(_0xfc79('0x2'))(_0xfc79('0x3'));var moment=require(_0xfc79('0x4'));var BPromise=require('bluebird');var rp=require(_0xfc79('0x5'));var fs=require('fs');var path=require(_0xfc79('0x6'));var rimraf=require(_0xfc79('0x7'));var config=require(_0xfc79('0x8'));var attributes=require(_0xfc79('0x9'));module[_0xfc79('0xa')]=function(_0x660769,_0x1ba054){return _0x660769[_0xfc79('0xb')]('CannedAnswer',attributes,{'tableName':_0xfc79('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0xfc79('0xd')});};