Built motion from commit c0cdc9d8.|2.6.28
[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 _0x17b9=['util','bluebird','rimraf','../../config/environment','./cannedAnswer.attributes','exports','CannedAnswer','tools_canned_answers','utf8mb4_unicode_ci','lodash'];(function(_0xba1760,_0x191969){var _0x1f3143=function(_0x5aa807){while(--_0x5aa807){_0xba1760['push'](_0xba1760['shift']());}};_0x1f3143(++_0x191969);}(_0x17b9,0x8b));var _0x917b=function(_0x1282f0,_0x1579d2){_0x1282f0=_0x1282f0-0x0;var _0x51ee8d=_0x17b9[_0x1282f0];return _0x51ee8d;};'use strict';var _=require(_0x917b('0x0'));var util=require(_0x917b('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x917b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x917b('0x3'));var config=require(_0x917b('0x4'));var attributes=require(_0x917b('0x5'));module[_0x917b('0x6')]=function(_0x2c1d89,_0x847984){return _0x2c1d89['define'](_0x917b('0x7'),attributes,{'tableName':_0x917b('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x917b('0x9')});};