Built motion from commit (unavailable).|2.5.3
[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 _0x78c7=['../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x106a77,_0x47ecbc){var _0x57ae98=function(_0x87b01c){while(--_0x87b01c){_0x106a77['push'](_0x106a77['shift']());}};_0x57ae98(++_0x47ecbc);}(_0x78c7,0x1c1));var _0x778c=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0x78c7[_0x556927];return _0x5f1235;};'use strict';var _=require('lodash');var util=require(_0x778c('0x0'));var logger=require(_0x778c('0x1'))(_0x778c('0x2'));var moment=require(_0x778c('0x3'));var BPromise=require(_0x778c('0x4'));var rp=require(_0x778c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x778c('0x6'));var attributes=require(_0x778c('0x7'));module[_0x778c('0x8')]=function(_0x4f4f2e,_0x2fdd0b){return _0x4f4f2e[_0x778c('0x9')](_0x778c('0xa'),attributes,{'tableName':_0x778c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x778c('0xc'),'collate':'utf8mb4_unicode_ci'});};