Built motion from commit (unavailable).|2.5.14
[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 _0xaa3f=['util','api','moment','path','rimraf','./cannedAnswer.attributes','define','CannedAnswer','tools_canned_answers','lodash'];(function(_0x15d3af,_0x456866){var _0x5db407=function(_0x38727f){while(--_0x38727f){_0x15d3af['push'](_0x15d3af['shift']());}};_0x5db407(++_0x456866);}(_0xaa3f,0x95));var _0xfaa3=function(_0x1bc4e0,_0x2d3fb8){_0x1bc4e0=_0x1bc4e0-0x0;var _0xb4c533=_0xaa3f[_0x1bc4e0];return _0xb4c533;};'use strict';var _=require(_0xfaa3('0x0'));var util=require(_0xfaa3('0x1'));var logger=require('../../config/logger')(_0xfaa3('0x2'));var moment=require(_0xfaa3('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xfaa3('0x4'));var rimraf=require(_0xfaa3('0x5'));var config=require('../../config/environment');var attributes=require(_0xfaa3('0x6'));module['exports']=function(_0x3f85e4,_0x5760ee){return _0x3f85e4[_0xfaa3('0x7')](_0xfaa3('0x8'),attributes,{'tableName':_0xfaa3('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};